2014:Programming: Difference between revisions
From 1511Wookiee
Jump to navigationJump to search
Drivetrain (talk | contribs) No edit summary |
Drivetrain (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
**Please know your <span data-scaytid="23" data-scayt_word="subteams">subteams</span> needs for the meeting. | **Please know your <span data-scaytid="23" data-scayt_word="subteams">subteams</span> needs for the meeting. | ||
= DRIVETRAIN = | |||
*<u>'''IMPORTANT:'''</u> Include ThunderDrive.h & ThunderDrive.cpp while integrating | *<u>'''IMPORTANT:'''</u> Include ThunderDrive.h & ThunderDrive.cpp while integrating | ||
**Use '''#include "ThunderDrive.h" ''' | **Use '''#include "ThunderDrive.h" ''' | ||
*ThunderDrive is an object type that allows you to use the comands... | *ThunderDrive is an object type that allows you to use the comands... | ||
**.TankDrive | **Teleop | ||
***Allows you to drive using tank controls | ***.TankDrive (float left, float right, bool turbo, bool slow) | ||
**.DoDebug | ****Inputs | ||
***Shows you current motor power | *****left (float, -1 to +1) | ||
***Prints into net console for CRIO(? What part is caps) | ******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 | |||
Revision as of 18:28, 16 January 2014
Programming Sub-pages and Links
- Programming Master Task List
- SVN Setup
- Online browsing of our SVN Tree
- Jaguar Firmware Notes
- 2014:Robot IO Map
1.15.14
PROGRAMMING MEETING:
- Discussed staying with the standard C++ programming method, or changing to Command Base.
- We decided to stay with the standard method, and save Command Base for next pre-season.
- We will be using GIT(?) to update and archive the programs.
- OnSunday, January 19th, we will be holding a meeting right after Lunch to discuss the primary code layouts for our subteams.
- Please know your subteams needs for the meeting.
DRIVETRAIN
- 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
- left (float, -1 to +1)
- Allows you to drive using tank controls
- Inputs
- .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
- left (float, -1 to +1)
- Shows you current motor power
- Prints into net console for CRIO(? What part is caps)
- Inputs
- .TankDrive (float left, float right, bool turbo, bool slow)
- 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
- disance_IN (float)
- .AutonomousTurn(float distance_IN, float maxPower)
- degrees (float)
- how far you plan to turn in degrees
- degrees (float)
- .AutonomousDrive(float distance_IN, float maxPower)
- Teleop