Skip to content

Commit

Permalink
modified fly wheel speed of speed limit exceed 30
Browse files Browse the repository at this point in the history
  • Loading branch information
Andd54 committed Mar 23, 2024
1 parent 43f3f7e commit 699ee03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vehicles/Steering/gimbal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ void shooterTask(void* arg) {
// fast shooting
} else if ((dbus->mouse.r || dbus->wheel.wheel > remote::WheelDigitalValue)
&& send->cooling_heat1 < send->cooling_limit1 - 24) {
shooter->FastContinueShoot();
shooter->FastContinueShoot();
// triple shooting
} else if (dbus->wheel.wheel == remote::WheelDigitalValue
&& dbus->previous_wheel_value == remote::WheelDigitalValue) {
Expand Down Expand Up @@ -518,7 +518,7 @@ void shooterTask(void* arg) {
shooter->SetFlywheelSpeed(437); // 445 MAX
} else if (send->speed_limit1 >= 18) {
flywheelFlag = true;
shooter->SetFlywheelSpeed(482); // 490 MAX
shooter->SetFlywheelSpeed(770); // 490 MAX
} else {
flywheelFlag = false;
shooter->SetFlywheelSpeed(0);
Expand Down

0 comments on commit 699ee03

Please sign in to comment.