We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64a5b3 commit 0e40b62Copy full SHA for 0e40b62
Apps/Src/SendTritium.c
@@ -176,8 +176,7 @@ static const swoc_threshold_t swoc_thresholds[] = {
176
{20.0f, 60}
177
};
178
179
-static uint8_t swoc_get_max_percent_for_speed(float speed_mph)
180
-{
+static uint8_t swoc_get_max_percent_for_speed(float speed_mph){
181
uint8_t cap = CURRENT_SP_MAX;
182
size_t i;
183
for (i = 0; i < (sizeof(swoc_thresholds) / sizeof(swoc_thresholds[0])); ++i) {
@@ -271,7 +270,6 @@ void Task_SendTritium(void *p_arg) {
271
270
maxCurrentPercentage = swoc_get_max_percent_for_speed(fabsf(Motor_Velocity_Get() * 2.236936f));
272
#endif
273
274
-
275
switch (gear) {
276
case DASH_FWD:
277
velocitySetpoint = MAX_VELOCITY;
0 commit comments