Skip to content

Commit a70b9b9

Browse files
committed
Removed road speed
1 parent 486a7b8 commit a70b9b9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/param_prj.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
PARAM_ENTRY(CAT_MOTOR, dirchrpm, "rpm", 0, 20000, 100, 87 ) \
3939
PARAM_ENTRY(CAT_MOTOR, dirmode, DIRMODES, 0, 4, 1, 95 ) \
4040
PARAM_ENTRY(CAT_MOTOR, snsm, SNS_M, 12, 23, 12, 46 ) \
41-
PARAM_ENTRY(CAT_MOTOR, roadspeedgain,"1000r/mile", 0, 20, 8.2, 111 ) \
4241

4342
#define MOTOR_PARAMETERS_SINE \
4443
PARAM_ENTRY(CAT_MOTOR, boost, "dig", 0, 37813, 1700, 1 ) \
@@ -175,7 +174,6 @@
175174
#define VALUE_BLOCK2 \
176175
VALUE_ENTRY(fstat, "Hz", 2011 ) \
177176
VALUE_ENTRY(speed, "rpm", 2012 ) \
178-
VALUE_ENTRY(roadspeed, "kmh/mph",2043 ) \
179177
VALUE_ENTRY(cruisespeed, "rpm", 2041 ) \
180178
VALUE_ENTRY(turns, "", 2037 ) \
181179
VALUE_ENTRY(amp, "dig", 2013 ) \

src/stm32_sine.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,13 @@ static void Ms10Task(void)
129129
int newMode = MOD_OFF;
130130
int stt = STAT_NONE;
131131
float udc = VehicleControl::ProcessUdc();
132-
uint32_t speed = Encoder::GetSpeed();
133132

134133
ErrorMessage::SetTime(rtc_get_counter_val());
135134
Encoder::UpdateRotorFrequency(100);
136135
VehicleControl::CalcAndOutputTemp();
137136
VehicleControl::GetDigInputs();
138137
float torquePercent = VehicleControl::ProcessThrottle();
139-
float roadSpeed = (speed * Param::GetFloat(Param::roadspeedgain)) / 1000.0f;
140138

141-
Param::SetFloat(Param::roadspeed, roadSpeed);
142139
Param::SetInt(Param::speed, Encoder::GetSpeed());
143140
Param::SetInt(Param::rotordir, Encoder::GetRotorDirection());
144141

0 commit comments

Comments
 (0)