Skip to content

CommandController

andyp13 edited this page Oct 6, 2016 · 6 revisions

#CommandController Description: The main controller for managing the commands that are sent to it.

##Methods ###Init Inputs:

Name Type Description
commands long An array of commands
throttle_zero int The number that is neutral on the ESC
steering_zero int The number that allows the car to drive straight

###Loop Description: The loop that manages the timing between each command.
Inputs: No inputs
Outputs: No outputs
###Start Description: The code that starts the timing system and push starts the class.
###Stop Description: The code that stops the timing system and stops the class. ###isRunning Description: Returns whether or not the command system is running.
Inputs: No Inputs
Outputs: Returns a bool ###getThrottle Description: The code that finds what the current throttle is supposed to be. Inputs: No inputs Output: Returns the throttle as a int ###getSteering Description: The code that finds what the current Steering angle is supposed to be. Inputs: No Inputs Output: Returns the current steering angle as a int

##Variables Will update soon

Clone this wiki locally