RMRobotics / FTC_5421_2014-2015

Assets for 2014-2015 Team 5421 FIRST Tech Challenge.
MIT License
6 stars 1 forks source link

Update Motor.h and Joystick.h to enforce hierarchy #25

Closed jimmyli97 closed 10 years ago

jimmyli97 commented 10 years ago

Hierarchy: TeleOp.c -> Joystick.h -> Motor.h TeleOp should send its own motor state to Motor.h and Joystick.h. To enforce hierarchy, we need to make it so that calling Motor.h functions doesn't modify its state