Sylib
A C++ Library For V5
Loading...
Searching...
No Matches
pros_includes.h
1#pragma once
2#include "api.h"
3
4#define V5_MAX_DEVICE_PORTS 32
5
6typedef enum {
7 kDeviceTypeNoSensor = 0,
8 kDeviceTypeMotorSensor = 2,
9 kDeviceTypeLedSensor = 3,
10 kDeviceTypeAbsEncSensor = 4,
11 kDeviceTypeCrMotorSensor = 5,
12 kDeviceTypeImuSensor = 6,
13 kDeviceTypeRangeSensor = 7,
14 kDeviceTypeDistanceSensor = 7,
15 kDeviceTypeRadioSensor = 8,
16 kDeviceTypeTetherSensor = 9,
17 kDeviceTypeBrainSensor = 10,
18 kDeviceTypeVisionSensor = 11,
19 kDeviceTypeAdiSensor = 12,
20 kDeviceTypeRes1Sensor = 13,
21 kDeviceTypeRes2Sensor = 14,
22 kDeviceTypeRes3Sensor = 15,
23 kDeviceTypeOpticalSensor = 16,
24 kDeviceTypeMagnetSensor = 17,
25 kDeviceTypeGpsSensor = 20,
26 kDeviceTypeBumperSensor = 0x40,
27 kDeviceTypeGyroSensor = 0x46,
28 kDeviceTypeSonarSensor = 0x47,
29 kDeviceTypeGenericSensor = 128,
30 kDeviceTypeGenericSerial = 129,
31 kDeviceTypeUndefinedSensor = 255
32} V5_DeviceType;
33
34typedef struct _V5_Device* V5_DeviceT;
35
36typedef enum _V5_MotorBrakeMode {
37 kV5MotorBrakeModeCoast = 0,
38 kV5MotorBrakeModeBrake = 1,
39 kV5MotorBrakeModeHold = 2
40} V5MotorBrakeMode;