Package api.basic
Class PINConfig
- java.lang.Object
-
- api.basic.PINConfig
-
public class PINConfig extends java.lang.Object
This 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): 2
Example
Middle right knee = 211
-
-
Constructor Summary
Constructors Constructor Description PINConfig()
-
Method Summary
Modifier and Type Method Description static void
initPINConfig()
Initialize thePIN_MAPPING-array
in Hexapode.java
This method is called by the constructor so it does not need to be called manuallystatic void
loadPositionMap()
Load the position map from a configuration file or ask if a wizard should be started to create onestatic void
savePositionMap()
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-array
in 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
-
-