22#include "generated/airframe.h"
89 dw->buf[
dw->idx++] = c;
Main include for ABI (AirBorneInterface).
Convenience defines for ABI sender IDs.
#define UWB_DW1000_ARDUINO_ID
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void dw1000_range_arduino_init(void)
static float float_from_buf(uint8_t *b)
Utility function to get float from buffer.
struct DW1000RangeArduino dw1000_range_arduino
#define DW_STX
frame sync byte
#define DW_WAIT_STX
Parsing states.
uint8_t buf[DW_NB_DATA]
incoming data buffer
uint8_t state
parser state
static uint16_t uint16_from_buf(uint8_t *b)
Utility function to get uint16_t from buffer.
static void send_anchor_data(struct DW1000RangeArduino *dw)
Send range data decoded from the serial frame.
void dw1000_range_arduino_event(void)
static void dw1000_range_arduino_parse(struct DW1000RangeArduino *dw, uint8_t c)
Data parsing function.
DW1000 Arduino range parser state.
Copyright (C) 2026 Fabien-B fabien-b@github.com This file is part of paparazzi.
uint16_t u16
Unsigned 16-bit integer.
int uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
uint8_t uart_getch(struct uart_periph *p)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define UWB_POSITIONING_TAG_ID
My UWB tag id.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)