diff --git a/firmware/controllers/actuators/boost_control.cpp b/firmware/controllers/actuators/boost_control.cpp index 7b067f0f56..f59b31eab2 100644 --- a/firmware/controllers/actuators/boost_control.cpp +++ b/firmware/controllers/actuators/boost_control.cpp @@ -17,8 +17,8 @@ #error "Unexpected OS ACCESS HERE" #endif -static boostOpenLoop_Map3D_t boostMapOpen; -static boostOpenLoop_Map3D_t boostMapClosed; +static Map3D boostMapOpen; +static Map3D boostMapClosed; static SimplePwm boostPwmControl("boost"); void BoostController::init(IPwm* pwm, const ValueProvider3D* openLoopMap, const ValueProvider3D* closedLoopTargetMap, pid_s* pidParams) { diff --git a/firmware/controllers/actuators/gppwm/gppwm.cpp b/firmware/controllers/actuators/gppwm/gppwm.cpp index 6c4a69d3ab..212d84cb43 100644 --- a/firmware/controllers/actuators/gppwm/gppwm.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm.cpp @@ -7,12 +7,14 @@ static GppwmChannel channels[GPPWM_CHANNELS]; static OutputPin pins[GPPWM_CHANNELS]; static SimplePwm outputs[GPPWM_CHANNELS]; +using gppwm_Map3D_t = Map3D; + static gppwm_Map3D_t table1; static gppwm_Map3D_t table2; static gppwm_Map3D_t table3; static gppwm_Map3D_t table4; -static gppwm_Map3D_t* tables[] = { +static gppwm_Map3D_t* const tables[] = { &table1, &table2, &table3, diff --git a/firmware/util/containers/table_helper.h b/firmware/util/containers/table_helper.h index 4605a332c1..dd86fd33cf 100644 --- a/firmware/util/containers/table_helper.h +++ b/firmware/util/containers/table_helper.h @@ -118,13 +118,8 @@ class Map3D : public ValueProvider3D { float m_valueMult = 1; }; -typedef Map3D lambda_Map3D_t; typedef Map3D fuel_Map3D_t; -typedef Map3D baroCorr_Map3D_t; typedef Map3D pedal2tps_t; -typedef Map3D boostOpenLoop_Map3D_t; -typedef Map3D boostClosedLoop_Map3D_t; -typedef Map3D gppwm_Map3D_t; typedef Map3D mapEstimate_Map3D_t; /**