From 5947397938afd3c05bfcbef4b2301e6f1a95c815 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sat, 19 Aug 2023 16:32:44 +0200 Subject: [PATCH] astrocalc encoding --- apps/astrocalc/astrocalc-app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/astrocalc/astrocalc-app.js b/apps/astrocalc/astrocalc-app.js index 21e9a37fff..5589a5703c 100644 --- a/apps/astrocalc/astrocalc-app.js +++ b/apps/astrocalc/astrocalc-app.js @@ -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); @@ -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,