Skyward boardcore
|
#include <AirBrakesInterp.h>
Public Member Functions | |
AirBrakesInterp (std::function< TimedTrajectoryPoint()> getCurrentPosition, const TrajectorySet &trajectoryOpenSet, const TrajectorySet &trajectoryCloseSet, const AirBrakesInterpConfig &configInterp, std::function< void(float)> setActuator) | |
bool | init () override |
Initializes the Algorithm object, must be called as soon as the object is created. | |
void | begin (float currentMass) |
This method chooses the trajectory set that will be used to control the algorithm and starts it. | |
![]() | |
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} |
Definition at line 36 of file AirBrakesInterp.h.
Boardcore::AirBrakesInterp::AirBrakesInterp | ( | std::function< TimedTrajectoryPoint()> | getCurrentPosition, |
const TrajectorySet & | trajectoryOpenSet, | ||
const TrajectorySet & | trajectoryCloseSet, | ||
const AirBrakesInterpConfig & | configInterp, | ||
std::function< void(float)> | setActuator ) |
Definition at line 36 of file AirBrakesInterp.cpp.
void Boardcore::AirBrakesInterp::begin | ( | float | currentMass | ) |
This method chooses the trajectory set that will be used to control the algorithm and starts it.
currentMass | The current estimated rocket mass. |
Definition at line 50 of file AirBrakesInterp.cpp.
|
overridevirtual |
Initializes the Algorithm object, must be called as soon as the object is created.
Implements Boardcore::Algorithm.
Definition at line 48 of file AirBrakesInterp.cpp.