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

#include <AirBrakesInterp.h>

Inheritance diagram for Boardcore::AirBrakesInterp:
Collaboration diagram for Boardcore::AirBrakesInterp:

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.
 
- 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 36 of file AirBrakesInterp.h.

Constructor & Destructor Documentation

◆ AirBrakesInterp()

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.

Member Function Documentation

◆ begin()

void Boardcore::AirBrakesInterp::begin ( float currentMass)

This method chooses the trajectory set that will be used to control the algorithm and starts it.

Parameters
currentMassThe current estimated rocket mass.

Definition at line 50 of file AirBrakesInterp.cpp.

◆ init()

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


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