navigator/geofence: move more functions to geofence class (WIP)

This commit is contained in:
Thomas Gubler
2014-01-02 15:01:08 +01:00
parent dca6d97a52
commit 429a11a21d
5 changed files with 138 additions and 127 deletions
+16
View File
@@ -45,6 +45,7 @@
class Geofence {
private:
struct fence_s _fence;
orb_advert_t _fence_pub; /**< publish fence topic */
public:
Geofence();
~Geofence();
@@ -58,6 +59,21 @@ public:
* @return true: craft is inside fence, false:craft is outside fence
*/
bool inside(const struct vehicle_global_position_s *craft);
/**
* Load fence parameters.
*/
bool load(unsigned vertices);
bool valid();
/**
* Specify fence vertex position.
*/
void addPoint(int argc, char *argv[]);
void publishFence(unsigned vertices);
};