Race page implementation.
More...
#include "race.h"
#include "common/nextion/nextion.h"
#include "can_library/generated/DASHBOARD.h"
#include "pedals.h"
#include "common/utils/max.h"
#include "colors.h"
Race page implementation.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ 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.
◆ update_car_state_telemetry()
| static void update_car_state_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_igbt_telemetry()
| static void update_igbt_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_motor_telemetry()
| static void update_motor_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_pack_telemetry()
| static void update_pack_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_pedal_telemetry()
| static void update_pedal_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_speed_telemetry()
| static void update_speed_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ update_tv_bar()
| static void update_tv_bar |
( |
char * | obj_name, |
|
|
int16_t | torque_req ) |
|
inlinestatic |
◆ update_tv_telemetry()
| static void update_tv_telemetry |
( |
| ) |
|
|
inlinestatic |
◆ GEAR_RATIO
| float GEAR_RATIO = 12.51f |
|
staticconstexpr |
◆ INCHES_PER_MILE
| float INCHES_PER_MILE = 63360.0f |
|
staticconstexpr |
◆ INCHES_PER_MOTOR_REV
◆ MINUTES_PER_HOUR
| float MINUTES_PER_HOUR = 60.0f |
|
staticconstexpr |
◆ OUTPUT_REV_PER_MOTOR_REV
| float OUTPUT_REV_PER_MOTOR_REV = 1.0f / GEAR_RATIO |
|
staticconstexpr |
◆ RPM_TO_MPH
◆ WHEEL_CIRCUMFERENCE_IN
◆ WHEEL_RADIUS_IN
| float WHEEL_RADIUS_IN = 8.0f |
|
staticconstexpr |