Skip to content

Update gimbal and orientation code. - #224

Open
xuncheng-001 wants to merge 36 commits into
rm-controls:masterfrom
xuncheng-001:national
Open

xuncheng-001 wants to merge 36 commits into
rm-controls:masterfrom
xuncheng-001:national

Conversation

@xuncheng-001

Copy link
Copy Markdown
Contributor

Add the code used for the national competition and implement IMU correction publishing.

…time,and optimize the velocity expectation during trajectory planning.
…the speed input, and fixed the firing judgment in standard.cpp.
# Conflicts:
#	rm_gimbal_controllers/CMakeLists.txt
#	rm_gimbal_controllers/cfg/BulletSolver.cfg
#	rm_gimbal_controllers/include/rm_gimbal_controllers/bullet_solver.h
#	rm_gimbal_controllers/include/rm_gimbal_controllers/gimbal_base.h
#	rm_gimbal_controllers/src/bullet_solver.cpp
#	rm_gimbal_controllers/src/gimbal_base.cpp
# Conflicts:
#	rm_gimbal_controllers/CMakeLists.txt
#	rm_gimbal_controllers/cfg/BulletSolver.cfg
#	rm_gimbal_controllers/include/rm_gimbal_controllers/bullet_solver.h
#	rm_gimbal_controllers/include/rm_gimbal_controllers/gimbal_base.h
#	rm_gimbal_controllers/src/bullet_solver.cpp
#	rm_gimbal_controllers/src/gimbal_base.cpp
@Bluefairy-ljy

Copy link
Copy Markdown
Contributor
if (friction_change_speed_derivative > 0 && has_shoot_ &&
        friction_change_speed > config_.wheel_speed_raise_threshold)
  has_shoot_ = false;

我看shooter里改了这个,解释一下捏 @xuncheng-001

@xuncheng-001

Copy link
Copy Markdown
Contributor Author
if (friction_change_speed_derivative > 0 && has_shoot_ &&
        friction_change_speed > config_.wheel_speed_raise_threshold)
  has_shoot_ = false;

我看shooter里改了这个,解释一下捏 @xuncheng-001

这个条件是加了回速的判断,防止他在一次发射中频繁有状态跳变,实现一次发射只能进入一次has_shoot等于true,不然在一次掉速的过程中可能会有多次has_shoot在true和false之间跳变,导致认为打了很多发

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants