mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 08:43:34 +08:00
trivial code style cleanup round 2
This commit is contained in:
@@ -83,9 +83,9 @@ protected:
|
||||
*/
|
||||
void mission_item_to_position_setpoint(const mission_item_s *item, position_setpoint_s *sp);
|
||||
|
||||
/**
|
||||
* Set previous position setpoint to current setpoint
|
||||
*/
|
||||
/**
|
||||
* Set previous position setpoint to current setpoint
|
||||
*/
|
||||
void set_previous_pos_setpoint();
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,7 +78,8 @@ public:
|
||||
/*
|
||||
* Returns true if mission is feasible and false otherwise
|
||||
*/
|
||||
bool checkMissionFeasible(bool isRotarywing, dm_item_t dm_current, size_t nMissionItems, Geofence &geofence, float home_alt);
|
||||
bool checkMissionFeasible(bool isRotarywing, dm_item_t dm_current, size_t nMissionItems, Geofence &geofence,
|
||||
float home_alt);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -58,7 +58,8 @@ NavigatorMode::~NavigatorMode()
|
||||
}
|
||||
|
||||
void
|
||||
NavigatorMode::run(bool active) {
|
||||
NavigatorMode::run(bool active)
|
||||
{
|
||||
if (active) {
|
||||
if (_first_run) {
|
||||
/* first run */
|
||||
|
||||
@@ -92,8 +92,8 @@ private:
|
||||
/* this class has ptr data members, so it should not be copied,
|
||||
* consequently the copy constructors are private.
|
||||
*/
|
||||
NavigatorMode(const NavigatorMode&);
|
||||
NavigatorMode operator=(const NavigatorMode&);
|
||||
NavigatorMode(const NavigatorMode &);
|
||||
NavigatorMode operator=(const NavigatorMode &);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user