pull/26/head
alanbjohnston 6 years ago committed by GitHub
parent 94421b55a8
commit 29b706f357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -411,12 +411,12 @@ int get_tlm_fox(uint8_t *b) {
b[0] = b[0] | (id & 0x07); // 3 bits
b[5] = b[5] | (frm_type << 4);
/*
encodeA(b, 10, 0xfff);
encodeA(b, 12, 0x5a5);
encodeB(b, 14, 0xfff);
encodeB(b, 16, 0x152);
/*
tlm[1][A] = (int)(reading[BUS].voltage /15.0 + 0.5) % 100; // Current of 5V supply to Pi
tlm[1][B] = (int) (99.5 - reading[PLUS_X].current/10.0) % 100; // +X current [4]
tlm[1][C] = (int) (99.5 - reading[MINUS_X].current/10.0) % 100; // X- current [10]

Loading…
Cancel
Save

Powered by TurnKey Linux.