Compare commits
No commits in common. "6d70d12148556bc2652bc425d4c1ca42f3ad6d05" and "90b55ffa1c828a84768ee434d3594759a8f80aba" have entirely different histories.
6d70d12148
...
90b55ffa1c
|
@ -129,16 +129,11 @@ typedef struct {
|
|||
IniChkState ini_chk_state;
|
||||
|
||||
unsigned lap_count;
|
||||
float lap_last;
|
||||
float lap_best;
|
||||
|
||||
Temperatures temps;
|
||||
|
||||
float min_cell_volt;
|
||||
float max_cell_temp;
|
||||
int soc_ts;
|
||||
|
||||
float lv_bat_voltage;
|
||||
int soc_lv;
|
||||
|
||||
float ts_current;
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#define CAN_ID_AMS_STATUS 0xA
|
||||
#define CAN_ID_AMS_ERROR 0xC
|
||||
#define CAN_ID_ABX_DRIVER 0x101
|
||||
#define CAN_ID_ABX_TIMINGS 0x102
|
||||
#define CAN_ID_ABX_BRAKE_T 0x105
|
||||
#define CAN_ID_CS_INTERNAL 0x108
|
||||
#define CAN_ID_ABX_MISC 0x109
|
||||
|
@ -33,7 +32,6 @@
|
|||
#define CAN_ABX_DRIVER_SPEED_FACTOR (0.2 * 3.6)
|
||||
#define CAN_CS_INTERNAL_TEMP_FACTOR 0.01
|
||||
#define CAN_ABX_MISC_DISTANCE_TOTAL_FACTOR 0.01
|
||||
#define CAN_ABX_MISC_LV_BAT_VOLTAGE_FACTOR (15.0f / 255)
|
||||
|
||||
void vehicle_thread_entry(ULONG hfdcan_addr) {
|
||||
memset(&vehicle_state, 0, sizeof(vehicle_state));
|
||||
|
@ -42,7 +40,6 @@ void vehicle_thread_entry(ULONG hfdcan_addr) {
|
|||
ftcan_add_filter(CAN_ID_AMS_STATUS, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_AMS_ERROR, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_ABX_DRIVER, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_ABX_TIMINGS, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_ABX_BRAKE_T, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_CS_INTERNAL, 0x7FF);
|
||||
ftcan_add_filter(CAN_ID_ABX_MISC, 0x7FF);
|
||||
|
@ -107,10 +104,6 @@ void ftcan_msg_received_cb(uint16_t id, size_t datalen, const uint8_t *data) {
|
|||
vehicle_state.brake_press_r = ((data[2] >> 4) | (data[3] << 4)) * 0.1;
|
||||
vehicle_state.speed = data[5] * CAN_ABX_DRIVER_SPEED_FACTOR;
|
||||
break;
|
||||
case CAN_ID_ABX_TIMINGS:
|
||||
vehicle_state.lap_best = (data[0] | (data[1] << 8)) * 0.01f;
|
||||
vehicle_state.lap_last = (data[2] | (data[3] << 8)) * 0.01f;
|
||||
break;
|
||||
case CAN_ID_ABX_BRAKE_T:
|
||||
vehicle_state.temps.brake_fl = (data[0] | (data[1] << 8)) * 0.01f;
|
||||
vehicle_state.temps.brake_fr = (data[2] | (data[3] << 8)) * 0.01f;
|
||||
|
@ -131,7 +124,6 @@ void ftcan_msg_received_cb(uint16_t id, size_t datalen, const uint8_t *data) {
|
|||
vehicle_state.distance_total =
|
||||
(data[3] | (data[4] << 8)) * CAN_ABX_MISC_DISTANCE_TOTAL_FACTOR;
|
||||
vehicle_state.soc_lv = data[5];
|
||||
vehicle_state.lv_bat_voltage = data[6] * CAN_ABX_MISC_LV_BAT_VOLTAGE_FACTOR;
|
||||
break;
|
||||
case CAN_ID_AS_MISSION_FB:
|
||||
vehicle_state.active_mission = data[0] & 0b111;
|
||||
|
|
0
Middlewares/ST/touchgfx/framework/tools/imageconvert/build/linux/imageconvert.out
Executable file → Normal file
0
Middlewares/ST/touchgfx/framework/tools/imageconvert/build/linux/imageconvert.out
Executable file → Normal file
|
@ -18,7 +18,7 @@
|
|||
"layout_rotation": "90"
|
||||
}
|
||||
},
|
||||
"l8_compression": "no"
|
||||
"l8_compression": "LZW9"
|
||||
},
|
||||
"text_configuration": {
|
||||
"remap": "yes",
|
||||
|
|
|
@ -16,8 +16,7 @@ CountedEnum(DataFieldType, size_t, DF_TSState, DF_ASState, DF_ActiveMission,
|
|||
DF_TSSoC, DF_LVSoC, DF_TSCurrent, DF_TSVoltageBat, DF_TSVoltageVeh,
|
||||
DF_Speed, DF_BBal, DF_BPF, DF_BPR, DF_DistanceTotal, DF_TempMotL,
|
||||
DF_TempMotR, DF_TempInvL, DF_TempInvR, DF_TempBrakeFL,
|
||||
DF_TempBrakeFR, DF_TempBrakeRL, DF_TempBrakeRR, DF_LapBest,
|
||||
DF_LapLast, DF_LVBatVoltage);
|
||||
DF_TempBrakeFR, DF_TempBrakeRL, DF_TempBrakeRR);
|
||||
|
||||
enum class NamedFieldKind { Float, Bool, Text, Int };
|
||||
|
||||
|
|
|
@ -294,12 +294,6 @@ NamedFieldDescription dataFieldDescs[] = {
|
|||
VEH_FIELD(temps.brake_rl)},
|
||||
[DF_TempBrakeRR] = {NamedFieldKind::Float, "TBRR", 3, 0,
|
||||
VEH_FIELD(temps.brake_rr)},
|
||||
[DF_LapBest] = {NamedFieldKind::Float, "LAPBEST", 3, 1,
|
||||
VEH_FIELD(lap_best)},
|
||||
[DF_LapLast] = {NamedFieldKind::Float, "LAPLAST", 3, 1,
|
||||
VEH_FIELD(lap_last)},
|
||||
[DF_LVBatVoltage] = {NamedFieldKind::Float, "LVVBAT", 2, 2,
|
||||
VEH_FIELD(lv_bat_voltage)},
|
||||
};
|
||||
|
||||
static_assert(sizeof(dataFieldDescs) / sizeof(dataFieldDescs[0]) ==
|
||||
|
|
|
@ -11,7 +11,7 @@ constexpr int32_t SHOW_ERRORS_FOR = 10000; // ms
|
|||
#include "vehicle_state.h"
|
||||
|
||||
DriverViewPresenter::DriverViewPresenter(DriverViewView &v)
|
||||
: view(v), fields{DF_LapLast, DF_Speed, DF_MaxCellTemp} {}
|
||||
: view(v), fields{DF_MinCellVolt, DF_Speed, DF_MaxCellTemp} {}
|
||||
|
||||
void DriverViewPresenter::activate() {
|
||||
for (size_t i = 0; i < 3; i++) {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "vehicle_state.h"
|
||||
|
||||
DriverViewView::DriverViewView()
|
||||
: fieldTypes{DF_LapLast, DF_Speed, DF_MaxCellTemp} {}
|
||||
: fieldTypes{DF_MinCellVolt, DF_Speed, DF_TSCurrent} {}
|
||||
|
||||
void DriverViewView::setupScreen() {
|
||||
DriverViewViewBase::setupScreen();
|
||||
|
|
Loading…
Reference in New Issue