mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:53:33 +08:00
refactor vehicle_status_flags: rename to failsafe_flags
This commit is contained in:
@@ -72,10 +72,10 @@ bool Sticks::checkAndUpdateStickInputs()
|
||||
_input_available = valid_sticks;
|
||||
|
||||
} else {
|
||||
vehicle_status_flags_s vehicle_status_flags;
|
||||
failsafe_flags_s failsafe_flags;
|
||||
|
||||
if (_vehicle_status_flags_sub.update(&vehicle_status_flags)) {
|
||||
if (vehicle_status_flags.manual_control_signal_lost) {
|
||||
if (_failsafe_flags_sub.update(&failsafe_flags)) {
|
||||
if (failsafe_flags.manual_control_signal_lost) {
|
||||
_input_available = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <matrix/matrix/math.hpp>
|
||||
#include <uORB/Subscription.hpp>
|
||||
#include <uORB/topics/manual_control_setpoint.h>
|
||||
#include <uORB/topics/vehicle_status_flags.h>
|
||||
#include <uORB/topics/failsafe_flags.h>
|
||||
|
||||
class Sticks : public ModuleParams
|
||||
{
|
||||
@@ -92,7 +92,7 @@ private:
|
||||
matrix::Vector<float, 4> _positions_expo; ///< modified manual sticks using expo function
|
||||
|
||||
uORB::Subscription _manual_control_setpoint_sub{ORB_ID(manual_control_setpoint)};
|
||||
uORB::Subscription _vehicle_status_flags_sub{ORB_ID(vehicle_status_flags)};
|
||||
uORB::Subscription _failsafe_flags_sub{ORB_ID(failsafe_flags)};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamFloat<px4::params::MPC_HOLD_DZ>) _param_mpc_hold_dz,
|
||||
|
||||
Reference in New Issue
Block a user