Tools: AP_Periph: SIM: servo telem move to one indexed

This commit is contained in:
Iampete1 2025-02-13 15:33:11 +00:00 committed by Andrew Tridgell
parent 5fcac2b304
commit 9fccccbb3d

View File

@ -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;