Cyberdecks

Manual / Guide

PicoMite MMBasic — GPS & Astronomical Commands Reference

Read the PDF ↗

Type
Manual / Guide
  • picomite
  • mmbasic
  • gps
  • astronomy
  • star command

← Back to the Reference Library

PicoMite MMBasic — GPS & Astronomical Commands Reference

GPS and Astronomical Commands Reference 1. Overview The functionality is split into three commands: - STAR: Calculates the position of a celestial object using the current time and location from the connected GPS module. - LOCATION: Sets a manual location (latitude/longitude) and time for use with the ASTRO command. - ASTRO: Calculates the position of a celestial object using the manual time and location set by the LOCATION command. Both STAR and ASTRO share the same syntax for specifying the target object and output variables. 2. Command Syntax 2.1 The STAR Command Uses live GPS data. Requires a valid GPS fix. Syntax 1: Named Object STAR object alt, az [, ra_out, dec_out] - object: An unquoted token specifying the celestial body (e.g., MOON, JUPITER, SIRIUS). See Appendix A for the full catalog. - alt: Variable to store the calculated Altitude (degrees above horizon). - az: Variable to store the calculated Azimuth (degrees, 0 = North, 90 = East). - ra_out (Optional): Variable to store the object's current Right Ascension (hours). - dec_out (Optional): Variable to store the object's current Declination (degrees). Syntax 2: Manual Coordinates STAR alt, az, ra, dec [, pm_ra, pm_dec] [, ra_out, dec_out] - alt, az: Variables to store the results. - ra: Right Ascension of the target in J2000.0 epoch (hours). - dec: Declination of the target in J2000.0 epoch (degrees). - pm_ra (Optional): Proper motion in RA (arcseconds/year). Default is 0. - pm_dec (Optional): Proper motion in Dec (arcseconds/year). Default is 0. - ra_out, dec_out (Optional): Variables to store the coordinates after precession to the current epoch. 2.2 The LOCATION Command Sets the context for the ASTRO command. Syntax LOCATION date$, lat, long [, sidereal_out] - date$: A string containing the date and time in the format "dd/mm/yyyy hh:mm:ss". The separators can be -, /, :, or space. - lat: Latitude in degrees (negative for South). Page 1 GPS and Astronomical Commands Reference - long: Longitude in degrees (negative for West). - sidereal_out (Optional): Variable to store the calculated Local Sidereal Time (hours). Example LOCATION "25/12/2025 22:30:00", -33.86, 151.21, lst 2.3 The ASTRO Command Identical to STAR but uses the context set by LOCATION instead of the GPS. Syntax ASTRO object alt, az [, ra_out, dec_out] ASTRO alt, az, ra, dec [, pm_ra, pm_dec] [, ra_out, dec_out] 3. Implementation Details & Math The implementation performs high-precision astronomical calculations suitable for telescope pointing or navigation. 3.1 Time Systems - Julian Centuries (T): Time is converted to Julian Centuries from the J2000.0 epoch (2000 Jan 1.5 TT). - Sidereal Time: Local Sidereal Time (LST) is calculated using a polynomial approximation for Greenwich Mean Sidereal Time (GMST) and the observer's longitude. 3.2 Planetary Calculations - Planets: Uses simplified VSOP87-based elements with perturbations for Mercury, Venus, Mars, Jupiter, Saturn, Uranus, and Neptune. - Moon: Uses a truncated ELP-2000/82 analytical series to calculate the Moon's position, including significant periodic terms for longitude, latitude, and distance. - Topocentric Correction: For the Moon and planets, the calculation corrects for the observer's position on the Earth's surface (parallax), which is critical for nearby bodies like the Moon. 3.3 Stellar Calculations - Catalog: Contains J2000.0 coordinates and proper motion data for bright stars and deep sky objects. - Precession: Coordinates are precessed from the J2000.0 epoch to the current date using the rigorous method described in Meeus (Chapter 21). - Proper Motion: Applied based on the years elapsed since J2000.0. 3.4 Coordinate Conversion - Equatorial to Horizontal: Converts Right Ascension and Declination to Altitude and Azimuth using standard spherical trigonometry. - Refraction: Atmospheric refraction is applied to the Altitude using the standard formula (Meeus Chapter 16), corrected for standard atmospheric pressure and temperature. Page 2 GPS and Astronomical Commands Reference Appendix A: Celestial Catalog The following objects are recognized by name in the STAR and ASTRO commands. Solar System Bodies: SUN, MOON, MERCURY, VENUS, MARS, JUPITER, SATURN, URANUS, NEPTUNE Stars and Deep Sky Objects: Achernar Acrux Alcyone Aldebaran Algenib Algieba Algol Alhajoth Alhena Almaak Alnair Alnilam Alnitak Alphard Alpheratz Alpherg Alrescha Alsephina Alshain Altair Aludra Andromeda Galaxy Antares Arcturus Aspidiske Bellatrix Betelgeuse Bodes Galaxy Canopus Capella Caph Castor Cigar Galaxy Deneb Denebola Dubhe Elnath Eltanin Enif Fomalhaut Gacrux Hadar Homam Kaus Australis Kochab Kornephoros Large Magellanic Cloud Lesath Markab Menkalinan Mimosa Mintaka Mirfak Nunki Peacock Polaris Pollux Procyon Rasalgethi Rasalhague Regulus Rigel Rigil Kent Ruchbah Sabik Sadalmelik Sadalsuud Sadr Saiph Scheat Shaula Shedir Sirius Small Magellanic Cloud Sombrero Galaxy Spica Suhail Tarazed Triangulum Galaxy Vega Whirlpool Galaxy Zubenelgenubi Zubeneschamali Page 3