Project

General

Profile

Revision 4e393fcc

ID4e393fcc6f5a6742e8c75d6d81beb13e3f4ffde7
Parent f3549f76
Child f325b893

Added by Alex Zirbel almost 4 years ago

Added code for unit conversion, pending tests.

View differences:

scout/libscout/src/MotorControl.h
65 65
#define MOTOR_LEFT_SPIN MOTOR_LEFT_REV | MOTOR_RIGHT
66 66
#define MOTOR_RIGHT_SPIN MOTOR_LEFT | MOTOR_RIGHT_REV
67 67

  
68
#define MAXSPEED 255
68
#define MAXSPEED_ABS 127.0f
69
#define MAXSPEED_MPS 1.0f
69 70
#define MOTOR_PERCENT 'p'
70 71
#define MOTOR_MMS 'm'
71 72
#define MOTOR_CMS 'c'

Also available in: Unified diff