All mbed code for control over dive planes, pump motor, valve motor, BCUs, UART interface, etc.

Dependencies:   mbed ESC mbed MODDMA

Committer:
juansal12
Date:
Tue Jan 14 19:17:05 2020 +0000
Revision:
0:c3a329a5b05d
Sofi7 mbed code;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
juansal12 0:c3a329a5b05d 1 Day 1
juansal12 0:c3a329a5b05d 2 uint32: goertzel 36k (0)
juansal12 0:c3a329a5b05d 3 uint32: goertzel 30k (1)
juansal12 0:c3a329a5b05d 4 uint16: signal level (average over last buffer)
juansal12 0:c3a329a5b05d 5 uint8 : codeword (21) in most significant 5 bits, gain index in least significant 3 bits
juansal12 0:c3a329a5b05d 6 uint16: fish state event in upper 5 bits, fish state in lower 11 bits
juansal12 0:c3a329a5b05d 7
juansal12 0:c3a329a5b05d 8 Day 2
juansal12 0:c3a329a5b05d 9 3 bytes: goertzel 36k (0) >> 8
juansal12 0:c3a329a5b05d 10 3 bytes: goertzel 30k (1) >> 8
juansal12 0:c3a329a5b05d 11 2 bytes: (signal level >> 2) in lower 11 bits, codeword (21) in upper 5 bits
juansal12 0:c3a329a5b05d 12 2 bytes: fish state event in upper 5 bits, fish state in lower 11 bits
juansal12 0:c3a329a5b05d 13
juansal12 0:c3a329a5b05d 14
juansal12 0:c3a329a5b05d 15 fish state events:
juansal12 0:c3a329a5b05d 16 0: no event
juansal12 0:c3a329a5b05d 17 1: bad word timing
juansal12 0:c3a329a5b05d 18 2: bad word timing
juansal12 0:c3a329a5b05d 19 3: bad word hamming
juansal12 0:c3a329a5b05d 20 4: timeout
juansal12 0:c3a329a5b05d 21 5: good acoustic word
juansal12 0:c3a329a5b05d 22 6: button: yaw left
juansal12 0:c3a329a5b05d 23 7: button: yaw right
juansal12 0:c3a329a5b05d 24 8: button: faster
juansal12 0:c3a329a5b05d 25 9: button: slower
juansal12 0:c3a329a5b05d 26 10: button: pitch up
juansal12 0:c3a329a5b05d 27 11: button: pitch down
juansal12 0:c3a329a5b05d 28 12: button: shutdown pi
juansal12 0:c3a329a5b05d 29 13: button: reset mbed
juansal12 0:c3a329a5b05d 30 14: button: auto mode (toggle)
juansal12 0:c3a329a5b05d 31 15: button: invalid combination