Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
FastLaunchDetector Class Reference

#include <FastLaunchDetector.h>

Collaboration diagram for FastLaunchDetector:
Collaboration graph

Public Member Functions

 FastLaunchDetector (float accelerationThreshold, uint32_t confirmationWindow_ms=500)
int update (AccelerationTriplet accel)
bool hasLaunched () const
uint32_t getLaunchedTime () const
uint32_t getConfirmationWindow () const
void reset ()

Detailed Description

Definition at line 19 of file FastLaunchDetector.h.

Constructor & Destructor Documentation

◆ FastLaunchDetector()

FastLaunchDetector::FastLaunchDetector ( float accelerationThreshold,
uint32_t confirmationWindow_ms = 500 )

Constructor

Parameters
accelerationThreshold_ms2The threshold for acceleration to be considered a launch
confirmationWindow_msThe time window in ms to confirm the launch using LaunchDetector

Definition at line 8 of file FastLaunchDetector.cpp.

Member Function Documentation

◆ getConfirmationWindow()

uint32_t FastLaunchDetector::getConfirmationWindow ( ) const
inline

Definition at line 33 of file FastLaunchDetector.h.

◆ getLaunchedTime()

uint32_t FastLaunchDetector::getLaunchedTime ( ) const
inline

Definition at line 32 of file FastLaunchDetector.h.

◆ hasLaunched()

bool FastLaunchDetector::hasLaunched ( ) const
inline

Definition at line 31 of file FastLaunchDetector.h.

◆ reset()

void FastLaunchDetector::reset ( )

Definition at line 50 of file FastLaunchDetector.cpp.

◆ update()

int FastLaunchDetector::update ( AccelerationTriplet accel)

Definition at line 15 of file FastLaunchDetector.cpp.


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