25 #define AP_BEACON_MAX_BEACONS 4 26 #define AP_BEACON_TIMEOUT_MS 300 27 #define AP_BEACON_MINIMUM_FENCE_BEACONS 3 72 uint8_t
count()
const;
80 uint8_t
beacon_id(uint8_t beacon_instance)
const;
bool device_ready(void) const
float beacon_distance(uint8_t beacon_instance) const
const Vector2f * get_boundary_points(uint16_t &num_points) const
AP_Beacon(AP_SerialManager &_serial_manager)
#define AP_BEACON_MAX_BEACONS
AP_SerialManager & serial_manager
static bool get_next_boundary_point(const Vector2f *boundary, uint8_t num_points, uint8_t current_index, float start_angle, uint8_t &next_index, float &next_angle)
bool beacon_healthy(uint8_t beacon_instance) const
uint32_t distance_update_ms
A system for managing and storing variables that are of general interest to the system.
bool get_origin(Location &origin_loc) const
uint8_t beacon_id(uint8_t beacon_instance) const
bool get_vehicle_position_ned(Vector3f &pos, float &accuracy_estimate) const
Vector2f boundary[AP_BEACON_MAX_BEACONS+1]
Vector3f beacon_position(uint8_t beacon_instance) const
AP_Beacon_Backend * _driver
uint32_t veh_pos_update_ms
bool get_beacon_data(uint8_t beacon_instance, struct BeaconState &state) const
uint32_t beacon_last_update_ms(uint8_t beacon_instance) const
Common definitions and utility routines for the ArduPilot libraries.
uint8_t boundary_num_points
uint8_t boundary_num_beacons
BeaconState beacon_state[AP_BEACON_MAX_BEACONS]
static const struct AP_Param::GroupInfo var_info[]
void update_boundary_points()