Fix Wireshark dissector and add snapshot tests#817
Fix Wireshark dissector and add snapshot tests#817peterbarker merged 1 commit intoArduPilot:masterfrom
Conversation
|
@rotu Tried this out. Certainly fixes the error we were seeing. I particularly like how clear the bitflags are rendered: I also looked at many other message, including commands, and nothing seems broken: Excellent to see test code of this. Would be good to expand it in future as a validation test. Out of scope for this probably. The generator code changes make sense to me, and I think this also makes the generated code much more clear. However I am not expert. Once you have this to a state you are happy with, we'll need to work with @peterbarker to get this in. |
|
I'm not an expert either. Thanks for the screenshots! I think they highlight some other bugs! The second message you show is a The value shown is Also the longitude/latitude values are payload parameters 5/6 so I think they should be Could you please attach some pcap data I can test against? |
|
Looks like you're right. I ran this for a few seconds and then did a save-as. Is this what you needed? PS, more of an expert than me. |
|
PS Also a CI error |
|
I see the CI errors and but the alternative is to use the obsolete |
|
@rotu Could not agree more. As I understand it you're looking at the other issues with the generated output. Since I'm very happy for you to do so I'm going to just keep quiet now :-) |
|
@rotu This isn't waiting on me for anything is it? |
d4efcaf to
69edcd2
Compare
|
Hi @rotu |
|
@hamishwillee Yep. I'm chipping away slowly. I'm a little hung up on getting the output to match when there are long lines (not sure how to get the output of tshark to wrap to a consistent line length) |
|
Alright I'm sufficiently sick of this PR, so it's time to get it out there! |
|
@rotu I can imagine. Time for me to get a technical review on this? |
I don't understand what you mean. Do whatever you need, loop in whoever you like, and ask whatever questions to satisfy your curiosity. |
|
@peterbarker Can you review this please. I think it is important to get in. I have done basic tests on it by running the instructions in https://mavlink.io/en/guide/wireshark.html and also specifically looking at the HEARTBEAT message to check that the known issue was fixed. @rotu Has also added a heap of test code. I have not tested that, since I have no merge rights, and you will have to do this anyway. |
peterbarker
left a comment
There was a problem hiding this comment.
@rotu could you fix the commit list, please? Should be a single commit
|
... should have said I'm happy enough to merge this with a good commit list. |
@peterbarker |
add tests, remove defunct script
8d1d39f to
c079002
Compare
|
Merged, thanks! |
|
Hurray. Thanks! |


Handle bit flags in Wireshark dissector (fix #815, fix #726)
Add tests for Wireshark (via
tsharkbinary andpytestvia thesyrupysnapshot library)Remove defunct mav2pcap.py script