Skip to content

Commit 0e40b62

Browse files
committed
multiple swoc thresholds
1 parent f64a5b3 commit 0e40b62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Apps/Src/SendTritium.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ static const swoc_threshold_t swoc_thresholds[] = {
176176
{20.0f, 60}
177177
};
178178

179-
static uint8_t swoc_get_max_percent_for_speed(float speed_mph)
180-
{
179+
static uint8_t swoc_get_max_percent_for_speed(float speed_mph){
181180
uint8_t cap = CURRENT_SP_MAX;
182181
size_t i;
183182
for (i = 0; i < (sizeof(swoc_thresholds) / sizeof(swoc_thresholds[0])); ++i) {
@@ -271,7 +270,6 @@ void Task_SendTritium(void *p_arg) {
271270
maxCurrentPercentage = swoc_get_max_percent_for_speed(fabsf(Motor_Velocity_Get() * 2.236936f));
272271
#endif
273272

274-
275273
switch (gear) {
276274
case DASH_FWD:
277275
velocitySetpoint = MAX_VELOCITY;

0 commit comments

Comments
 (0)