 //Constants for SD Card communication
 const int cardSelectPin = 53; //Standard for ATMega; other SPI comms pins are 50-52
 File dataLog; //File to log flight data
-byte accelData[3];
-byte gyroData[3];
-byte baroData[3]; //Char buffers for storing sensor data
+int accelData[3];
+int gyroData[3];
+float baroData[3]; //Char buffers for storing sensor data
 unsigned long timeData[2];
 
-byte accelZBuffer[5] = {0,0,0,0,0};
-byte baroAltBuffer[5] = {0,0,0,0,0};
-byte gyroZBuffer[7] = {0,0,0,0,0,0,0}; //The other values are arbitrary; this one is used in Simpsons Rule, so it MUST BE ODD!
+int accelZBuffer[5] = {0,0,0,0,0};
+float baroAltBuffer[5] = {0,0,0,0,0};
+int gyroZBuffer[7] = {0,0,0,0,0,0,0}; //The other values are arbitrary; this one is used in Simpsons Rule, so it MUST BE ODD!
 unsigned long timeBuffer[7] = {0,0,0,0,0,0,0}; //Must equal the size of gyroZBuffer; used for the same calculations.
 
 byte accelAverage;

      int packetSize = 19; //Depending on the flight state, the actual packet size may change

      radioPacket[0] = flightState; //Start every packet with the current flight staging (lets the receiver know what data is going to come at the end of the packet)
      radioPacket[1] = servoOnPin;
      radioPacket[2] = servoHomePin; //The next three items in each packet report the outputs to the servo.
      radioPacket[3] = finState;

union{ //Float-to-byte-string converter, needed for GPS data

} uInt;

uInt.tempInt = gyroData[2]; //Remember: THIS ASSUMES Z-AXIS IS VERTICAL!!!
radioPacket[5] = uInt.tempArray[0];
radioPacket[6] = uInt.tempArray[1]; 
packetSize = 6;
}

