Skip to content

Commit

Permalink
change OR to AND for turret hardwareOk
Browse files Browse the repository at this point in the history
  • Loading branch information
tildezero committed Nov 15, 2024
1 parent 1380180 commit 5c9e20c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ut-robomaster/src/subsystems/turret/turret_subsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ TurretSubsystem::TurretSubsystem(src::Drivers* drivers)
{
}

// should this be an AND??
bool TurretSubsystem::hardwareOk() { return yaw.isOnline() || pitch.isOnline(); }
bool TurretSubsystem::hardwareOk() { return yaw.isOnline() && pitch.isOnline(); }

void TurretSubsystem::initialize()
{
Expand Down

0 comments on commit 5c9e20c

Please sign in to comment.