mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-04 11:44: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"
|
#include "servos.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Maximum PWM signal */
|
|
||||||
#define MAX_PWM 255
|
|
||||||
|
|
||||||
#if defined(ARDUINO) && ARDUINO >= 100
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
#else
|
#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
|
* 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.
|
* when going from stop to moving, that's why we can init everything on zero.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Maximum PWM signal */
|
||||||
|
#define MAX_PWM 255
|
||||||
|
|
||||||
void resetPID(){
|
void resetPID(){
|
||||||
leftPID.TargetTicksPerFrame = 0.0;
|
leftPID.TargetTicksPerFrame = 0.0;
|
||||||
leftPID.Encoder = readEncoder(LEFT);
|
leftPID.Encoder = readEncoder(LEFT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user