Skip to content

Commit

Permalink
Update legged_manual power limit logic ang leg stretch logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
YoujianWu committed Oct 20, 2024
1 parent d3f3163 commit ac4de85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legged_wheel_balance_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void LeggedWheelBalanceManual::updateRc(const rm_msgs::DbusData::ConstPtr& dbus_
}
else
{
chassis_cmd_sender_->power_limit_->updateState(rm_common::PowerLimit::NORMAL);
chassis_cmd_sender_->power_limit_->updateState(rm_common::PowerLimit::BURST);
}
}

Expand All @@ -73,7 +73,7 @@ void LeggedWheelBalanceManual::ctrlZPress()
BalanceManual::ctrlZPress();
if (!supply_)
{
is_gyro_ = false;
setChassisMode(rm_msgs::ChassisCmd::FOLLOW);
legCommandSender_->setLgeLength(0.18);
}
}
Expand Down Expand Up @@ -114,7 +114,7 @@ void LeggedWheelBalanceManual::ctrlGPress()
{
if (!stretch_)
{
legCommandSender_->setLgeLength(0.25);
legCommandSender_->setLgeLength(0.3);
stretch_ = true;
}
else
Expand Down

0 comments on commit ac4de85

Please sign in to comment.