   float minutes = (degs - floor(degs)) * 60.0;
   String sign = "+";
   if (rad < 0) sign = "-";
-  
+
   if (highPrecision)
   {
     return sign + padding((String)int(floor(degs)), 2) + "*" + padding((String)int(floor(minutes)), 2) + ":" + padding((String)int(floor((minutes - floor(minutes)) * 60.0)), 2);

{
  altT = altMultiplier * altEncoder.read();
  azT = azMultiplier * azEncoder.read();
  
  fillVectorWithT(obsTVector, altT, azT);
  fillMatrixWithProduct(obsCVector, inverseTransformMatrix, obsTVector, 3, 3, 1);
  fillStarWithCVector(obs, obsCVector); // OMFG THIS IS PROBABLY INCORRECT


/*
  Serial.println("Observed vector:");
  printVector(obsTVector);
  Serial.println("Transformed celestial vector:");
  printVector(obsCVector);
  Serial.println("Celestial coordinates:");
  Serial.print(obs[0]);
  Serial.print(",");
  Serial.println(obs[1]);

  while(Serial.available() == 0)
  {
    // do nothing
  }
  Serial.read();
*/

  lcd.setCursor(5,0);
//  lcd.print(obs[0] * rad2deg, 3);
  lcd.print(rad2hm(obs[0]));
  lcd.print(" ");
  lcd.setCursor(5,1);
//  lcd.print(obs[1] * rad2deg, 3);
  lcd.print(rad2dm(obs[1]));
  lcd.print(" ");
  
  // if there's a serial request waiting, process it
  if (Serial.available()) {
    processSerial();

 * Version: 0.3 Meade Autostar
 * Author: Casey Fulton, casey AT caseyfulton DOT com
 * License: MIT, http://opensource.org/licenses/MIT
 *
 * Choosing new alignment stars
 * Feel free to replace the alignment stars below with ones that are visible
 * from your location/season.
 */

#include <Encoder.h>
#include <LiquidCrystal.h>
#include <math.h>
//#include <Wire.h>
//#include "RTClib.h"

#define WAITING_FOR_START 1
#define WAITING_FOR_END 2
