Commit Graph

262 Commits

Author SHA1 Message Date
Anthony Good
cbdfc826bc 2021.10.06.01
FEATURE_STEPPER_MOTOR and Variable frequency outputs (rotate_cw_freq, rotate_ccw_freq, rotate_up_freq, rotate_down_freq):
          Clarified in settings files minimum and maximum values for AZ_VARIABLE_FREQ_OUTPUT_LOW, AZ_VARIABLE_FREQ_OUTPUT_HIGH, EL_VARIABLE_FREQ_OUTPUT_LOW, EL_VARIABLE_FREQ_OUTPUT_HIGH
        FEATURE_STEPPER_MOTOR - added code to limit high frequency value to 2000 hertz
        Big thanks to Fred, VK2WS!
        DEVELOPMENT_TIMELIB - working on recoding clock and time functions to the TimeLib library, in preparation for supporting Teensy RTC
2021-10-06 21:32:33 -04:00
Anthony Good
a78deaf816 2021.10.05.02
Cleaned up code and pins files to remove az_stepper_motor_direction and el_stepper_motor_direction and throw a compiler error if either are defined.  (Use the rotate_* pins instead.)
        Reference: b36c5a1d4c
2021-10-05 20:44:53 -04:00
Anthony Good
7179f72516 2021.10.05.01
DEBUG_ROTATOR - added code to traceback who called rotator()
2021-10-05 15:41:29 -04:00
Anthony Good
7d9ef8d3a9 2021.07.18.02
FEATURE_NEXTION_DISPLAY - Added code to watch for unexpected reset / 'i am alive' from Nextion
2021-07-18 09:49:54 -04:00
Anthony Good
d67cb92aae 2021.07.18.01
FEATURE_SATELLITE_TRACKING - Fixed another issue with the \! not loading up the AO7-TEST default satellite (Thanks, Karl Jan Skontorp)
        FEATURE_NEXTION_DISPLAY - Major improvement in Nextion display startup timing (Thanks, Adam, VK4GHZ)
2021-07-18 09:30:20 -04:00
Anthony Good
26f2622cdb 2021.07.17.01
FEATURE_SATELLITE_TRACKING - Fixed issue with \! command not clearing out satellit array and leaving invalid choices displayed on Nextion display
        FEATURE_NEXTION_DISPLAY - Added \?NG command which prompts the rotator controller to send the gSC variable immediately to the Nextion
2021-07-17 15:10:59 -04:00
Anthony Good
53cfb6c939 2021.06.24.01
Fixed issues with integer conversions involving azimuth and elevation (Thanks, Alexander, RV6FX)
2021-06-24 08:52:01 -04:00
Anthony Good
72a14eb51c 2021.04.07.01
Fixed issue with el_incremental_encoder_position rolling over to 0 after 32,767 or so
2021-04-07 17:35:16 -04:00
Anthony Good
de712f2f42 2021.04.02.01
FEATURE_AUDIBLE_ALERT new commands:
          \-   Query audible alert state
          \-0  Disable audible alerts
          \-1  Enable audible alerts
          \-X  Silence current audible alert
          \-~  Manually trigger audible alert
          \-A0 Disable AZ target alert
          \-A1 Enable AZ target alert
          \-E0 Disable EL target alert
          \-E1 Enable EL target alert
2021-04-02 16:16:36 -04:00
Anthony Good
1761d97ec1 2021.04.01.01
FEATURE_NEXTION_DISPLAY
          New Variables:
            gV2         Integer, Bit Mapped   Various States 2
              Bit Values
                audible_alert_enabled 1

            gTS          Integer               Satellite tracking check interval (mS)
            gTU          Integer               Sun tracking check interval (mS)
            gTM          Integer               Moon tracking check interval (mS)
            gTX          Integer               Satellite tracking rotation interval (mS)
            gTY          Integer               Sun tracking rotation interval (mS)
            gTZ          Integer               Moon tracking rotation interval (mS)
            vTA          String[5]             Satellite tracking degrees difference threshold
            vTB          String[5]             Sun tracking degrees difference threshold
            vTC          String[5]             Moon tracking degrees difference threshold

          New Bit Mapped in Existing Variable:
            gSC         Integer, Bit Mapped   System Capabilities
              Bit Values
                AUDIBLE_ALERT 8192
