     {
       Set_Servo(finPosition, LEFT);
     }
->>>>>>> Stashed changes
   }
 
 }


void Roll_Control(sensors_event_t event) {

<<<<<<< Updated upstream
  if(!startRollFlag) { //For roll initialization, cant fins in the direction of current roll
    digitalWrite(inputA, LOW);
    servoHomeFlag = false;
    startRollFlag = true;
    if(event.gyro.z > 0) {
      digitalWrite(inputB, HIGH);
      finState = true;
    }
    else {
      digitalWrite(inputB, LOW); 
      finState = false;
    }
  }
  else if(!endRollFlag) { //Wait until two revolutions have been completed to begin counter-roll
    
    if(rotationCounter > 2) {
      finState = !finState;
      digitalWrite(inputB, finState);
=======
  if (!startRollFlag) { //For roll initialization, cant fins in the direction of current roll
    startRollFlag = true;
    if (event.gyro.z > 0) {

      Etc., etc.

*/

#include <Wire.h>
#include <SPI.h>
