Skyward boardcore
|
#include <AirBrakesPI.h>
Public Member Functions | |
AirBrakesPI (std::function< TimedTrajectoryPoint()> getCurrentPosition, const TrajectorySet &trajectorySet, const AirBrakesPIConfig &config, std::function< void(float)> setActuator) | |
bool | init () override |
Initializes the Algorithm object, must be called as soon as the object is created. | |
void | begin () |
This method chooses the trajectory the rocket will follow and starts the algorithm. | |
void | step () override |
Looks for nearest point in the current chosen trajectory and moves the airbraks according to the current rocket speed and the prediction. | |
![]() | |
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 38 of file AirBrakesPI.h.
Boardcore::AirBrakesPI::AirBrakesPI | ( | std::function< TimedTrajectoryPoint()> | getCurrentPosition, |
const TrajectorySet & | trajectorySet, | ||
const AirBrakesPIConfig & | config, | ||
std::function< void(float)> | setActuator ) |
Definition at line 39 of file AirBrakesPI.cpp.
void Boardcore::AirBrakesPI::begin | ( | ) |
This method chooses the trajectory the rocket will follow and starts the algorithm.
Definition at line 51 of file AirBrakesPI.cpp.
|
overridevirtual |
Initializes the Algorithm object, must be called as soon as the object is created.
Implements Boardcore::Algorithm.
Definition at line 49 of file AirBrakesPI.cpp.
|
overridevirtual |
Looks for nearest point in the current chosen trajectory and moves the airbraks according to the current rocket speed and the prediction.
Implements Boardcore::Algorithm.
Definition at line 61 of file AirBrakesPI.cpp.