mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 18:53:57 -04:00
Tools: AP_Periph: SIM: servo telem move to one indexed
This commit is contained in:
parent
5fcac2b304
commit
9fccccbb3d
@ -206,7 +206,7 @@ void AP_Periph_FW::sim_update_actuator(uint8_t actuator_id)
|
||||
}
|
||||
const SRV_Channel::Function function = SRV_Channel::Function(SRV_Channel::k_rcin1 + i);
|
||||
uavcan_equipment_actuator_Status pkt {};
|
||||
pkt.actuator_id = i;
|
||||
pkt.actuator_id = i + 1;
|
||||
// assume 45 degree angle for simulation
|
||||
pkt.position = radians(SRV_Channels::get_output_norm(function) * 45);
|
||||
pkt.force = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user