Skip to content

Commit

Permalink
renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
capetillo committed Jul 2, 2024
1 parent 537275a commit e18be14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/InstrumentControls/Telescope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e18be14

Please sign in to comment.