PER Firmware
Loading...
Searching...
No Matches
race.c File Reference

Race page implementation. More...

#include "race.h"
#include "nextion/nextion.h"
#include "can_library/generated/DASHBOARD.h"
#include "pedals.h"
#include "utils/max.h"
#include "dearunits/generated/dearunits.h"
#include "colors.h"
#include "lap_timer.h"
Include dependency graph for race.c:

Functions

static void update_car_state_telemetry ()
 
static void update_motor_telemetry ()
 
static void update_igbt_telemetry ()
 
static void update_pack_telemetry ()
 
static void update_speed_telemetry ()
 
static void update_pedal_telemetry ()
 
static void update_tv_bar (char *obj_name, int16_t torque_req)
 
static void update_tv_telemetry ()
 
static time_display_t format_time_ms (uint32_t raw_time_ms)
 
static void update_diff_time (uint32_t curr_elapsed_ms, uint32_t best_lap_ms)
 
static void update_lap_time_telemetry ()
 
void race_telemetry_update ()
 Updates telemetry data on the race dashboard LCD display.
 

Detailed Description

Race page implementation.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ format_time_ms()

static time_display_t format_time_ms ( uint32_t raw_time_ms)
inlinestatic
Here is the caller graph for this function:

◆ race_telemetry_update()

void race_telemetry_update ( )

Updates telemetry data on the race dashboard LCD display.

Only updates on race page. Displays 'S' for stale values.

Here is the call graph for this function:

◆ update_car_state_telemetry()

static void update_car_state_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_diff_time()

static void update_diff_time ( uint32_t curr_elapsed_ms,
uint32_t best_lap_ms )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_igbt_telemetry()

static void update_igbt_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_lap_time_telemetry()

static void update_lap_time_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_motor_telemetry()

static void update_motor_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_pack_telemetry()

static void update_pack_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_pedal_telemetry()

static void update_pedal_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_speed_telemetry()

static void update_speed_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_tv_bar()

static void update_tv_bar ( char * obj_name,
int16_t torque_req )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_tv_telemetry()

static void update_tv_telemetry ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function: