From 46a1188857a5e0a950a53aac07036591baf6d49c Mon Sep 17 00:00:00 2001 From: Adam Long Date: Mon, 9 Jun 2014 20:24:14 -0400 Subject: [PATCH] Fixed issue #1. Min shoot speed is now 50% --- src/Zaphod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zaphod.cpp b/src/Zaphod.cpp index aaf4b12..7ecd5d9 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){ + if(shooter_max_angle>=shooter_current_angle && shooter_clear==true && shooter_speed >= 50){ setMotorValue(4,1,cvt(shooter_speed)); setMotorValue(5,1,cvt(shooter_speed)); setMotorValue(4,2,cvt(-shooter_speed));