Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mavlink-bindgen: Allow absurd_extreme_comparisons
As described in the comment, these lints are from the empty messages which have Self::ENCODED_LEN zero. For now, skip this lint in the check. The empty messages are actually forbidden by the mavlink schema [1]. But we generate a couple of empty cubepilot messages because the cubepilot.xml contains a couple of unclosed fields, like so: [1]: https://github.com/ArduPilot/pymavlink/blob/d251f7acbe9ce45175615fefdd4f094719ec1120/generator/mavschema.xsd#L305 ```xml <message id="50001" name="CUBEPILOT_RAW_RC"> <description>Raw RC Data</description> <field type="uint8_t[32]" name="rc_raw"/> </message> <message id="50003" name="HERELINK_TELEM"> <description>Herelink Telemetry</description> <field type="uint8_t" name="rssi"/> <field type="int16_t" name="snr"/> <field type="uint32_t" name="rf_freq"/> <field type="uint32_t" name="link_bw"/> <field type="uint32_t" name="link_rate"/> <field type="int16_t" name="cpu_temp"/> <field type="int16_t" name="board_temp"/> </message> ``` Python xml parser does a decend job at recovering from such cases. However, our current parser just ignores such fields.
- Loading branch information