File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 99
1010
1111#ifndef SERVO_TELEM_MAX_SERVOS
12- #define SERVO_TELEM_MAX_SERVOS NUM_SERVO_CHANNELS
12+ #ifndef HAL_BUILD_AP_PERIPH
13+ // On a vehicle board we only expect responses from those servos we directly control
14+ #define SERVO_TELEM_MAX_SERVOS NUM_SERVO_CHANNELS
15+ #else
16+ // On periph we handle a sub-set of outputs from a vehicle, because we don't know
17+ // which indexes those will be we have to support more telem channels than outputs
18+ // This allows output ID 10 to be output on the first servo channel.
19+ // This should be reported to the vehicle as ID 10 not ID 1.
20+ #define SERVO_TELEM_MAX_SERVOS 32
21+ #endif
1322#endif
1423static_assert (SERVO_TELEM_MAX_SERVOS > 0 , " Cannot have 0 Servo telem instances" );
1524
You can’t perform that action at this time.
0 commit comments