fe1958019a160000000031000200474d425f5941575f4400000000000000095f5a ***Parsed Pcap file to create file of mavlink messages
I am trying to run these encoded mavlink commands through the mavlink.py decode function
magic, mlen, seq, srcSystem, srcComponent, msgId = struct.unpack('cBBBBB', msgbuf[:6])
but I keep on getting the below error:
Unable to unpack MAVLink header: unpack requires a string argument of length 6
I am now trying to unpack the mavlink messages manually in a new python script but I do not understand what the magic value should be...I always thought it was just fe but it looks like it can only be one character and I am really confusing myself now?
I am new to mavlink and any help with this would be greatly appreciated.
R
Joe