6 int limit [FLEXS] [2] = {
7 { 664, 797 }, { 669, 823 }, { 783, 862 }, { 750, 846 }, { 727, 869 },
9 uint8_t
reverse [FLEXS] = { 1, 1, 1, 1, 1, };
12 uint8_t flex_offset = 6;
19 SERIAL_BAUDRATE = 9600,
20 SOFT_SERIAL_BAUDRATE = 9600,
26 DEBUG_SERIAL_BAUDRATE = 9600,
27 CMD_SERIAL_BAUDRATE = 9600,
30 int getFlexIDFromIndex (uint8_t flex_index)
32 if (flex_index > FLEXS)
36 return flex_index + flex_offset;
39 int getFlexPinFromIndex (uint8_t flex_index)
41 if (flex_index > FLEXS)
48 int getServoIDFromFlexIndex (uint8_t flex_index)
50 if (flex_index > FLEXS)
54 return flex_index + 1;
59 if (servo_id >= 6 || servo_id < 0)
Whether to print debug output to the serial port.
The unique identification for this board.
int getServoIndexFromID(uint8_t servo_id)