Update main.c add prints

fc-3
Alan Johnston 11 months ago committed by GitHub
parent 529fbba34f
commit 2bde5b77a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2293,6 +2293,10 @@ void get_tlm_fc() {
int byte_count = 256; int byte_count = 256;
smaller = (int) (S_RATE / (2 * freq_Hz)); smaller = (int) (S_RATE / (2 * freq_Hz));
printf("\n\n");
for (int i=0; i<256; i++)
printf("%d ", source_bytes[i]);
printf("\n\n");
/* write telemetry into data buffer */ /* write telemetry into data buffer */
memset(source_bytes, 0x00, sizeof(source_bytes)); memset(source_bytes, 0x00, sizeof(source_bytes));
@ -2307,7 +2311,7 @@ void get_tlm_fc() {
printf("\n\n"); printf("\n\n");
for (int i=0; i<650; i++) for (int i=0; i<650; i++)
printf("%x", encoded_bytes[i]); printf("%d ", encoded_bytes[i]);
printf("\n\n"); printf("\n\n");
// printf("size of encoded_bytes: %d\n\n", sizeof(encoded_bytes)); // printf("size of encoded_bytes: %d\n\n", sizeof(encoded_bytes));
@ -2373,6 +2377,8 @@ void get_tlm_fc() {
} }
} }
} }
printf("\nctr = %d\n\n", ctr);
/* open socket */ /* open socket */

Loading…
Cancel
Save

Powered by TurnKey Linux.