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

MAIN MODULE telemetry task implementations. More...

#include "telemetry.h"
#include "can_library/generated/MAIN_MODULE.h"
#include "can_library/generated/can_version.h"
#include "bootloader/bootloader_common.h"
#include "main.h"
#include "powertrain.h"
Include dependency graph for telemetry.c:

Functions

static float hv_adc_to_voltage (uint16_t adc_raw)
 
void report_telemetry_50hz (void)
 Reports telemetry data at 50 Hz rate Includes: AMK-reported motor shaft speeds before gear reduction, VBATT and VMC HV voltages.
 
static bool any_amk_message_stale (AMK_t *amk)
 
void report_telemetry_1hz (void)
 Reports telemetry data at 1 Hz rate Includes: AMK diagnostics.
 
void report_telemetry_02hz (void)
 Reports telemetry data at 0.2 Hz rate Includes: AMK reported motor and IGBT temperatures, firmware version, CAN stats.
 

Detailed Description

MAIN MODULE telemetry task implementations.

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

Function Documentation

◆ any_amk_message_stale()

static bool any_amk_message_stale ( AMK_t * amk)
inlinestatic
Here is the caller graph for this function:

◆ hv_adc_to_voltage()

static float hv_adc_to_voltage ( uint16_t adc_raw)
inlinestatic
Here is the caller graph for this function:

◆ report_telemetry_02hz()

void report_telemetry_02hz ( void )

Reports telemetry data at 0.2 Hz rate Includes: AMK reported motor and IGBT temperatures, firmware version, CAN stats.

Reports telemetry data at 0.2 Hz rate Includes: ABOX git hash, CAN stats.

Here is the call graph for this function:

◆ report_telemetry_1hz()

void report_telemetry_1hz ( void )

Reports telemetry data at 1 Hz rate Includes: AMK diagnostics.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_telemetry_50hz()

void report_telemetry_50hz ( void )

Reports telemetry data at 50 Hz rate Includes: AMK-reported motor shaft speeds before gear reduction, VBATT and VMC HV voltages.

Here is the call graph for this function:
Here is the caller graph for this function: