32#ifndef SEARCH_MAP_SIZE
33#define SEARCH_MAP_SIZE 51
Paparazzi floating point math for geodetic calculations.
vector in North East Down coordinates Units: meters
void search_map_init_from_wp(struct search_map_t *map, uint8_t wp_id, float res)
init map from waypoint
void search_map_reset(struct search_map_t *map)
reset map
float res
map resolution in m/cell
void search_map_update_wp(struct search_map_t *map, float threshold, uint8_t wp_id)
update waypoint position from map
float search_map_get_barycenter(struct search_map_t *map, float threshold, struct NedCoor_f *pos)
get weighted center of the data, expected to be the search position
struct NedCoor_f center
center of the map
void search_map_init(struct search_map_t *map, struct NedCoor_f pos, float res)
init map
bool search_map_update(struct search_map_t *map, float data, struct NedCoor_f pos)
update map with new data
float grid[SEARCH_MAP_SIZE][SEARCH_MAP_SIZE]
data
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.