2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Updated to force shooting at >15 power

This commit is contained in:
Adam Long 2014-06-10 14:03:18 -04:00
parent 616df6236e
commit 4d176a607d

View File

@ -21,7 +21,7 @@ void ZaphodShooter::startShootingSequence(float throttle)
//First step in shooting process
void ZaphodShooter::shootForAngle(float power, float desiredAngle)
{
if(getAngle() <= desiredAngle)
if(getAngle() <= desiredAngle && power >= 15)
{
shootRaw(power);
e_ShooterState = FIRING;