|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|


Go to the source code of this file.
Classes | |
| struct | TelemetrySignal |
Enumerations | |
| enum | TelemetryType { TELEMETRY_SENSOR , TELEMETRY_OUTPUT , TELEMETRY_CAN_TX , TELEMETRY_CAN_RX , TELEMETRY_STATUS , TELEMETRY_DEBUG } |
Functions | |
| void | initTelemetry (void) |
| TelemetrySignal * | registerTelemetrySignal (const char *name, TelemetryType type, UnitId unit_id, uint32_t expected_rate_ms, float custom_min, float custom_max) |
| void | sendTelemetryValue (TelemetrySignal *signal, float value) |
| void | sendCANTelemetryData (TelemetrySignal *signal, uint32_t can_id, uint8_t *data, uint8_t dlc) |
| void | sendTelemetryValueByName (const char *name, float value, TelemetryType type) |
| void | checkTelemetryHealth (void) |
| void | handleTelemetryConfigRequest (void) |
| const char * | getCategoryName (UnitCategory category) |
| const char * | getTypeName (TelemetryType type) |
| enum TelemetryType |
| Enumerator | |
|---|---|
| TELEMETRY_SENSOR | |
| TELEMETRY_OUTPUT | |
| TELEMETRY_CAN_TX | |
| TELEMETRY_CAN_RX | |
| TELEMETRY_STATUS | |
| TELEMETRY_DEBUG | |
Definition at line 8 of file Telemetry.h.
| void checkTelemetryHealth | ( | void | ) |
Definition at line 111 of file Telemetry.c.

| const char * getCategoryName | ( | UnitCategory | category | ) |
Definition at line 161 of file Telemetry.c.

| const char * getTypeName | ( | TelemetryType | type | ) |
Definition at line 177 of file Telemetry.c.

| void handleTelemetryConfigRequest | ( | void | ) |
Definition at line 130 of file Telemetry.c.


| void initTelemetry | ( | void | ) |
Definition at line 12 of file Telemetry.c.


| TelemetrySignal * registerTelemetrySignal | ( | const char * | name, |
| TelemetryType | type, | ||
| UnitId | unit_id, | ||
| uint32_t | expected_rate_ms, | ||
| float | custom_min, | ||
| float | custom_max | ||
| ) |
Definition at line 23 of file Telemetry.c.


| void sendCANTelemetryData | ( | TelemetrySignal * | signal, |
| uint32_t | can_id, | ||
| uint8_t * | data, | ||
| uint8_t | dlc | ||
| ) |
Definition at line 190 of file Telemetry.c.

| void sendTelemetryValue | ( | TelemetrySignal * | signal, |
| float | value | ||
| ) |
Definition at line 59 of file Telemetry.c.


| void sendTelemetryValueByName | ( | const char * | name, |
| float | value, | ||
| TelemetryType | type | ||
| ) |