Update main.c print first 5 bytes of b

pacsat-v2.2-tlm2
Alan Johnston 4 weeks ago committed by GitHub
parent 3f6dcead9b
commit 7ce0510324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1341,7 +1341,9 @@ void get_tlm_fox() {
// encodeA(b, 0 + head_offset, batt_a_v); // replaced by XS2 and XS3 below
// encodeB(b, 1 + head_offset, batt_b_v);
printf("%02X%02X%02X%02X%02X\n", b[0],b[1],b[2],b[3],b[4]);
encodeA(b, 3 + head_offset, batt_c_v);
printf("%02X%02X%02X%02X%02X\n", b[0],b[1],b[2],b[3],b[4]);
printf("batt_c_v: %d 3+head_offset: %d\n", batt_c_v, 3+head_offset);
encodeB(b, 4 + head_offset, (int)(sensor[ACCEL_X] * 100 + 0.5) + 2048); // Xaccel

Loading…
Cancel
Save

Powered by TurnKey Linux.