Skip to content

Commit

Permalink
Fixed swerve drive displaying incorrect back right velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Nov 3, 2023
1 parent 4b615f0 commit 7811da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/nt4_widgets/multi-topic/swerve_drive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class SwerveDrivePainter extends CustomPainter {

backRightAngle = radians(backRightAngle);

double backRightArrowLength = backLeftVelocity.abs() * pixelsPerMPS;
double backRightArrowLength = backRightVelocity.abs() * pixelsPerMPS;
double backRightArrowBase =
(backRightArrowLength / 3.0).clamp(minArrowBase, maxArrowBase);

Expand Down

0 comments on commit 7811da1

Please sign in to comment.