PX4 Firmware
PX4 Autopilot Software http://px4.io
mission_fence_point_s Struct Reference

Geofence vertex point. More...

#include <navigation.h>

Collaboration diagram for mission_fence_point_s:

Public Attributes

double lat
 
double lon
 
float alt
 
union {
   uint16_t   vertex_count
 number of vertices in this polygon More...
 
   float   circle_radius
 geofence circle radius in meters (only used for NAV_CMD_NAV_FENCE_CIRCLE*) More...
 
}; 
 
uint16_t nav_cmd
 navigation command (one of MAV_CMD_NAV_FENCE_*) More...
 
uint8_t frame
 MAV_FRAME. More...
 
uint8_t _padding0 [5]
 padding struct size to alignment boundary More...
 

Detailed Description

Geofence vertex point.

Corresponds to the DM_KEY_FENCE_POINTS dataman item

Definition at line 203 of file navigation.h.

Member Data Documentation

◆ @134

union { ... }

◆ _padding0

uint8_t mission_fence_point_s::_padding0[5]

padding struct size to alignment boundary

Definition at line 216 of file navigation.h.

◆ alt

float mission_fence_point_s::alt

◆ circle_radius

float mission_fence_point_s::circle_radius

geofence circle radius in meters (only used for NAV_CMD_NAV_FENCE_CIRCLE*)

Definition at line 210 of file navigation.h.

Referenced by Geofence::_updateFence(), MavlinkMissionManager::handle_mission_item_both(), Geofence::insideCircle(), and MavlinkMissionManager::send_mission_item().

◆ frame

◆ lat

◆ lon

◆ nav_cmd

uint16_t mission_fence_point_s::nav_cmd

navigation command (one of MAV_CMD_NAV_FENCE_*)

Definition at line 213 of file navigation.h.

Referenced by Geofence::_updateFence(), MavlinkMissionManager::handle_mission_item_both(), Geofence::loadFromFile(), and MavlinkMissionManager::send_mission_item().

◆ vertex_count

uint16_t mission_fence_point_s::vertex_count

The documentation for this struct was generated from the following file: