11#define POLL_TX_TO_RESP_RX_DLY_UUS 2100
13#define RESP_RX_TIMEOUT_UUS 300
40 virtual void setup()
override;
45 virtual void loop()
override;
The base class for Time-of-Flight (TOF) devices.
Definition: tof-device.h:44
The TofInitiator class represents a Time-of-Flight (TOF) initiator device.
Definition: tof-initiator.h:21
uint32_t frame_cnt
Definition: tof-initiator.h:48
uint8_t nonce[13]
Definition: tof-initiator.h:50
void process_tof_response()
Process the TOF response received from a responder. The calculated distance is stored into temp_dista...
Definition: tof-initiator.cpp:124
double temp_distance
Definition: tof-initiator.h:59
virtual void loop() override
Main loop of the TOF initiator device.
Definition: tof-initiator.cpp:50
uint8_t total_responders
Definition: tof-initiator.h:53
uwb_addr * dst_address
Definition: tof-initiator.h:52
void send_tof_request(uwb_addr dest)
Send a TOF request to a specific destination address.
Definition: tof-initiator.cpp:82
virtual void setup() override
Initialize and configure the TOF initiator device.
Definition: tof-initiator.cpp:23
uint8_t seq_cnt
Definition: tof-initiator.h:49
double tof
Definition: tof-initiator.h:58
uint8_t current_responder
Definition: tof-initiator.h:54
~TofInitiator()
Destructor for the TofInitiator class.
Definition: tof-initiator.h:35
long long uwb_addr
Definition: datatypes.h:11
#define NUM_LANDMARKS
Definition: datatypes.h:8
Header file for the TOFDevice class, a superclass for TOF initiators and responders.
double distances[NUM_LANDMARKS]