PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.2k stars 13.37k forks source link

Logging somethimes not working on master. #2688

Closed RomanBapst closed 9 years ago

RomanBapst commented 9 years ago

While testing the VTOL code we realized that many logs (not all, just the important ones) are corrupted. Flightplot complains about e.g. "Unknown message type: 47". The unknown message type is not always the same.

LorenzMeier commented 9 years ago

There is no message with index 47.

LorenzMeier commented 9 years ago

@tumbili Please cross-test this branch.

AndreasAntener commented 9 years ago

Flightplot has difficulties always after the same messages, for example:

Unknown message type: 63
Message before null: VISN 17236521
Message before that: ATTC 17236521

Unknown message type: 61
Message before null: VISN 68439553
Message before that: ATTC 68439553

Unknown message type: 127
Message before null: VISN 75210376
Message before that: ATTC 75210376

I couldn't spot anything in the logging code that points to a problem with these messages (formats). I don't know if Logmuncher reports the same errors but ignores them.

RomanBapst commented 9 years ago

@AndreasAntener Seems like the logparser is not detecting the ATTC1 message. It is there in the log but he does not see it. I'm checking why right now.

RomanBapst commented 9 years ago

@LorenzMeier @AndreasAntener Got it! Vision and ATTC1 have the same ID

RomanBapst commented 9 years ago

We should have a script which checks that no ID is used two times.

LorenzMeier commented 9 years ago

Fixed.