mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:13:34 +08:00
mavlink: stream rename GROUND_TRUTH -> HIL_STATE_QUATERNION
This commit is contained in:
@@ -722,10 +722,10 @@ Mavlink::set_hil_enabled(bool hil_enabled)
|
||||
ret = configure_stream("HIL_ACTUATOR_CONTROLS", 200.0f);
|
||||
|
||||
if (_param_sys_hitl.get() == 2) { // Simulation in Hardware enabled ?
|
||||
configure_stream("GROUND_TRUTH", 25.0f); // HIL_STATE_QUATERNION to display the SIH
|
||||
configure_stream("HIL_STATE_QUATERNION", 25.0f); // ground truth to display the SIH
|
||||
|
||||
} else {
|
||||
configure_stream("GROUND_TRUTH", 0.0f);
|
||||
configure_stream("HIL_STATE_QUATERNION", 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -734,7 +734,7 @@ Mavlink::set_hil_enabled(bool hil_enabled)
|
||||
_hil_enabled = false;
|
||||
ret = configure_stream("HIL_ACTUATOR_CONTROLS", 0.0f);
|
||||
|
||||
configure_stream("GROUND_TRUTH", 0.0f);
|
||||
configure_stream("HIL_STATE_QUATERNION", 0.0f);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user