From 9a2fa6e15acd7152f0982c79645b5164f8805d8e Mon Sep 17 00:00:00 2001 From: Adam Long Date: Tue, 10 Jun 2014 11:31:57 -0400 Subject: [PATCH] Lowered minimum shooting speed to 15 percent --- src/Zaphod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Zaphod.cpp b/src/Zaphod.cpp index 7ecd5d9..dc51a85 100644 --- a/src/Zaphod.cpp +++ b/src/Zaphod.cpp @@ -283,7 +283,7 @@ public: //{{{shooter_fire bool shooter_fire(bool shooter_clear, float shooter_speed, float shooter_max_angle, float shooter_current_angle){ //Fire the shooter motors at the given shooter_speed while the shooter_max_angle hasn't been hit and that it is clear to shoot - if(shooter_max_angle>=shooter_current_angle && shooter_clear==true && shooter_speed >= 50){ + if(shooter_max_angle>=shooter_current_angle && shooter_clear==true && shooter_speed >= 15){ setMotorValue(4,1,cvt(shooter_speed)); setMotorValue(5,1,cvt(shooter_speed)); setMotorValue(4,2,cvt(-shooter_speed)); @@ -687,4 +687,4 @@ public: } //}}} }; -START_ROBOT_CLASS(RobotDemo); +START_ROBOT_CLASS(RobotDemo); \ No newline at end of file