Package api.basic
Class PINConfig
- java.lang.Object
-
- api.basic.PINConfig
-
public class PINConfig extends java.lang.ObjectThis class contains the pin-mapping for all servos of the hexapodThe mapping is as follows:
First digit: Front: 1 Middle: 2 Back: 3 Second digit: Left: 0 Right: 1 Third digit: "Hip" (leg rotation): 0 "Knee" (Middle servo): 1 "Foot" (lower servo): 2Example
Middle right knee = 211
-
-
Constructor Summary
Constructors Constructor Description PINConfig()
-
Method Summary
Modifier and Type Method Description static voidinitPINConfig()Initialize thePIN_MAPPING-arrayin Hexapode.java
This method is called by the constructor so it does not need to be called manuallystatic voidloadPositionMap()Load the position map from a configuration file or ask if a wizard should be started to create onestatic voidsavePositionMap()Save the current configuration to the configuration file
Note: The old config file is overwritten if it already existed
-
-
-
Method Detail
-
initPINConfig
public static void initPINConfig()
Initialize thePIN_MAPPING-arrayin Hexapode.java
This method is called by the constructor so it does not need to be called manually
-
loadPositionMap
public static void loadPositionMap()
Load the position map from a configuration file or ask if a wizard should be started to create one
-
savePositionMap
public static void savePositionMap()
Save the current configuration to the configuration file
Note: The old config file is overwritten if it already existed
-
-