 
 
 
+
 

#define angleLowest 30 //The minimum allowable angle
#define angleHighest 150 //The maximum allowable angle

// Libraries & Objects
/*******************************************************************************************/
#include <Servo.h>

//This function releases one BB (hopefully) from shooter <shooterNum>
void releaseBall(byte shooterNum) {

  Serial.print("Releasing ball from shooter: ");
  Serial.println(shooterNum);

  if (shooterNum<1 || shooterNum>3) { //Check that the shooter number is valid
    Serial.print("Unrecognized shooter Num: ");
    Serial.println(shooterNum);
    //Send unrecognized shooter num feedback to laptop
    sendMessage(0xE1,shooterNum);
  }
  else{
    digitalWrite(solenoidPins[shooterNum],HIGH); //Activate the solenoid: open the passage

    ballReleaseTimer[shooterNum]=millis()+ballReleaseTime; //Set the timer for deactivating the solenoid
    ballReleasing[shooterNum]=1; //Indicate that we are releasing a ball
  }
}


/*▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
/*checkSolenoids
