#include <uwPosBasedRt.h>
|
virtual int | command (int, const char *const *) |
|
virtual void | recv (Packet *p) |
|
virtual void | initPkt (Packet *p) |
|
virtual void | updatePosInfo (Packet *p) |
|
virtual uint8_t | findNextHop (const Packet *p) |
|
virtual void | addRoute (const uint8_t &dst, const uint8_t &next, const int toFixedNode) |
|
virtual void | setMaxTxRange (double newRange) |
|
Definition at line 60 of file uwPosBasedRt.h.
◆ UwPosBasedRt()
UwPosBasedRt::UwPosBasedRt |
( |
| ) |
|
◆ ~UwPosBasedRt()
UwPosBasedRt::~UwPosBasedRt |
( |
| ) |
|
|
virtual |
◆ addRoute()
void UwPosBasedRt::addRoute |
( |
const uint8_t & |
dst, |
|
|
const uint8_t & |
next, |
|
|
const int |
toFixedNode |
|
) |
| |
|
protectedvirtual |
Add new entry to the routing table.
- Parameters
-
uint8_t | Address of the destination. |
uint8_t | Address of the next hop. |
int | Parameter to find if the dest address is a static node or a vehicle |
Definition at line 386 of file uwPosBasedRt.cpp.
◆ command()
int UwPosBasedRt::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
protectedvirtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 92 of file uwPosBasedRt.cpp.
◆ findNextHop()
uint8_t UwPosBasedRt::findNextHop |
( |
const Packet * |
p | ) |
|
|
protectedvirtual |
Find next hop of a packet passed as input.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 325 of file uwPosBasedRt.cpp.
◆ initPkt()
void UwPosBasedRt::initPkt |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ nodesDistance()
double UwPosBasedRt::nodesDistance |
( |
Position & |
p1, |
|
|
Position & |
p2 |
|
) |
| |
|
privatevirtual |
Compute absoulute distance between 2 nodes.
- Parameters
-
Position | position first node. |
Position | position second node. |
Definition at line 374 of file uwPosBasedRt.cpp.
◆ recv()
void UwPosBasedRt::recv |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 144 of file uwPosBasedRt.cpp.
◆ setMaxTxRange()
void UwPosBasedRt::setMaxTxRange |
( |
double |
newRange | ) |
|
|
protectedvirtual |
Set maximum transmission range.
- Parameters
-
float | New value for transmission range. |
Definition at line 428 of file uwPosBasedRt.cpp.
◆ updatePosInfo()
void UwPosBasedRt::updatePosInfo |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
update informations regardin position, if needed
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 252 of file uwPosBasedRt.cpp.
◆ debug_
Flag to enable or disable dirrefent levels of debug.
Definition at line 157 of file uwPosBasedRt.h.
◆ ipAddr
uint8_t UwPosBasedRt::ipAddr |
|
private |
◆ maxTxRange
double UwPosBasedRt::maxTxRange |
|
private |
Maximum transmission range, in meters, for this node.
Definition at line 147 of file uwPosBasedRt.h.
◆ node_pos
Position UwPosBasedRt::node_pos |
|
private |
◆ ROV_routing
◆ ROV_speed
double UwPosBasedRt::ROV_speed |
|
private |
◆ static_routing
std::map<uint8_t, uint8_t> UwPosBasedRt::static_routing |
|
private |
Routing table: destination - next hop.
Definition at line 152 of file uwPosBasedRt.h.
◆ timestamp
double UwPosBasedRt::timestamp |
|
private |
Timestamp for the validity of last received ROV position.
Definition at line 144 of file uwPosBasedRt.h.
The documentation for this class was generated from the following files: