forked from DexterInd/GoPiGo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommands.cs
More file actions
47 lines (42 loc) · 1.04 KB
/
Copy pathCommands.cs
File metadata and controls
47 lines (42 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
namespace GoPiGo
{
public enum Commands
{
Version = 20,
BatteryVoltage = 118,
UltraSonic = 117,
DigitalWrite = 12,
DigitalRead = 13,
AnalogRead = 14,
AnalogWrite = 15,
PinMode = 16,
MoveForward = 119,
MoveForwardNoPid = 105,
MoveBackward = 115,
MoveBackwardNoPid = 107,
MoveLeft = 97,
RotateLeft = 98,
MoveRight = 100,
RotateRight = 110,
Stop = 120,
IncreaseSpeedBy10 = 116,
DecreaseSpeedBy10 = 103,
MotorOne = 111,
MotorTwo = 112,
SetLeftMotorSpeed = 70,
SetRightMotorSpeed = 71,
RotateServo = 101,
EnableServo = 61,
DisableServo = 60,
SetEncoderTargeting = 50,
EnableEncoder = 51,
DisableEncoder = 52,
ReadEncoder = 53,
EnableCommunicationTimeout = 80,
DisableCommunicationTimeout = 81,
ReadTimeoutStatus = 82,
TrimTest = 30,
WriteTrim = 31,
ReadTrim = 32
}
}