UWB-Tracking
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
TdoaAnchor Class Reference

The TdoaAnchor class represents a TDOA anchor device. More...

#include <tdoa-anchor.h>

Inheritance diagram for TdoaAnchor:
TdoaDevice

Public Member Functions

 TdoaAnchor (uwb_addr src)
 Constructor for the TdoaAnchor class. More...
 
 ~TdoaAnchor ()
 Destructor for the TdoaAnchor class. More...
 
virtual void setup () override
 Initialize the TDOA anchor device. More...
 
virtual void loop () override
 Main loop for the TDOA anchor device. More...
 
- Public Member Functions inherited from TdoaDevice
 TdoaDevice (uwb_addr src)
 Constructor for the TdoaDevice class. More...
 
 ~TdoaDevice ()
 Destructor for the TdoaDevice class. More...
 
virtual void setup ()
 Perform setup and configuration of the TDOA device. More...
 
void enable_leds ()
 Enable LEDs on the TDOA device if available. More...
 
virtual void loop ()
 Main loop function for the TDOA device. More...
 
char * get_type ()
 Get the type of the TDOA device. More...
 

Static Private Member Functions

static void rx_ok_cb (const dwt_cb_data_t *cb_data)
 Callback function for successful RX operation. More...
 
static void rx_err_cb (const dwt_cb_data_t *cb_data)
 Callback function for RX error. More...
 

Private Attributes

char pdoa_str [16] = {0}
 A character array to store the PdoA value as a string. More...
 
char toa_str [50] = {0}
 A character array to store the ToA value as a string. More...
 

Additional Inherited Members

- Protected Attributes inherited from TdoaDevice
uwb_addr src_address
 
String type
 
uint8_t tx_msg [10]
 
uint8_t rx_buffer [FRAME_LENGTH]
 
uint32_t status_reg
 Status register value. More...
 
int8_t status
 Status variable indicating the device's current status. More...
 
dwt_config_t config
 Configuration settings for the DW3000 device. More...
 

Detailed Description

The TdoaAnchor class represents a TDOA anchor device.

This class extends the TdoaDevice class and provides specific functionality for TDOA anchor devices.

Constructor & Destructor Documentation

◆ TdoaAnchor()

TdoaAnchor ( uwb_addr  src)

Constructor for the TdoaAnchor class.

Initializes a TDOA anchor device with the specified source address.

Parameters
srcThe source address of the TDOA anchor device.

◆ ~TdoaAnchor()

~TdoaAnchor ( )
inline

Destructor for the TdoaAnchor class.

Member Function Documentation

◆ loop()

void loop ( )
overridevirtual

Main loop for the TDOA anchor device.

This function represents the main loop of the TDOA anchor device. It waits for the reception of a new PdoA value and updates relevant information.

Reimplemented from TdoaDevice.

◆ rx_err_cb()

void rx_err_cb ( const dwt_cb_data_t *  cb_data)
staticprivate

Callback function for RX error.

This function is called when an RX error occurs. It clears RX error events and activates reception.

Parameters
cb_dataA pointer to the callback data structure.

◆ rx_ok_cb()

void rx_ok_cb ( const dwt_cb_data_t *  cb_data)
staticprivate

Callback function for successful RX operation.

This function is called when a successful RX operation occurs. It reads STS quality and STS status, updates PdoA and timestamp information, and activates reception.

Parameters
cb_dataA pointer to the callback data structure.

◆ setup()

void setup ( )
overridevirtual

Initialize the TDOA anchor device.

This function sets up the TDOA anchor device, registers callbacks, enables interrupts, and installs the IRQ handler.

Reimplemented from TdoaDevice.

Member Data Documentation

◆ pdoa_str

char pdoa_str[16] = {0}
private

A character array to store the PdoA value as a string.

◆ toa_str

char toa_str[50] = {0}
private

A character array to store the ToA value as a string.


The documentation for this class was generated from the following files: