mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:23:33 +08:00
vmount: set output to Neutral for VEHICLE_ROI_NONE
This commit is contained in:
@@ -121,6 +121,9 @@ int InputMavlinkROI::update_impl(unsigned int timeout_ms, ControlData **control_
|
|||||||
|
|
||||||
if (vehicle_roi.mode == vehicle_roi_s::VEHICLE_ROI_NONE) {
|
if (vehicle_roi.mode == vehicle_roi_s::VEHICLE_ROI_NONE) {
|
||||||
|
|
||||||
|
_control_data.type = ControlData::Type::Neutral;
|
||||||
|
*control_data = &_control_data;
|
||||||
|
|
||||||
} else if (vehicle_roi.mode == vehicle_roi_s::VEHICLE_ROI_WPNEXT) {
|
} else if (vehicle_roi.mode == vehicle_roi_s::VEHICLE_ROI_WPNEXT) {
|
||||||
_read_control_data_from_position_setpoint_sub();
|
_read_control_data_from_position_setpoint_sub();
|
||||||
_control_data.type_data.lonlat.roll_angle = 0.f;
|
_control_data.type_data.lonlat.roll_angle = 0.f;
|
||||||
|
|||||||
Reference in New Issue
Block a user