Package api.basic

Class PINConfig


  • public class PINConfig
    extends java.lang.Object
    This class contains the pin-mapping for all servos of the hexapod

    The 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 the PIN_MAPPING-array in Hexapode.java
      This method is called by the constructor so it does not need to be called manually
      static void loadPositionMap()
      Load the position map from a configuration file or ask if a wizard should be started to create one
      static void savePositionMap()
      Save the current configuration to the configuration file
      Note: The old config file is overwritten if it already existed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PINConfig

        public PINConfig()
    • Method Detail

      • initPINConfig

        public static void initPINConfig()
        Initialize the PIN_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