mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 05:53:34 +08:00
Drone yaw set to destination waypoint yaw in LOITER mode if MIS_YAWMODE=0 (#7269)
* Drone does not change orientation while in LOITER mode if MIS_YAWMODE=0 * Fix code style * Some more code style fixes * Format checks passed
This commit is contained in:
committed by
Lorenz Meier
parent
c80fd2c317
commit
e6670d7926
@@ -60,6 +60,14 @@ public:
|
||||
|
||||
virtual void on_active();
|
||||
|
||||
enum mission_yaw_mode {
|
||||
MISSION_YAWMODE_NONE = 0,
|
||||
MISSION_YAWMODE_FRONT_TO_WAYPOINT = 1,
|
||||
MISSION_YAWMODE_FRONT_TO_HOME = 2,
|
||||
MISSION_YAWMODE_BACK_TO_HOME = 3,
|
||||
MISSION_YAWMODE_MAX = 4
|
||||
};
|
||||
|
||||
private:
|
||||
/**
|
||||
* Use the stored reposition location of the navigator
|
||||
@@ -73,6 +81,7 @@ private:
|
||||
void set_loiter_position();
|
||||
|
||||
control::BlockParamFloat _param_min_alt;
|
||||
control::BlockParamInt _param_yawmode;
|
||||
bool _loiter_pos_set;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user