Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
tildezero committed Nov 8, 2024
1 parent 90b21f6 commit b4bb19e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 deletions ut-robomaster/src/subsystems/agitator/agitator_subsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ void AgitatorSubsystem::refresh()

float time = getTimeMilliseconds() / 1000.0f;
float velocity = getShapedVelocity(time, 1.0f, 0.0f, ballsPerSecond);
bool killSwitch = drivers->isKillSwitched() || !flywheel->isActive();
bool killSwitch = drivers->isKillSwitched() || !flywheel->isActive() || isAmputated();

agitator.setActive(!killSwitch || !isAmputated());
agitator.setActive(!killSwitch);
agitator.updateVelocity(velocity);
#ifdef TARGET_HERO
feeder.setActive(!killSwitch || !isAmputated());
feeder.setActive(!killSwitch);
feeder.updateVelocity(velocity * FEEDER_RATIO);
#endif
}
Expand Down
11 changes: 0 additions & 11 deletions ut-robomaster/src/subsystems/odometry/odometry_subsystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@
using tap::algorithms::odometry::Odometry2DTracker;
using turret::TurretSubsystem;

/*
hardwareOK() {
return chassis.hardWareOk() && turret.hardwareOk()
}
refresh()
if (!isAmputated()) {
do update thing
}
*/

class OdometrySubsystem : public UTSubsystem
{
public:
Expand Down

0 comments on commit b4bb19e

Please sign in to comment.