mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:41:35 +08:00
geofence: do not keep fence in memory
This commit is contained in:
@@ -46,11 +46,12 @@
|
||||
|
||||
class Geofence {
|
||||
private:
|
||||
struct fence_s _fence;
|
||||
orb_advert_t _fence_pub; /**< publish fence topic */
|
||||
|
||||
float _altitude_min;
|
||||
float _altitude_max;
|
||||
|
||||
int _verticesCount;
|
||||
public:
|
||||
Geofence();
|
||||
~Geofence();
|
||||
@@ -66,12 +67,6 @@ public:
|
||||
bool inside(const struct vehicle_global_position_s *craft);
|
||||
bool inside(double lat, double lon, float altitude);
|
||||
|
||||
|
||||
/**
|
||||
* Load fence parameters.
|
||||
*/
|
||||
bool loadFromDm(unsigned vertices);
|
||||
|
||||
int clearDm();
|
||||
|
||||
bool valid();
|
||||
|
||||
Reference in New Issue
Block a user