mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 11:13:34 +08:00
vmount: add param to use RC input for angular rate
Until now RC input was translated to angles only. I added the param MNT_RC_IN_MODE which allows the RC input to be used for angular rate.
This commit is contained in:
@@ -66,6 +66,9 @@ int OutputMavlinkV1::update(const ControlData *control_data)
|
||||
//got new command
|
||||
_set_angle_setpoints(control_data);
|
||||
|
||||
#if !defined(ALT_MANTIS_GIMBAL_HACKS)
|
||||
// Don't send this command to ATL Mantis as it just spams the vehicle_command queue and the
|
||||
// Mantis ignores it anyway.
|
||||
vehicle_command.command = vehicle_command_s::VEHICLE_CMD_DO_MOUNT_CONFIGURE;
|
||||
vehicle_command.timestamp = hrt_absolute_time();
|
||||
|
||||
@@ -89,6 +92,7 @@ int OutputMavlinkV1::update(const ControlData *control_data)
|
||||
vehicle_command.param4 = _stabilize[2] ? 1.0f : 0.0f;
|
||||
|
||||
_vehicle_command_pub.publish(vehicle_command);
|
||||
#endif
|
||||
}
|
||||
|
||||
_handle_position_update();
|
||||
|
||||
@@ -184,6 +184,7 @@ extern "C" __EXPORT int tune_control_main(int argc, char *argv[])
|
||||
|
||||
PX4_DEBUG("Publishing standard tune %d", tune_control.tune_id);
|
||||
publish_tune_control(tune_control);
|
||||
|
||||
} else {
|
||||
PX4_WARN("Missing argument");
|
||||
usage();
|
||||
|
||||
Reference in New Issue
Block a user