-
Notifications
You must be signed in to change notification settings - Fork 5
/
Timing2.h
26 lines (25 loc) · 990 Bytes
/
Timing2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
Timing Schedule - See readme file
*/
void TXtiming() // Timing
{
// run additional scripts here to generate data prior to TX if there is a large delay involved.
if ((timeStatus() == timeSet) && (second() == 0) && (minute() >= 0))
{
setGPStime();
if ((minute() % 02 == 0) && (second() <= 2)) // TX WSPR standard message
{
telemetry_set = true;
loc4calc(); // Get position and update 4-char locator, 6-char locator and last 2 chars of 8-char locator
call_telem(); // Update WSPR telemetry callsign based on previous information : position and altitude in meters
loc_dbm_telem(); // Update WSPR telemetry locator and dbm. Get temperature, voltage, speed in knots, GPS status and sats number
GPS_VCC_off(); delay(10);
rf_on();
freq = WSPR_FREQ;
setModeWSPR(); // set WSPR standard mode
encode(); // begin radio transmission
rf_off(); delay(5);
GPS_VCC_on();
}
}
}