2014:Programming Drivetrain

From 1511Wookiee
Jump to navigationJump to search
  • IMPORTANT: Include ThunderDrive.h & ThunderDrive.cpp while integrating
    • Use #include "ThunderDrive.h" 
  • ThunderDrive is an object type that allows you to use the comands...
    • Teleop
      • .TankDrive (float left, float right, bool turbo, bool slow)
        • Inputs
          • left (float, -1 to +1)
            • left stick Y position
          • right (float, -1 to +1)
            • right stick Y position
          • turbo (bool)
            • status of the turbo button
          • slow (bool)
            • status of the slow button
        • Allows you to drive using tank controls
      • .DoDebug
        • Inputs
          • left (float, -1 to +1)
            • left stick Y position
          • right (float, -1 to +1)
            • right stick Y position
          • turbo (bool)
            • status of the turbo button
          • slow (bool)
            • status of the slow button
        • Shows you current motor power
        • Prints into net console for CRIO(? What part is caps)
    • Auto
      • .AutonomousDrive(float distance_IN, float maxPower)
        • disance_IN (float)
          • how far you plan to go in inches
        • maxPower (float)
          • maximum power to be used wilst going to the position
      • .AutonomousTurn(float distance_IN, float maxPower)
        • degrees (float)
          • how far you plan to turn in degrees