Moved MAX_PWM into diff_controller.h

This commit is contained in:
Patrick Goebel 2015-12-07 06:52:56 -08:00
parent eacd926753
commit 5a4affcfba
2 changed files with 4 additions and 3 deletions

View File

@ -72,9 +72,6 @@
#include "servos.h"
#endif
/* Maximum PWM signal */
#define MAX_PWM 255
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else

View File

@ -48,6 +48,10 @@ unsigned char moving = 0; // is the base in motion?
* Note that the assumption here is that PID is only turned on
* when going from stop to moving, that's why we can init everything on zero.
*/
/* Maximum PWM signal */
#define MAX_PWM 255
void resetPID(){
leftPID.TargetTicksPerFrame = 0.0;
leftPID.Encoder = readEncoder(LEFT);