18 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL 35 #define BEACON_SPACING_NORTH 10.0 36 #define BEACON_SPACING_EAST 20.0 39 #define ORIGIN_OFFSET_NORTH 2.5 // shifts beacon pattern centroid North (m) 40 #define ORIGIN_OFFSET_EAST 5.0 // shifts beacon pattern centroid East (m) 103 Vector3f veh_pos3d(veh_diff.
x, veh_diff.
y, (current_loc.
alt - beacon_origin.
alt)*1.0e-2);
104 Vector3f beac_pos3d(beac_diff.
x, beac_diff.
y, (beacon_origin.
alt - beacon_loc.
alt)*1.0e-2);
105 Vector3f beac_veh_offset = veh_pos3d - beac_pos3d;
114 #endif // CONFIG_HAL_BOARD static AP_Param * find_object(const char *name)
#define ORIGIN_OFFSET_NORTH
void set_beacon_distance(uint8_t beacon_instance, float distance)
float get_beacon_origin_lat(void) const
void location_offset(struct Location &loc, float ofs_north, float ofs_east)
#define BEACON_SPACING_NORTH
int32_t lat
param 3 - Latitude * 10**7
float get_beacon_origin_alt(void) const
Vector2f location_diff(const struct Location &loc1, const struct Location &loc2)
int32_t alt
param 2 - Altitude in centimeters (meters * 100) see LOCATION_ALT_MAX_M
#define AP_BEACON_TIMEOUT_MS
void set_beacon_position(uint8_t beacon_instance, const Vector3f &pos)
float get_beacon_origin_lon(void) const
AP_Beacon_SITL(AP_Beacon &frontend)
int32_t lng
param 4 - Longitude * 10**7
#define ORIGIN_OFFSET_EAST
#define BEACON_SPACING_EAST
void set_vehicle_position(const Vector3f &pos, float accuracy_estimate)