mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 19:39:06 +08:00
mavlink: warning for actuator offboard & lockstep
Currently actuator offboard control interferes with SITL lockstep. Therefore, the least we can do is to warn a user and inform them how to workaround the issue.
This commit is contained in:
parent
02271a471d
commit
60343cc168
@ -1102,6 +1102,12 @@ MavlinkReceiver::handle_message_set_actuator_control_target(mavlink_message_t *m
|
||||
set_actuator_control_target.target_component == 0) &&
|
||||
values_finite) {
|
||||
|
||||
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
|
||||
PX4_ERR("SET_ACTUATOR_CONTROL_TARGET not supported with lockstep enabled");
|
||||
PX4_ERR("Please disable lockstep for actuator offboard control:");
|
||||
PX4_ERR("https://dev.px4.io/master/en/simulation/#disable-lockstep-simulation");
|
||||
return;
|
||||
#endif
|
||||
/* Ignore all setpoints except when controlling the gimbal(group_mlx==2) as we are setting raw actuators here */
|
||||
bool ignore_setpoints = bool(set_actuator_control_target.group_mlx != 2);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user