mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
SITL: switch to HIL_ACTUATOR_CONTROLS mavlink message & add pwm_out_sim support for 16 outputs
This commit is contained in:
@@ -851,13 +851,13 @@ Mavlink::set_hil_enabled(bool hil_enabled)
|
||||
/* enable HIL */
|
||||
if (hil_enabled && !_hil_enabled) {
|
||||
_hil_enabled = true;
|
||||
configure_stream("HIL_CONTROLS", 200.0f);
|
||||
configure_stream("HIL_ACTUATOR_CONTROLS", 200.0f);
|
||||
}
|
||||
|
||||
/* disable HIL */
|
||||
if (!hil_enabled && _hil_enabled) {
|
||||
_hil_enabled = false;
|
||||
configure_stream("HIL_CONTROLS", 0.0f);
|
||||
configure_stream("HIL_ACTUATOR_CONTROLS", 0.0f);
|
||||
|
||||
} else {
|
||||
ret = ERROR;
|
||||
|
||||
Reference in New Issue
Block a user