|
|
|
@ -296,7 +296,7 @@ int main(int argc, char * argv[]) {
|
|
|
|
// cycle = OFF;
|
|
|
|
// cycle = OFF;
|
|
|
|
printf("Mode AFSK with AX5043\n");
|
|
|
|
printf("Mode AFSK with AX5043\n");
|
|
|
|
transmit = TRUE;
|
|
|
|
transmit = TRUE;
|
|
|
|
sleep(10); // just in case CW ID is sent
|
|
|
|
// sleep(10); // just in case CW ID is sent
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
printf("AX5043 not present!\n");
|
|
|
|
printf("AX5043 not present!\n");
|
|
|
|
pclose(file2);
|
|
|
|
pclose(file2);
|
|
|
|
@ -1259,9 +1259,9 @@ void get_tlm(void) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (ax5043) {
|
|
|
|
else if (ax5043) {
|
|
|
|
digitalWrite(txLed, txLedOn);
|
|
|
|
digitalWrite(txLed, txLedOn);
|
|
|
|
#ifdef DEBUG_LOGGING
|
|
|
|
// #ifdef DEBUG_LOGGING
|
|
|
|
printf("Tx LED On 5\n");
|
|
|
|
// printf("Tx LED On 5\n");
|
|
|
|
#endif
|
|
|
|
// #endif
|
|
|
|
fprintf(stderr, "INFO: Transmitting X.25 packet using AX5043\n");
|
|
|
|
fprintf(stderr, "INFO: Transmitting X.25 packet using AX5043\n");
|
|
|
|
memcpy(data, str, strnlen(str, 256));
|
|
|
|
memcpy(data, str, strnlen(str, 256));
|
|
|
|
printf("data: %s \n", data);
|
|
|
|
printf("data: %s \n", data);
|
|
|
|
@ -1274,9 +1274,9 @@ void get_tlm(void) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ax5043_wait_for_transmit();
|
|
|
|
ax5043_wait_for_transmit();
|
|
|
|
digitalWrite(txLed, txLedOff);
|
|
|
|
digitalWrite(txLed, txLedOff);
|
|
|
|
#ifdef DEBUG_LOGGING
|
|
|
|
// #ifdef DEBUG_LOGGING
|
|
|
|
printf("Tx LED Off\n");
|
|
|
|
// printf("Tx LED Off\n");
|
|
|
|
#endif
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
|
|
if (ret) {
|
|
|
|
if (ret) {
|
|
|
|
fprintf(stderr,
|
|
|
|
fprintf(stderr,
|
|
|
|
@ -1284,7 +1284,7 @@ void get_tlm(void) {
|
|
|
|
ret);
|
|
|
|
ret);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sleep(2);
|
|
|
|
sleep(4); // was 2
|
|
|
|
|
|
|
|
|
|
|
|
} else { // APRS using rpitx
|
|
|
|
} else { // APRS using rpitx
|
|
|
|
|
|
|
|
|
|
|
|
|