mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 15:33:33 +08:00
geofence: remove fence & fence_vertex messages
- this was never read - it was implemented wrong, leading to memory access violations in publishFence (an integer was passed instead of the fence_s struct)
This commit is contained in:
@@ -43,6 +43,11 @@
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
#include <uORB/topics/vehicle_global_position.h>
|
||||
#include <uORB/topics/vehicle_gps_position.h>
|
||||
#include <uORB/topics/sensor_combined.h>
|
||||
#include <uORB/topics/home_position.h>
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <controllib/block/BlockParam.hpp>
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <drivers/drv_hrt.h>
|
||||
@@ -99,8 +104,6 @@ public:
|
||||
*/
|
||||
void addPoint(int argc, char *argv[]);
|
||||
|
||||
void publishFence(unsigned vertices);
|
||||
|
||||
int loadFromFile(const char *filename);
|
||||
|
||||
bool isEmpty() {return _vertices_count == 0;}
|
||||
@@ -114,7 +117,8 @@ public:
|
||||
private:
|
||||
Navigator *_navigator{nullptr};
|
||||
|
||||
orb_advert_t _fence_pub{nullptr}; /**< publish fence topic */
|
||||
home_position_s _home_pos{0};
|
||||
bool _home_pos_set{false};
|
||||
|
||||
hrt_abstime _last_horizontal_range_warning{0};
|
||||
hrt_abstime _last_vertical_range_warning{0};
|
||||
|
||||
Reference in New Issue
Block a user