7 int limit [FLEXS] [2] = {
8 { 579, 713 }, { 519, 743 }, { 588, 793 }, { 610, 811 }, { 591, 806 },
10 uint8_t
reverse [FLEXS] = { 1, 1, 1, 1, 1, };
13 uint8_t flex_offset = 6;
20 SERIAL_BAUDRATE = 9600,
21 SOFT_SERIAL_BAUDRATE = 9600,
27 DEBUG_SERIAL_BAUDRATE = 9600,
28 CMD_SERIAL_BAUDRATE = 9600,
31 int getFlexIDFromIndex (uint8_t flex_index)
33 if (flex_index > FLEXS)
37 return flex_index + flex_offset;
40 int getFlexPinFromIndex (uint8_t flex_index)
42 if (flex_index > FLEXS)
49 int getServoIDFromFlexIndex (uint8_t flex_index)
51 if (flex_index > FLEXS)
55 return flex_index + 1;
60 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)