From 5c9e20c15669d4387e0990b2541afa169977857a Mon Sep 17 00:00:00 2001 From: suhas Date: Fri, 15 Nov 2024 23:26:43 +0000 Subject: [PATCH] change OR to AND for turret hardwareOk --- ut-robomaster/src/subsystems/turret/turret_subsystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ut-robomaster/src/subsystems/turret/turret_subsystem.cpp b/ut-robomaster/src/subsystems/turret/turret_subsystem.cpp index 3614158c..5e0d3058 100644 --- a/ut-robomaster/src/subsystems/turret/turret_subsystem.cpp +++ b/ut-robomaster/src/subsystems/turret/turret_subsystem.cpp @@ -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() {