2021-03-31 20:12:43 -04:00
Anthony Good
7e829275cf 2021.03.20.01
The satellite, sun, and moon automatic tracking algorithms have been enhanced and have new runtime settings

          tracking check interval = the interval in mS the system performs a tracking calculation and decision
          rotation interval = the minimum amount of time in mS between rotation initiations
          degrees difference threshold = the decimal degrees difference between the current az/el and the desired az/el which must be met or exceed in order to initiate rotation

          Both the rotation interval and degrees difference threshold must met in order to initiate rotation.
          The rotation interval and/or degrees difference threshold can be set to 0 to disable.

        New commands:

          \(                  - show satellite, sun, and moon automatic tracking parameters

          \?TSxxxx            - set satellite tracking check interval (mS)
          \?TUxxxx            - set sun tracking check interval (mS)
          \?TMxxxx            - set moon tracking check interval (mS)

          \?TXxxxx            - set satellite rotation interval (mS)
          \?TYxxxx            - set sun rotation interval (mS)
          \?TZxxxx            - set moon rotation interval (mS)

          \?TAx[.]x            - set satellite degrees difference threshold
          \?TBx[.]x            - set sun degrees difference threshold
          \?TCx[.]x            - set moon degrees difference threshold
2021-03-20 12:15:56 -04:00
Anthony Good
e497a745a0 2021.03.08.01
Even more work on FEATURE_AZ_POSITION_PULSE_INPUT to properly handle float values and preserve decimal places
2021-03-08 19:47:45 -05:00
Anthony Good
9e820370d2 2021.03.07.03
Additional work on FEATURE_AZ_POSITION_PULSE_INPUT to properly handle float values and preserve decimal places
2021-03-07 14:41:44 -05:00
Anthony Good
05513308e1 2021.03.07.02
Fixed issue in FEATURE_EL_POSITION_PULSE_INPUT with EL_POSITION_ROTARY_ENCODER_DEG_PER_PULSE decimal values being truncated
2021-03-07 14:08:42 -05:00
Anthony Good
b4774910cc 2021.03.07.01
Fixed potential issue with AZ_POSITION_ROTARY_ENCODER_DEG_PER_PULSE and EL_POSITION_ROTARY_ENCODER_DEG_PER_PULSE decimal values being truncated
        Updated default AO7TEST TLE
2021-03-07 12:51:49 -05:00
Anthony Good
7efacefc46 2021.02.16.01
Fixed potential for latest coordinates from GPS not being used for satellite tracking
2021-02-15 19:17:24 -05:00
Anthony Good
43d7a3ce4b 2021.01.26.01
(Hopefully) Fixed heading decimal place issues (float vs. int) in FEATURE_AZ_POSITION_HH12_AS5045_SSI, FEATURE_EL_POSITION_HH12_AS5045_SSI, and FEATURE_EASYCOM_EMULATION
2021-01-26 17:32:11 -05:00
Anthony Good
965f0452fb 2020.12.23.01
Removed EA4TX hardware support due to copying of other open source project hardware and selling it
2020-12-23 22:00:47 -05:00
Anthony Good
99e8494f5b 2020.10.20.01
Merge of pull request 79 - Added Norwegian Bokmål language https://github.com/k3ng/k3ng_rotator_controller/pull/79  (Thanks, Supermagnum)
        LANGUAGE_NORWEGIAN_BOKMAAL added with pull request 79 merge
2020-10-20 18:53:26 -04:00
Anthony Good
8502dfbd9e
Merge pull request #79 from Supermagnum/master
Added Norwegian Bokmål language
2020-10-20 18:48:10 -04:00
Supermagnum
20dac844e0
Update rotator_features.h
Added // #define LANGUAGE_NORWEGIAN_BOKMAAL
2020-10-20 03:42:56 +02:00
Supermagnum
1c3a673032
Added Norwegian Bokmål language
Added Norwegian Bokmål language
2020-10-11 01:25:50 +02:00
Anthony Good
214dcdd943 2020.09.17.01
FEATURE_AUTOPARK & FEATURE_PARK - raise an error at compile time if FEATURE_AUTOPARK is enabled without FEATURE_PARK rather than silently including FEATURE_PARK
        DEBUG_SATELLITE_TRACKING_CALC - fixed compiler error
2020-09-17 16:55:41 -04:00
Anthony Good
b20629c60e 2020.09.09.01
FEATURE_NEXTION_DISPLAY
          Some code cleanup
2020-09-08 21:54:40 -04:00
Anthony Good
b41b7dbfe8 2020.09.04.01
FEATURE_NEXTION_DISPLAY
          Added new bit value to gVS (various statuses): configuration_dirty 65536
        FEATURE_AUTOPARK
          Cleaned up some code for the \Y command that may have had a bug
2020-09-03 21:46:26 -04:00
Anthony Good
48a4583abb 2020.09.02.01
Settings Files
          setting ANALOG_AZ_FULL_CCW renamed to ANALOG_AZ_FULL_CCW_EEPROM_INITIALIZE
          setting ANALOG_AZ_FULL_CW renamed to ANALOG_AZ_FULL_CW_EEPROM_INITIALIZE
          setting ANALOG_EL_0_DEGREES renamed to ANALOG_EL_FULL_DOWN_EEPROM_INITIALIZE
          setting ANALOG_EL_MAX_ELEVATION renamed to ANALOG_EL_FULL_UP_EEPROM_INITIALIZE
          Added additional comments for clarification
        FEATURE_NEXTION_DISPLAY
          Fixed conflicts between moon, sun, and satellite API variables and issues with gMSS variable
2020-09-02 18:50:07 -04:00
Anthony Good
e2401a95d5 fixed typo in rotator_debug_log_activation.h 2020-09-01 16:28:25 -04:00
Anthony Good
975a9ec4ce 2020.09.01.02
Overlap functionality can now be disabled by commenting out define ANALOG_AZ_OVERLAP_DEGREES in settings file
        Setting AZIMUTH_STARTING_POINT_DEFAULT renamed to AZIMUTH_STARTING_POINT_EEPROM_INITIALIZE
        Setting AZIMUTH_ROTATION_CAPABILITY_DEFAULT renamed to AZIMUTH_ROTATION_CAPABILITY_EEPROM_INITIALIZE
2020-09-01 16:19:32 -04:00
Anthony Good
3eb13727c1 2020.09.01.01
FEATURE_NEXTION_DISPLAY & FEATURE_PARK
          Added vPA and vPE API variables for park azimuth and elevation settings
          Added vAT API variable for autopark time setting in minutes
        FEATURE_NEXTION_DISPLAY
          Added transient user messaging capability for vSS1 and vSS2 via request_transient_message() call
          \PA or \PE command from Nextion pushes output to vSS1 in transient message
        Now updating software version date based on UTC date, not Eastern US date.  G'day, mates! :-)
2020-08-31 23:02:52 -04:00
Anthony Good
0c840987e1 2020.08.30.01
FEATURE_PARK
          The park azimuth and elevation is now stored in the EEPROM configuration
          Settings PARK_AZIMUTH and PARK_ELEVATION have been deprecated
          The \P command has been enhanced:
            \PA[x][x][x] - set the park azimuth
            \PE[x][x][x] - set the park elevation
            \PA or \PE (no parameter) - report current park azimuth and elevation
            \P still initiates park
        FEATURE_NEXTION_DISPLAY & FEATURE_SATELLITE_TRACKING
          Changing the current satellite on the Nextion display no longer echoes the command output on the control port
2020-08-30 17:06:43 -04:00
Anthony Good
3358207202 2020.08.29.02
FEATURE_CLOCK
          Fixed bug with CLOCK_DEFAULT_*_AT_BOOTUP settings not being used at boot up
          \O (Oscar) command (set clock manually) will now optionally take seconds in the argument (i.e. \O202008292032 or \O20200829203255)
        FEATURE_SATELLITE_TRACKING & FEATURE_CLOCK
          The \O (Oscar) command (set clock manually) now resets the satellite data array so it's recalculated using the new time setting
        FEATURE_NEXTION_DISPLAY & FEATURE_AUTOPARK
          Added an addition bit value to API variable gVS (various statuses), autopark_active 32768
        FEATURE_NEXTION_DISPLAY
          Enhanced initialization routine to retry if "i'm alive" bytes are not received
          Additional logging in DEBUG_NEXTION_DISPLAY_INIT
2020-08-29 21:07:36 -04:00
Anthony Good
d23527048f 2020.08.29.01
FEATURE_SATELLITE_TRACKING
          Yet another significant update to service_calc_satellite_data() - next AOS and LOS calculations are now accurate within 5 seconds!
2020-08-29 14:14:16 -04:00
Anthony Good
efc1ae2edf 2020.08.28.01
FEATURE_NEXTION_DISPLAY & FEATURE_SATELLITE_TRACKING
          Fixed bug with vSS1 degrees symbol
2020-08-28 16:22:40 -04:00
Anthony Good
929df3e135 2020.08.26.03
FEATURE_SATELLITE_TRACKING
          Even more optimizations!  It's working great!
        FEATURE_NEXTION_DISPLAY
          Fixed bug with gMSS API variable introduced with satellite related API variable code
2020-08-26 22:09:54 -04:00
Anthony Good
fb3a23e9f0 2020.08.26.02
FEATURE_SATELLITE_TRACKING
          Significant updates to next AOS and LOS time calculations.  This is some crazy code that throttles the calculation resolution back depending on the amount of time the calculation has been running.
          Better handling of TLE loading at boot up and handling a corrupt TLE file
2020-08-26 13:08:48 -04:00
Anthony Good
40f9f57b80 2020.08.25.02
FEATURE_SATELLITE_TRACKING
          Significant changes to the satellite data array updating algorithm
          More debugging code everywhere
          Improved AOS detection consistency
          Made it Harder Better Faster Stronger
2020-08-25 23:20:09 -04:00
Anthony Good
6842f98d8b 2020.08.25.01
DEBUG_SATELLITE_ARRAY_ORDER - additional debugging code
2020-08-25 10:08:27 -04:00
Anthony Good
55f3be43dd 2020.08.24.02
DEBUG_LOOP - additional code for various new subroutines
2020-08-24 22:56:02 -04:00
Anthony Good
3ae6de3b29 2020.08.24.01
FEATURE_NEXTION_DISPLAY & FEATURE_SATELLITE_TRACKING
          Added vSatNx, vSatOx, and vSatAx API variables which send a list of satellites and their next AOS time
          Added NEXTION_NUMBER_OF_NEXT_SATELLITES setting.  This determines how many satellites are sent via the vSatNx, vSatOx, and vSatAx API variables
          https://github.com/k3ng/k3ng_rotator_controller/wiki/425-Human-Interface:-Nextion-Display for more information
2020-08-24 20:36:30 -04:00
Anthony Good
3c7513ddf8 2020.08.23.01
The \X0 command (clear azimuth and elevation calibration / offsets) is now available without FEATURE_MOON_TRACKING and FEATURE_SUN_TRACKING enabled
        FEATURE_SATELLITE_TRACKING
          The \| list satellites command is now sorted by next AOS time.
2020-08-23 21:29:25 -04:00
Anthony Good
2e3dd204ed 2020.08.20.01
FEATURE_SATELLITE_TRACKING
          Removed FEATURE_SATELLITE_TRACKING_MULTI_SAT_AOS_LOS.  It's all within FEATURE_SATELLITE_TRACKING now.  We're not going to get satellite tracking to fit on a Nano, so no need to break out sub-features for memory saving.
          Significant updates to the \| (list satellites command).  It now displays current az, el, lat, long, next aos, next los, next aos max el, time to next aos, and aos status.  Updating is done in the background.  This is some cool $41t.
        FEATURE_NEXTION_DISPLAY
          Fixed bug with vSS2 API variable and Parked and Parking messages
        Added OPTION_CLI_VT100 for sending VT100 escape codes.  More on this later.
2020-08-20 20:39:38 -04:00
Anthony Good
1a8e2be355 2020.08.19.01
FEATURE_NEXTION_DISPLAY
          Fixed bugs with gSC and gL API variables.  I picked the wrong week to quit sniffing glue.
2020-08-19 08:00:04 -04:00
Anthony Good
8980264cbc 2020.08.18.01
Elimated the need for avr/wdt.h include file
        FEATURE_SATELLITE_TRACKING
          Refactoring service_calc_satellite_data() to do all satellite az, el, lat, long, next AOS, and next LOS calculations.
          Enhanced the satellite[] struct to contain more information.  Going to have service_calc_satellite_data() populate this.
2020-08-18 20:32:33 -04:00
Anthony Good
68b56e3c5e 2020.08.17.01
FEATURE_NEXTION_DISPLAY
          Removed languages from gSC API variable and added two new bit values:
            PARK 2048
            AUTOPARK 4096
          Create new API variable gL for language
            ENGLISH 1
            SPANISH 2
            CZECH 4
            PORTUGUESE_BRASIL 8
            GERMAN 16
            FRENCH 32
        FEATURE_SATELLITE_TRACKING
          Created FEATURE_SATELLITE_TRACKING_MULTI_SAT_AOS_LOS
            Created \& command which prints out the next AOS and LOS for each satellite
2020-08-17 22:00:23 -04:00
Anthony Good
307c95767a 2020.08.15.01
FEATURE_SATELLITE_TRACKING
          The \% command (print current satellite AOS and LOS times) now runs asynchronously in the background
2020-08-15 08:37:44 -04:00
Anthony Good
db84b47013 2020.08.13.01
FEATURE_SATELLITE_TRACKING
          gSC API Variable
            This is now the first variable written to the display after initialization
            Added additional capability but values
              ENGLISH 2048
              SPANISH 4096
              CZECH 8192
              PORTUGUESE_BRASIL 16384
              GERMAN 32768
              FRENCH 65536
          Language Support (rotator_language.h)
            NEXTION_GPS_STRING
            NEXTION_PARKING_STRING
            NEXTION_PARKED_STRING
            NEXTION_OVERLAP_STRING
          vSS3 API variable deprecated
          Parked and Overlap messages move to vSS2 API variable
          Change wait time after reboot of Nextion display from 200 mS to 300 mS
2020-08-13 22:07:22 -04:00
Anthony Good
3621a2302c 2020.08.10.02
FEATURE_SATELLITE_TRACKING
          Fixed bug with \# load TLE command not populating satellite list array correctly (Thanks, Adam, VK4GHZ)
        FEATURE_NEXTION_DISPLAY
          Changed initialization so we don't wait for 200 mS doing nothing while the display initializes after we reset it
        Got rid of 1 second delay at start up.  There's really no need for it.
2020-08-10 22:42:06 -04:00
Anthony Good
36b036a7b6 2020.08.10.01
FEATURE_SATELLITE_TRACKING
          Changed TLE loading routine to store carriage returns as 0xFE in eeprom and eliminated differences with systems that do carriage return
          versus carriage return + line feed, however, regardless TLEs cannot be loaded with the Arduino IDE Serial Monitor
          as it strips multi-line pasted text in the send window.  Argh.  You need to use PuTTY on Windows.  Screen on *nix works fine.
2020-08-10 17:30:47 -04:00
Anthony Good
e45d0b2c4e 2020.08.09.01
FEATURE_SATELLITE_TRACKING
          Fixed bug with vS1..vS34 API variables (Thanks,Adam, VK4GHZ)
2020-08-09 08:17:59 -04:00
Anthony Good
f10104ca90 2020.08.08.01
FEATURE_SATELLITE_TRACKING
          Finished \| command to list all available satellites.  This will be updated later to show next AOS of each satellite.
          Added vS1..vS34 API variables that contain all satellites available for tracking
          \$ command will now first search for a literal match of the entered satellite name, and if no match is found, it will match on the first four characters
2020-08-08 08:52:12 -04:00