diff --git a/src/components/InstrumentControls/Telescope.vue b/src/components/InstrumentControls/Telescope.vue index f69aeab4..37d62395 100644 --- a/src/components/InstrumentControls/Telescope.vue +++ b/src/components/InstrumentControls/Telescope.vue @@ -305,7 +305,7 @@ export default { this.mount_dec = search_results.dec.toFixed(4) const date = new Date() const altaz = helpers.eq2altaz(search_results.ra.toFixed(4), search_results.dec.toFixed(4), this.site_latitude, this.site_longitude, date) - this.mount_ha = helpers.radec2hourangle(search_results.ra.toFixed(4), this.site_longitude, date).toFixed(4) + this.mount_ha = helpers.eq2hourangle(search_results.ra.toFixed(4), this.site_longitude, date).toFixed(4) const az = altaz[1] this.mount_az = az.toFixed(4) const alt = altaz[0] diff --git a/src/utils/helpers.js b/src/utils/helpers.js index 26a986f6..abadf692 100644 --- a/src/utils/helpers.js +++ b/src/utils/helpers.js @@ -78,7 +78,7 @@ const helpers = { if (Math.sin(ha) > 0) hrz_azimuth = 360 - hrz_azimuth return [hrz_altitude, hrz_azimuth] }, - radec2hourangle: function (ra, lon, date = null) { + eq2hourangle: function (ra, lon, date = null) { const sidereal = this.siderealTime(lon, date) const ha = sidereal - ra return ha