Skip to content

Main.ino

andyp13 edited this page Sep 20, 2016 · 3 revisions

Example Wiki Page (I know it is not a class)

#Main.ino ##Initializing Variables Non-Existant

##Methods ###Setup Description: The setup code that runs once during the startup phase of an Arduino. This set of code sets up the current time, the Serial output, servos, and classes. This is one of the required methods for the Arduino Framework.

###Loop Description: The loop code will continue to loop until the Arduino crashes or runs out of power. We currently use this method to run loops in all of our classes, print Serial output, and check if the kill switch has been pressed.

##Variables

Name Type Use Brief Description
killSwitchFlag bool loop Stops the code when the button is pushed
currentTime int loop Gets current time in milliseconds
lastSerialTime int loop The last time the serial outputted to the console
mainButton Button loop The class declaration for the button
compass CompassController loop The class declaration for the compass
steering SteeringController loop The class that controls the steering system
steeringServo Servo loop The variable that controls the steering servo of the rc car
escServo Servo loop The variable that controls the ESC of the rc car

Clone this wiki locally