Skip to content

Commit

Permalink
Make a supplement.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Aug 4, 2024
1 parent 06b9d50 commit c815f00
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,45 +501,45 @@ void ChassisGimbalShooterManual::dPress()
void ChassisGimbalShooterManual::wRelease()
{
ChassisGimbalManual::wRelease();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? 1 : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_speed_change_scale_ : 0);
}
void ChassisGimbalShooterManual::aRelease()
{
ChassisGimbalManual::aRelease();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? 1 : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_speed_change_scale_ : 0);
}
void ChassisGimbalShooterManual::sRelease()
{
ChassisGimbalManual::sRelease();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? 1 : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_speed_change_scale_ : 0);
}
void ChassisGimbalShooterManual::dRelease()
{
ChassisGimbalManual::dRelease();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? 1 : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_speed_change_scale_ : 0);
}
void ChassisGimbalShooterManual::wPressing()
{
ChassisGimbalManual::wPressing();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ * gyro_speed_change_scale_ : 0);
}

void ChassisGimbalShooterManual::aPressing()
{
ChassisGimbalManual::aPressing();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ * gyro_speed_change_scale_ : 0);
}

void ChassisGimbalShooterManual::sPressing()
{
ChassisGimbalManual::sPressing();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ * gyro_speed_change_scale_ : 0);
}

void ChassisGimbalShooterManual::dPressing()
{
ChassisGimbalManual::dPressing();
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ : 0);
vel_cmd_sender_->setAngularZVel(is_gyro_ ? gyro_rotate_reduction_ * gyro_speed_change_scale_ : 0);
}

void ChassisGimbalShooterManual::xPress()
Expand Down

0 comments on commit c815f00

Please sign in to comment.