PER Firmware
Loading...
Searching...
No Matches
lap_timer.h File Reference

DASHBOARD lap timer task implementations. More...

#include <stdint.h>
#include "utils/geodetic.h"
#include "utils/vector2.h"
Include dependency graph for lap_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lap_timer_context_t
 

Enumerations

enum  lap_timer_state_t { LAP_TIMER_STATE_IDLE , LAP_TIMER_STATE_CAPTURING_HEADING , LAP_TIMER_STATE_TIMING , LAP_TIMER_STATE_COMPLETE }
 

Functions

void lap_timer_onpress (void)
 
void lap_timer_periodic (void)
 
uint32_t lap_timer_elapsed_ms (void)
 
uint32_t lap_timer_best_time_ms (void)
 

Variables

static constexpr float LAP_TIMER_CAPTURE_DISTANCE_M = 1.0f
 
static constexpr float LAP_TIMER_FINISH_HALF_WIDTH_M = 1.0f
 

Detailed Description

DASHBOARD lap timer task implementations.

Author
Amruth Nadimpally(nadim.nosp@m.paa@.nosp@m.purdu.nosp@m.e.ed.nosp@m.u)
Aditya Saini (saini.nosp@m.91@p.nosp@m.urdue.nosp@m..edu)

Enumeration Type Documentation

◆ lap_timer_state_t

Enumerator
LAP_TIMER_STATE_IDLE 
LAP_TIMER_STATE_CAPTURING_HEADING 
LAP_TIMER_STATE_TIMING 
LAP_TIMER_STATE_COMPLETE 

Function Documentation

◆ lap_timer_best_time_ms()

uint32_t lap_timer_best_time_ms ( void )
Here is the caller graph for this function:

◆ lap_timer_elapsed_ms()

uint32_t lap_timer_elapsed_ms ( void )
Here is the caller graph for this function:

◆ lap_timer_onpress()

void lap_timer_onpress ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lap_timer_periodic()

void lap_timer_periodic ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ LAP_TIMER_CAPTURE_DISTANCE_M

float LAP_TIMER_CAPTURE_DISTANCE_M = 1.0f
staticconstexpr

◆ LAP_TIMER_FINISH_HALF_WIDTH_M

float LAP_TIMER_FINISH_HALF_WIDTH_M = 1.0f
staticconstexpr