mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-04 03:34:08 +05:30
Moved MAX_PWM into diff_controller.h
This commit is contained in:
parent
eacd926753
commit
5a4affcfba
@ -72,9 +72,6 @@
|
||||
#include "servos.h"
|
||||
#endif
|
||||
|
||||
/* Maximum PWM signal */
|
||||
#define MAX_PWM 255
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
#else
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user