DadcaProtocol
Description
Functions
Telemetry
Telemetry currentTelemetry = Telemetry();
Last telemetry package recieved
Telemetry
Telemetry lastStableTelemetry = Telemetry();
DadcaMessage
DadcaMessage lastPayload = DadcaMessage();
initialize
virtual void initialize(int stage) override;
handleTelemetry
virtual void handleTelemetry(gradys_simulations::Telemetry *telemetry) override;
Saves telemetry recieved by mobility
handlePacket
virtual void handlePacket(Packet *pk) override;
Reacts to message recieved and updates payload accordingly
isTimedout
virtual bool isTimedout() override;
Checks if timeout has finished and resets parameters if it has
resetParameters
virtual void resetParameters();
Resets parameters
rendevouz
virtual void rendevouz();
Sends sequence of orders that defines a rendevouz point, navigates to it and reverses
updatePayload
virtual void updatePayload();
Updates payload that communication will send
setTarget
virtual void setTarget(const char *target);