Update master.ino

This commit is contained in:
gocivici 2016-07-29 16:22:54 +03:00 committed by GitHub
parent c1e18afb35
commit 2d64575361

View File

@ -49,14 +49,14 @@ void loop()
{ {
//this will update the RA degrees with sidereal time 1degree at a time //this will update the RA degrees with sidereal time 1degree at a time
//this way the object or star on the sky is tracked. //this way the object or star on the sky is tracked.
/*if( floor(LST_degrees)==LST_degrees ){ if( floor(LST_degrees)==LST_degrees ){
if (LST_degrees>180){ if (LST_degrees>180){
val2 = temp+(360-LST_degrees); val2 = temp+(360-LST_degrees);
}else{ }else{
val2 = temp-LST_degrees; val2 = temp-LST_degrees;
} }
} }
*/
myRTC.updateTime(); myRTC.updateTime();
LST_time(); LST_time();
recvdata(); recvdata();
@ -72,9 +72,9 @@ void loop()
yaw = yaw + norm.YAxis * timeStep; yaw = yaw + norm.YAxis * timeStep;
pitch = pitch + norm.XAxis * timeStep; pitch = pitch + norm.XAxis * timeStep;
Serial.print(" Yaw = "); Serial.print(" Yaw = ");
Serial.print(213.91); Serial.print(yaw);
Serial.print(" Pitch = "); Serial.print(" Pitch = ");
Serial.print(19.18); Serial.print(pitch);
Serial.print(" LST_d = "); Serial.print(" LST_d = ");
Serial.print(LST_degrees); Serial.print(LST_degrees);
Serial.print(" LST_h = "); Serial.print(" LST_h = ");