mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 12:44:07 +08:00
navigator: use '#pragma once' as include guard
This commit is contained in:
parent
f2dddc65a5
commit
2e6904b8a4
@ -37,8 +37,7 @@
|
||||
* @author Thomas Gubler <thomasgubler@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_DATALINKLOSS_H
|
||||
#define NAVIGATOR_DATALINKLOSS_H
|
||||
#pragma once
|
||||
|
||||
#include <px4_module_params.h>
|
||||
|
||||
@ -91,4 +90,3 @@ private:
|
||||
void advance_dll();
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -37,8 +37,7 @@
|
||||
* @author Thomas Gubler <thomasgubler@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_ENGINEFAILURE_H
|
||||
#define NAVIGATOR_ENGINEFAILURE_H
|
||||
#pragma once
|
||||
|
||||
#include "navigator_mode.h"
|
||||
#include "mission_block.h"
|
||||
@ -72,4 +71,3 @@ private:
|
||||
void advance_ef();
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Thomas Gubler <thomasgubler@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef GEOFENCE_H_
|
||||
#define GEOFENCE_H_
|
||||
#pragma once
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
@ -210,5 +209,3 @@ private:
|
||||
*/
|
||||
bool insideCircle(const PolygonInfo &polygon, double lat, double lon, float altitude);
|
||||
};
|
||||
|
||||
#endif /* GEOFENCE_H_ */
|
||||
|
||||
@ -37,8 +37,7 @@
|
||||
* @author Thomas Gubler <thomasgubler@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_GPSFAILURE_H
|
||||
#define NAVIGATOR_GPSFAILURE_H
|
||||
#pragma once
|
||||
|
||||
#include <px4_module_params.h>
|
||||
|
||||
@ -86,4 +85,3 @@ private:
|
||||
void advance_gpsf();
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Andreas Antener <andreas@uaventure.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_LAND_H
|
||||
#define NAVIGATOR_LAND_H
|
||||
#pragma once
|
||||
|
||||
#include "navigator_mode.h"
|
||||
#include "mission_block.h"
|
||||
@ -53,5 +52,3 @@ public:
|
||||
void on_activation() override;
|
||||
void on_active() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Julian Oes <julian@oes.ch>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_LOITER_H
|
||||
#define NAVIGATOR_LOITER_H
|
||||
#pragma once
|
||||
|
||||
#include "navigator_mode.h"
|
||||
#include "mission_block.h"
|
||||
@ -83,5 +82,3 @@ private:
|
||||
|
||||
bool _loiter_pos_set{false};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -42,8 +42,7 @@
|
||||
* @author Lorenz Meier <lorenz@px4.io>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_MISSION_H
|
||||
#define NAVIGATOR_MISSION_H
|
||||
#pragma once
|
||||
|
||||
#include "mission_block.h"
|
||||
#include "mission_feasibility_checker.h"
|
||||
@ -271,5 +270,3 @@ private:
|
||||
WORK_ITEM_TYPE_PRECISION_LAND
|
||||
} _work_item_type{WORK_ITEM_TYPE_DEFAULT}; /**< current type of work to do (sub mission item) */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Julian Oes <julian@oes.ch>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_MISSION_BLOCK_H
|
||||
#define NAVIGATOR_MISSION_BLOCK_H
|
||||
#pragma once
|
||||
|
||||
#include "navigator_mode.h"
|
||||
#include "navigation.h"
|
||||
@ -128,5 +127,3 @@ protected:
|
||||
|
||||
orb_advert_t _actuator_pub{nullptr};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -39,8 +39,7 @@
|
||||
* @author Sander Smeets <sander@droneslab.com>
|
||||
*/
|
||||
|
||||
#ifndef MISSION_FEASIBILITY_CHECKER_H_
|
||||
#define MISSION_FEASIBILITY_CHECKER_H_
|
||||
#pragma once
|
||||
|
||||
#include <dataman/dataman.h>
|
||||
#include <uORB/topics/mission.h>
|
||||
@ -88,4 +87,3 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#endif /* MISSION_FEASIBILITY_CHECKER_H_ */
|
||||
|
||||
@ -39,8 +39,7 @@
|
||||
* @author Lorenz Meier <lm@inf.ethz.ch>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATION_H_
|
||||
#define NAVIGATION_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
@ -215,4 +214,3 @@ struct mission_save_point_s {
|
||||
*/
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@ -39,8 +39,7 @@
|
||||
* @author Lorenz Meier <lorenz@px4.io>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_H
|
||||
#define NAVIGATOR_H
|
||||
#pragma once
|
||||
|
||||
#include "datalinkloss.h"
|
||||
#include "enginefailure.h"
|
||||
@ -389,4 +388,3 @@ private:
|
||||
|
||||
void publish_vehicle_command_ack(const vehicle_command_s &cmd, uint8_t result);
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -39,8 +39,7 @@
|
||||
* @author Anton Babushkin <anton.babushkin@me.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_MODE_H
|
||||
#define NAVIGATOR_MODE_H
|
||||
#pragma once
|
||||
|
||||
class Navigator;
|
||||
|
||||
@ -80,5 +79,3 @@ protected:
|
||||
private:
|
||||
bool _active{false};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Nicolas de Palezieux (Sunflower Labs) <ndepal@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_PRECLAND_H
|
||||
#define NAVIGATOR_PRECLAND_H
|
||||
#pragma once
|
||||
|
||||
#include <matrix/math.hpp>
|
||||
#include <geo/geo.h>
|
||||
@ -133,5 +132,3 @@ private:
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -37,8 +37,7 @@
|
||||
* @author Thomas Gubler <thomasgubler@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_RCLOSS_H
|
||||
#define NAVIGATOR_RCLOSS_H
|
||||
#pragma once
|
||||
|
||||
#include <px4_module_params.h>
|
||||
|
||||
@ -80,4 +79,3 @@ private:
|
||||
void advance_rcl();
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -38,8 +38,7 @@
|
||||
* @author Anton Babushkin <anton.babushkin@me.com>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_RTL_H
|
||||
#define NAVIGATOR_RTL_H
|
||||
#pragma once
|
||||
|
||||
#include <px4_module_params.h>
|
||||
|
||||
@ -94,5 +93,3 @@ private:
|
||||
(ParamInt<px4::params::RTL_LAND_TYPE>) _param_rtl_land_type
|
||||
)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -38,9 +38,7 @@
|
||||
* @author Lorenz Meier <lorenz@px4.io>
|
||||
*/
|
||||
|
||||
#ifndef NAVIGATOR_TAKEOFF_H
|
||||
#define NAVIGATOR_TAKEOFF_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "navigator_mode.h"
|
||||
#include "mission_block.h"
|
||||
@ -58,5 +56,3 @@ private:
|
||||
|
||||
void set_takeoff_position();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user