Skip to content

Commit

Permalink
Merge pull request #111 from YoujianWu/revive
Browse files Browse the repository at this point in the history
Stop gyro when robot revives.
  • Loading branch information
d0h0s authored Jul 31, 2024
2 parents 40b7a91 + 3c6021b commit b97f0b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/rm_manual/chassis_gimbal_shooter_manual.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class ChassisGimbalShooterManual : public ChassisGimbalManual
void remoteControlTurnOff() override;
void remoteControlTurnOn() override;
void robotDie() override;
void robotRevive() override;
void rightSwitchDownRise() override;
void rightSwitchMidRise() override;
void rightSwitchUpRise() override;
Expand Down
6 changes: 6 additions & 0 deletions src/chassis_gimbal_shooter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,4 +628,10 @@ void ChassisGimbalShooterManual::ctrlQPress()
gimbal_calibration_->reset();
}

void ChassisGimbalShooterManual::robotRevive()
{
setChassisMode(rm_msgs::ChassisCmd::FOLLOW);
ManualBase::robotRevive();
}

} // namespace rm_manual

0 comments on commit b97f0b1

Please sign in to comment.