30#include "uavcan.protocol.debug.KeyValue.h"
33#include "generated/flight_plan.h"
48 if (
msg.key.len != 3) {
52 if (
strncmp(
"snr", (
const char*)
msg.key.data, 3) == 0) {
55 }
else if (
strncmp(
"lit", (
const char*)
msg.key.data, 3) == 0) {
82#if (defined SITL) && (defined WP_SCOUT)
91 float snr = 20. - 20.f*
log10f(dist/3.f);
Common code for AP and FBW telemetry.
static float float_vect3_norm(const struct FloatVect3 *v)
#define VECT3_DIFF(_c, _a, _b)
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
static struct NedCoor_f * stateGetPositionNed_f(void)
Get position in local NED coordinates (float).
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
struct EnuCoor_f * waypoint_get_enu_f(uint8_t wp_id)
Get ENU coordinates (float)
vector in East North Up coordinates Units: meters
static uavcan_event scout_detector_uavcan_ev
void scout_detector_sim(void)
void scout_detector_report(void)
void scout_detector_init(void)
struct search_map_t scout_map
static void scout_detector_uavcan_cb(struct uavcan_iface_t *iface, CanardRxTransfer *transfer)
Scoutector driver Initially made for IMAV 2026 !
void search_map_init_from_wp(struct search_map_t *map, uint8_t wp_id, float res)
init map from waypoint
bool search_map_update(struct search_map_t *map, float data, struct NedCoor_f pos)
update map with new data
void uavcan_bind(uint16_t data_type_id, uint64_t data_type_signature, uavcan_event *ev, uavcan_callback cb)
Bind to a receiving message from uavcan.
Main uavcan event structure for registering/calling callbacks.
uavcan interface structure
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)
int transfer(const Mat *from, const image_t *to)