This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
pidflightlap:protocol [2019/02/08 09:59] cmengler [MSP message format] |
pidflightlap:protocol [2019/02/08 20:11] cmengler [MSP codes] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Notes ===== | ===== Notes ===== | ||
- | * By default all lap timers are activated. | + | * By default all lap timers are activated on power up. (i.e. do not require **MSP_ACTIVATE** to be sent) |
===== Getting started ===== | ===== Getting started ===== | ||
Line 17: | Line 17: | ||
===== MSP message format ===== | ===== MSP message format ===== | ||
- | TBC | + | {{:pidflightlap:msp_message_format.png?nolink&800|}} |
===== MSP codes ===== | ===== MSP codes ===== | ||
^Name^Code^Description^ | ^Name^Code^Description^ | ||
- | |MSP_API_VERSION|1| | | + | |MSP_API_VERSION|1|Firmware API version| |
|MSP_STATUS|4| | | |MSP_STATUS|4| | | ||
|MSP_RESET|5| | | |MSP_RESET|5| | | ||
Line 42: | Line 43: | ||
|<del>MSP_SET_RSSI_FILTER</del>|45|TBD| | |<del>MSP_SET_RSSI_FILTER</del>|45|TBD| | ||
|MSP_EEPROM_WRITE|250|Persists settings to EEPROM for settings to survive a power cycle (if desired)| | |MSP_EEPROM_WRITE|250|Persists settings to EEPROM for settings to survive a power cycle (if desired)| | ||
+ | |||
+ | ==== MSP_API_VERSION ==== | ||
+ | ^Part^Type^Description^ | ||
+ | |1|UINT 8|Major version| | ||
+ | |2|UINT 8|Minor version| | ||
+ | Version is constructed as [PART 1][DECIMAL][PART2][DECIMAL][ZERO] (e.g. 2.6.0) | ||
+ | |||
+ | ==== MSP_STATUS ==== | ||
+ | ^Part^Type^Description^ | ||
+ | |1|UINT 8|Device state| | ||
+ | |2|UINT 8|Timer state| | ||
+ | |||
+ | === Device states === | ||
+ | ^Value^State^ | ||
+ | |0|Idle| | ||
+ | |1|Timing| | ||
+ | |2|Calibrating| | ||
+ | |3|Inactive| | ||
+ | |||
+ | === Timer states === | ||
+ | ^Value^State^ | ||
+ | |0|Waiting| | ||
+ | |1|Start| | ||
+ | |2|Stop| | ||
+ | |||
+ | |||
+ | |||