Project

General

Profile

Revision 2814387f

ID2814387f48599dab8a99852093cc51629a14fb89
Parent f0a9ebb3
Child a8480867

Added by Alex Zirbel over 12 years ago

Updated motors code.

Changed the definitions for the set_motors message, which forced a few
implementation changes as well.

Changed "libscout_node" to "node" and "n" to "node" in other packages.

View differences:

scout/motors/src/motors.h
40 40
#include "motors/query_motors.h"
41 41
#include "motors/set_motors.h"
42 42

  
43
#define MAXSPEED 512
44
#define MOTOR_ALL 0xF
45
#define MOTOR_ALL_REV 0xF0
46
#define MOTOR_NONE 0x0
47
#define MOTOR_FL 0x8
48
#define MOTOR_FR 0x4
49
#define MOTOR_BL 0x2
50
#define MOTOR_BR 0x1
51
#define MOTOR_FL_REV 0x80
52
#define MOTOR_FR_REV 0x40
53
#define MOTOR_BL_REV 0x20
54
#define MOTOR_BR_REV 0x10
55
#define MOTOR_FRONT MOTOR_FL | MOTOR_FR
56
#define MOTOR_BACK MOTOR_BR | MOTOR_BR
57
#define MOTOR_LEFT MOTOR_FL | MOTOR_BL
58
#define MOTOR_RIGHT MOTOR_FR | MOTOR_BR
59
#define MOTOR_LEFT_REV MOTOR_FL_REV | MOTOR_BL_REV
60
#define MOTOR_RIGHT_REV MOTOR_FR_REV | MOTOR_BR_REV
61
#define MOTOR_LEFT_SPIN MOTOR_LEFT_REV | MOTOR_RIGHT
62
#define MOTOR_RIGHT_SPIN MOTOR_LEFT | MOTOR_RIGHT_REV
43
#define MAXSPEED 255
63 44
#define MOTOR_PERCENT 'p'
64 45
#define MOTOR_MMS 'm'
65 46
#define MOTOR_CMS 'c'

Also available in: Unified diff