k3ng / k3ng_rotator_controller

K3NG Arduino Amateur Radio Rotator Controller
http://blog.radioartisan.com/yaesu-rotator-computer-serial-interface/
GNU General Public License v3.0
182 stars 127 forks source link

Moon Tracking Feature Request #62

Open gobris opened 5 years ago

gobris commented 5 years ago

Hello, For EME tracking and using, it is better to track the moon on last 10 seconds of every minute... Due to default behavior of JT65 and similar programs, on EME communication, TX and RX cycles takes place between 0-50 seconds of every minute then, system gets idle on 51-59 seconds.. I made a modification manually on the code to stop tracking between 0-50 seconds.. but it will be nice to make it as a feature on general settings with a better coding approach..

Change I made on the code as follows to give a hint...

#ifdef FEATURE_MOON_TRACKING
void service_moon_tracking(){

int year;
byte month, day, hour, minute, gpssec, hundredths;
unsigned long fix_age;

 gps.crack_datetime(&year,&month,&day,&hour,&minute,&gpssec,&hundredths);

then changed the check parameter and added 50 secs limit to that area also

if ((moon_azimuth >= MOON_AOS_AZIMUTH_MIN) && (moon_azimuth <= MOON_AOS_AZIMUTH_MAX) && (moon_elevation >= MOON_AOS_ELEVATION_MIN) && (gpssec >= 50) && (moon_elevation <= MOON_AOS_ELEVATION_MAX)) {