Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::AirBrakesPI Class Reference

#include <AirBrakesPI.h>

Inheritance diagram for Boardcore::AirBrakesPI:
Collaboration diagram for Boardcore::AirBrakesPI:

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.
 
- Public Member Functions inherited from Boardcore::Algorithm
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

- Protected Attributes inherited from Boardcore::Algorithm
std::atomic< bool > running {false}
 

Detailed Description

Definition at line 38 of file AirBrakesPI.h.

Constructor & Destructor Documentation

◆ AirBrakesPI()

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.

Member Function Documentation

◆ begin()

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.

◆ init()

bool Boardcore::AirBrakesPI::init ( )
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.

◆ step()

void Boardcore::AirBrakesPI::step ( )
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.


The documentation for this class was generated from the following files: