Skyward boardcore
|
Predictor class that linearly propagates the last available rocket position by means of the rocket NAS velocity. More...
#include <Propagator.h>
Public Member Functions | |
Propagator (std::chrono::milliseconds updatePeriod) | |
Constructor of the propagator class. | |
bool | init () override |
Dummy init since we don't have to setup anything. | |
void | setRocketNasState (const NASState &newRocketNasState) |
Synchronized setter for the latest rocket nas state. Also notifies the predictor of a new packet arrival. | |
NASState | getRocketNasState () |
Synchronized getter for the last rocket NAS State passed to the propagator. | |
PropagatorState | getState () |
Synchronized getter for the State of the predictor. | |
![]() | |
void | begin () |
Starts the execution of the algorithm and set the running flag to true. | |
void | end () |
Terminates the algorithm's execution and sets the running flag to false. | |
void | update () |
Checks wether the algorithm is in a running state or not, and eventually calls the. | |
bool | isRunning () |
Additional Inherited Members | |
![]() | |
std::atomic< bool > | running {false} |
Predictor class that linearly propagates the last available rocket position by means of the rocket NAS velocity.
Definition at line 50 of file Propagator.h.
|
explicit |
Constructor of the propagator class.
updatePeriod | The period of update of the predictor algorithm [ms]. |
Definition at line 37 of file Propagator.cpp.
|
inline |
Synchronized getter for the last rocket NAS State passed to the propagator.
Definition at line 80 of file Propagator.h.
|
inline |
Synchronized getter for the State of the predictor.
Definition at line 91 of file Propagator.h.
|
overridevirtual |
Dummy init since we don't have to setup anything.
Implements Boardcore::Algorithm.
Definition at line 42 of file Propagator.cpp.
void Boardcore::Propagator::setRocketNasState | ( | const NASState & | newRocketNasState | ) |
Synchronized setter for the latest rocket nas state. Also notifies the predictor of a new packet arrival.
newRocketNasState | The updated NAS state of the rocket. |
Definition at line 105 of file Propagator.cpp.