Update cw_main.c

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent e15b799d5f
commit 2489ef39f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,6 +58,7 @@ int add_space(uint8_t *msg);
int main(void)
{
uint8_t retVal;
int tlm[7][4];
// send_afsk();
// printf("Result: %d \n",res);
@ -108,10 +109,13 @@ int main(void)
printf("\nINFO: Sending TLM header\n");
} else {
int tlm_3a = 0, tlm_1b = 0;
get_tlm(&tlm);
printf("TLM Received 1a: %d \n", tlm[1][1]);
int tlm_3a = 0, tlm_1b = 0;
msg_length = encode_tlm(&packet[0], channel, // add a channel with dummy data to buffer
msg_length = encode_tlm(&packet[0], channel, // add a channel with dummy data to buffer
tlm_3a, tlm_1b, channel+2, channel+3,
(MAX_MESSAGE_LENGTH + 1));
@ -412,3 +416,10 @@ int add_dot(uint8_t *msg, int number) {
}
return counter;
}
int get_tlm(int *tlm) {
tlm[1][1] = 99;
printf("TLM 1a: %d \n", tlm[1][1]);
return 0;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.