#include <uwrov-module.h>
UwROVModule class is used to manage UWROV packets and to collect statistics about them.
Definition at line 78 of file uwrov-module.h.
◆ UWROV_ACK_POLICY
Enumerator |
---|
ACK_PIGGYBACK | |
ACK_IMMEDIATELY | |
ACK_PGBK_OR_TO | |
Definition at line 167 of file uwrov-module.h.
◆ UwROVModule() [1/2]
UwROVModule::UwROVModule |
( |
| ) |
|
◆ UwROVModule() [2/2]
Constructor with position setting of UwROVModule class.
- Parameters
-
UWSMPosition* | p Pointer to the ROV position |
Definition at line 109 of file uwrov-module.cc.
◆ ~UwROVModule()
UwROVModule::~UwROVModule |
( |
| ) |
|
|
virtual |
◆ command()
int UwROVModule::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
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.
Reimplemented from UwCbrModule.
Definition at line 142 of file uwrov-module.cc.
◆ getPosition()
Returns the position of the ROV.
- Returns
- the current ROV position
Definition at line 143 of file uwrov-module.h.
◆ getROVCTRHeaderSize()
static int UwROVModule::getROVCTRHeaderSize |
( |
| ) |
|
|
inlinestatic |
◆ getROVMonHeaderSize()
static int UwROVModule::getROVMonHeaderSize |
( |
| ) |
|
|
inlinestatic |
◆ initPkt()
void UwROVModule::initPkt |
( |
Packet * |
p | ) |
|
|
virtual |
Initializes a monitoring data packet passed as argument with the default values.
- Parameters
-
Packet* | Pointer to a packet already allocated to fill with the right values. |
Reimplemented from UwCbrModule.
Definition at line 215 of file uwrov-module.cc.
◆ recv() [1/2]
void UwROVModule::recv |
( |
Packet * |
p | ) |
|
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Reimplemented from UwCbrModule.
Definition at line 242 of file uwrov-module.cc.
◆ recv() [2/2]
void UwROVModule::recv |
( |
Packet * |
p, |
|
|
Handler * |
h |
|
) |
| |
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Handler* | Handler. |
Reimplemented from UwCbrModule.
Definition at line 238 of file uwrov-module.cc.
◆ sendAck()
void UwROVModule::sendAck |
( |
| ) |
|
|
virtual |
◆ setPosition()
◆ UwROVSendAckTimer
◆ ack
If not zero, contains the ACK to the last command Packete received.
Definition at line 171 of file uwrov-module.h.
◆ ackNotPgbk
int UwROVModule::ackNotPgbk |
|
protected |
< Flag to give higher priority to ACK or not.
Definition at line 184 of file uwrov-module.h.
◆ ackPolicy
Flag to set the policy for ACK transimission, ACK_PIGGYBACK: ACK is always sent in piggyback, ACK_IMMEDIATELY: ACK is always sent immediately with a dedicated packet after the reception of CTR packet ACK_PGBK_OR_TO: ACK is sent in piggyback if a ROV packet is generated before a ackTimeout otherwise ACK is sent with a dedicated packet after the acKTimeout.
Definition at line 174 of file uwrov-module.h.
◆ ackPriority
int UwROVModule::ackPriority |
|
protected |
◆ ackTimeout
int UwROVModule::ackTimeout |
|
protected |
Timeout after which ACK is sent if ackPolicy = ACK_PGBK_OR_TO.
Definition at line 181 of file uwrov-module.h.
◆ ackTimer_
◆ buffer
std::queue<Packet*> UwROVModule::buffer |
|
protected |
◆ drop_old_waypoints
int UwROVModule::drop_old_waypoints |
|
protected |
< Number of ACK not sent in piggyback when ackPolicy = 2.
Definition at line 185 of file uwrov-module.h.
◆ last_sn_confirmed
int UwROVModule::last_sn_confirmed |
|
protected |
Sequence number of the last command Packete received.
Definition at line 170 of file uwrov-module.h.
◆ log_flag
int UwROVModule::log_flag |
|
protected |
< Flag set to 1 to drop waypoints with sequence number lower or equal than last_sn_confirmed.
Flag to enable log file writing.
Definition at line 189 of file uwrov-module.h.
◆ out_file_stats
std::ofstream UwROVModule::out_file_stats |
|
protected |
Output stream for the textual file of debug.
Definition at line 191 of file uwrov-module.h.
◆ posit
The documentation for this class was generated from the following files: