File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,25 +40,25 @@ static void update_motor_driver_from_control_input( struct bt_hid_state* state )
40
40
{
41
41
if ( swerve_right_rate > 0 )
42
42
{
43
- right_output -= swerve_right_rate / 2 ;
43
+ right_output -= swerve_right_rate ;
44
44
right_output = clamp (right_output , 0 , 128 );
45
45
}
46
46
else if ( swerve_right_rate < 0 )
47
47
{
48
- left_output += swerve_right_rate / 2 ;
48
+ left_output += swerve_right_rate ;
49
49
left_output = clamp (left_output , 0 , 128 );
50
50
}
51
51
}
52
52
else if ( forward_speed < -20 )
53
53
{
54
54
if ( swerve_right_rate > 0 )
55
55
{
56
- right_output += swerve_right_rate / 2 ;
56
+ right_output += swerve_right_rate ;
57
57
right_output = clamp (right_output , -127 , 0 );
58
58
}
59
59
else if ( swerve_right_rate < 0 )
60
60
{
61
- left_output -= swerve_right_rate / 2 ;
61
+ left_output -= swerve_right_rate ;
62
62
left_output = clamp (left_output , -127 , 0 );
63
63
}
64
64
}
You can’t perform that action at this time.
0 commit comments