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

The TdoaTag class represents a TDOA tag device. More...

#include <tdoa-tag.h>

Inheritance diagram for TdoaTag:
TdoaDevice

Public Member Functions

 TdoaTag (uwb_addr src)
 Constructor for the TdoaTag class. More...
 
 ~TdoaTag ()
 Destructor for the TdoaTag class. More...
 
virtual void setup () override
 Perform setup and configuration specific to the TDOA tag device. More...
 
virtual void loop () override
 Main loop function for the TDOA tag 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...
 

Private Attributes

uint8_t seq_cnt
 

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 TdoaTag class represents a TDOA tag device.

This class inherits from the TdoaDevice class and provides specific setup and loop functionality for a TDOA tag device. It periodically sends an blink frame to containing a sequence number.

Constructor & Destructor Documentation

◆ TdoaTag()

TdoaTag ( uwb_addr  src)

Constructor for the TdoaTag class.

Initializes a TDOA tag device with the specified source address.

Parameters
srcThe source address of the TDOA tag device.

◆ ~TdoaTag()

~TdoaTag ( )
inline

Destructor for the TdoaTag class.

Member Function Documentation

◆ loop()

void loop ( )
overridevirtual

Main loop function for the TDOA tag device.

Overrides the loop method from the base class (TdoaDevice).

This function prepares and transmits a frame using the DW IC and handles the transmission process, including checking for successful transmission.

Reimplemented from TdoaDevice.

◆ setup()

void setup ( )
overridevirtual

Perform setup and configuration specific to the TDOA tag device.

Overrides the setup method from the base class (TdoaDevice).

Reimplemented from TdoaDevice.

Member Data Documentation

◆ seq_cnt

uint8_t seq_cnt
private

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