Blink LED when sending telemetry.
This commit is contained in:
parent
eb43b0baf1
commit
b3adda48e9
|
|
@ -43,6 +43,7 @@ After connection with APRX based DIGI it can be used as KISS-TNC
|
||||||
* ((AUT TX)) - information about sending automatic positioning frame when GPS is turned off
|
* ((AUT TX)) - information about sending automatic positioning frame when GPS is turned off
|
||||||
* ((KISSTX)) - information about sending the frame sent by KISS
|
* ((KISSTX)) - information about sending the frame sent by KISS
|
||||||
* ((WEB TX)) - sending frame as requested via HTTP
|
* ((WEB TX)) - sending frame as requested via HTTP
|
||||||
|
* ((TEL TX)) - information about sending telemetry
|
||||||
|
|
||||||
## How to binary first flash readme... (thanx SP6VWX)
|
## How to binary first flash readme... (thanx SP6VWX)
|
||||||
* Download the appropriate binary file for your board from: https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/releases
|
* Download the appropriate binary file for your board from: https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/releases
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ build_flags =
|
||||||
-D 'NETWORK_GPS_PORT=10110' ; GPS NMEA Port
|
-D 'NETWORK_GPS_PORT=10110' ; GPS NMEA Port
|
||||||
-D 'ENABLE_TNC_SELF_TELEMETRY' ; can be set from www interface
|
-D 'ENABLE_TNC_SELF_TELEMETRY' ; can be set from www interface
|
||||||
-D 'TNC_SELF_TELEMETRY_INTERVAL=3600L' ; can be set from www interface (seconds)
|
-D 'TNC_SELF_TELEMETRY_INTERVAL=3600L' ; can be set from www interface (seconds)
|
||||||
-D 'TNC_SELF_TELEMETRY_SEQ=0L'
|
-D 'TNC_SELF_TELEMETRY_SEQ=0L' ; start number for telemetry sequence
|
||||||
-D 'SHOW_OLED_TIME=15000' ; OLED Timeout
|
-D 'SHOW_OLED_TIME=15000' ; OLED Timeout
|
||||||
|
|
||||||
[env:ttgo-t-beam-v1.0]
|
[env:ttgo-t-beam-v1.0]
|
||||||
|
|
|
||||||
|
|
@ -511,6 +511,10 @@ String prepareCallsign(const String& callsign){
|
||||||
char Tcall_message_char[9];
|
char Tcall_message_char[9];
|
||||||
sprintf_P(Tcall_message_char, "%-9s", Tcall);
|
sprintf_P(Tcall_message_char, "%-9s", Tcall);
|
||||||
String Tcall_message = String(Tcall_message_char);
|
String Tcall_message = String(Tcall_message_char);
|
||||||
|
// Flash the light when telemetry is being sent
|
||||||
|
#ifdef ENABLE_LED_SIGNALING
|
||||||
|
digitalWrite(TXLED, LOW);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Determine sequence number (or 'MIC')
|
// Determine sequence number (or 'MIC')
|
||||||
// Pad to 3 digits
|
// Pad to 3 digits
|
||||||
|
|
@ -534,7 +538,9 @@ String prepareCallsign(const String& callsign){
|
||||||
writedisplaytext("((TEL TX))","","","","","");
|
writedisplaytext("((TEL TX))","","","","","");
|
||||||
|
|
||||||
// Flash the light when telemetry is being sent
|
// Flash the light when telemetry is being sent
|
||||||
// CODE HERE
|
#ifdef ENABLE_LED_SIGNALING
|
||||||
|
digitalWrite(TXLED, HIGH);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Update the telemetry sequence number
|
// Update the telemetry sequence number
|
||||||
if(tel_sequence >= 0 & tel_sequence < 999){
|
if(tel_sequence >= 0 & tel_sequence < 999){
|
||||||
|
|
@ -1136,7 +1142,6 @@ void loop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//#if (enable_tel == true) && defined(KISS_PROTOCOL)
|
|
||||||
#if defined(ENABLE_TNC_SELF_TELEMETRY) && defined(KISS_PROTOCOL)
|
#if defined(ENABLE_TNC_SELF_TELEMETRY) && defined(KISS_PROTOCOL)
|
||||||
if (nextTelemetryFrame < millis()){
|
if (nextTelemetryFrame < millis()){
|
||||||
nextTelemetryFrame = millis() + (tel_interval * 1000);
|
nextTelemetryFrame = millis() + (tel_interval * 1000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue