-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overall organization and addition of state change handler
- Loading branch information
Showing
2 changed files
with
99 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Servo objects | ||
Servo throttleServo; | ||
Servo turnSpeedController; | ||
// Engine Control Values | ||
// TODO Change engine control pins to actual pins on the board | ||
engineStatorPin = 0; | ||
engineKillPin = 0; | ||
engineRunning = false; | ||
// Indicator Values | ||
// TODO Change indicator pins to actual pins on the board | ||
lightSolidPin = 0; | ||
lightBlinkPin = 0; | ||
honkPin = 0; | ||
// Encoder Values | ||
encoder0PinA = 32; | ||
encoder0PinB = 33; | ||
encoder0Pos = 0; | ||
encoder0PinALast = LOW; | ||
previousMillis = -1; | ||
tBetweenPulse = 0; | ||
previousEncoder0Pos = 0; | ||
// Brake Values | ||
brakePin = 0; // TODO Change brake value to actual pin on board | ||
breakStatus = 0; | ||
// Shifting Values | ||
shiftupPin = 24; | ||
shiftupStop = 25; | ||
shiftdownPin = 23; | ||
shiftdownStop = 22; | ||
shiftVal = 0; | ||
prevShiftVal = 0; | ||
shiftPoz = 1; | ||
// Turning Values | ||
// TODO Change turning potentiometer value to actual pin on board | ||
turnPotPin = 0; | ||
turnValue = 180; | ||
// Throttle Value | ||
throttlePoz = 0; | ||
// Indicates status of entire system. 0 = Stopped, 1 = Running, 2 = Error | ||
systemStatus = 0; |