AP_Periph: add support for sending servo telemety#31577
AP_Periph: add support for sending servo telemety#31577peterbarker merged 7 commits intoArduPilot:masterfrom
Conversation
8ab0495 to
c05e67f
Compare
|
Rebased and tested with #31504 |
|
@Huibean I have moved the actuator telem to use the servo telem lib. |
c05e67f to
8e922f0
Compare
|
pending testing from @Huibean |
| // Blank packet | ||
| const float nan = nanf(""); | ||
| uavcan_equipment_actuator_Status pkt { | ||
| actuator_id: i, |
There was a problem hiding this comment.
I think it's index + 1, with this change it can send correct actuator_id
8e922f0 to
f9b01f1
Compare
|
@Huibean Thanks for testing! Should be fixed now. The key thing with the indexing is to see how it turns up in the log on the main flight controller. |
I tested the update, actuator_id 4 is missing |
I would have expected it to report 0,1,2,3 for 4 in total. |
that's wired, https://ardupilot.org/dev/docs/AP_Periph-Parameters.html#out1-function, the input start from 1, OUT1_FUNCTION 51 is actuator_id 1, sending actuator_id 0 command to AP_Periph will not able get response, aslo Ardupilot side start from 1(different from esc command) |
Actually our right, because of the +1 on actuator_telem line 170. So it should be 1,2,3,4. Your only seeing 1,2,3? I don't see any change in how the iteration over outputs is done. |
only 1,2,3 is seen, fixed power output on channel 1, so it does not mixmatch |
|
by the way, there is build error in last change, I fixed it for continue testing |
f9b01f1 to
1c88efa
Compare
1c88efa to
596bfe1
Compare
|
rebased. |
596bfe1 to
1d82616
Compare
|
Rebased and fixed indexing issue. This is a breaking change to DroneCAN servo telem numbering, this will affect logging and scripting. |
|
works now, LGTM |



Adds support for sending servo telem on periph, this allows remote attach of servos and telem to be relayed to the vehicle.