There was an error while loading. Please reload this page.
1 parent 093c976 commit a318c3bCopy full SHA for a318c3b
1 file changed
libraries/AP_Servo_Telem/AP_Servo_Telem.h
@@ -9,7 +9,16 @@
9
10
11
#ifndef SERVO_TELEM_MAX_SERVOS
12
- #define SERVO_TELEM_MAX_SERVOS NUM_SERVO_CHANNELS
+ #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
22
#endif
23
static_assert(SERVO_TELEM_MAX_SERVOS > 0, "Cannot have 0 Servo telem instances");
24
0 commit comments