Skip to content

Commit

Permalink
astrocalc encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
nxdefiant committed Aug 19, 2023
1 parent b45bcab commit 5947397
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/astrocalc/astrocalc-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ function drawMoonPositionPage(gps, title) {
const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north

const pageData = {
Azimuth: parseInt(azimuth * 180 / Math.PI + 0.5) + '°',
Altitude: parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°',
Azimuth: parseInt(azimuth * 180 / Math.PI + 0.5) + '°',
Altitude: parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°',
Distance: `${pos.distance.toFixed(0)} km`,
"Parallactic Ang": parseInt(pos.parallacticAngle * 180 / Math.PI + 0.5) + '°',
"Parallactic Ang": parseInt(pos.parallacticAngle * 180 / Math.PI + 0.5) + '°',
};
const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5);

Expand Down Expand Up @@ -212,8 +212,8 @@ function drawSunShowPage(gps, key, date) {
const time = `${hrs}:${mins}:${secs}`;
const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north

const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5) + '°';
const altitude = parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°';
const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5) + '°';
const altitude = parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°';

const pageData = {
Time: time,
Expand Down

0 comments on commit 5947397

Please sign in to comment.