apm_planner icon indicating copy to clipboard operation
apm_planner copied to clipboard

text message severity change

Open rmackay9 opened this issue 9 years ago • 10 comments

For future releases of Copter, Tracker, Plane, Rover the severities of text messages sent from the flight controller will change to be consistent with the MAVLink standards.

Before After SEVERITY_LOW =1 MAV_SEVERITY_WARNING = 4 SEVERITY_MEDIUM =2 MAV_SEVERITY_ALERT =1 SEVERITY_HIGH =3 MAV_SEVERITY_CRITICAL =2

During the transitional period in which the GCSs want to support firmware which could send either set of severities, the autopilot version could be used (http://mavlink.org/messages/common#AUTOPILOT_VERSION). The first version to support the new severities is below. Copter: 3, 4, 0, FIRMWARE_VERSION_TYPE_DEV Plane: 3,4,0,FIRMWARE_VERSION_TYPE_BETA Rover: 2, 6, 0, FIRMWARE_VERSION_TYPE_DEV Tracker: 0, 7, 3, FIRMWARE_VERSION_TYPE_DEV

equivalent MP issue: https://github.com/diydrones/MissionPlanner/issues/977

rmackay9 avatar Aug 25 '15 05:08 rmackay9

The only place I can see this as a real issue is when we calibrate the the access as we check the messages for accel calibration rotation instructions. Do you have a commit hash that is relevant for APM changes?

billbonney avatar Aug 26 '15 00:08 billbonney

@billbonney, here's the copter change: https://github.com/diydrones/ardupilot/commit/767b4da5b6852a2ba700ee1f97d83129618b04f1

Here's the PR that covers the rest of the changes. https://github.com/diydrones/ardupilot/pull/2757

rmackay9 avatar Aug 26 '15 01:08 rmackay9

There are a number of messages which seem like they should be MAV_SEVERITY_INFO. For example: when you request the parameter list the firmware sends out mavlink messages with various firmware version info set to MAV_SEVERITY_WARNING. This in turn causes QGroundControl to thinks these are errors since they are marked as warning. Shouldn't these be MAV_SEVERITY_INFO? There may be others. I'm just getting started with APM Flight Stack support in QGC. This is what I've found so far.

DonLakeFlyer avatar Sep 25 '15 18:09 DonLakeFlyer

@rmackay9 Rover is at 2.50. How will Rover ever have 2.6, that will be like decremeting the version number. Either this is fixed in 2.51 or 3.0. Those are the only two numbers that are in forward direction.

pritamghanghas avatar Oct 08 '15 03:10 pritamghanghas

Hi. You are correct. However, for the next release of Rover I am going to make it 2.6.0 so the versions fall in line with Plane and Copter. Thanks, Grant.

gmorph avatar Oct 08 '15 04:10 gmorph

that will need a special case treatment for rover in groundstation. Why not make it 3.0.0. Plane and Copter are already 3.x .

Regards, Pritam

On Thu, Oct 8, 2015 at 9:52 AM, Grant Morphett [email protected] wrote:

Hi. You are correct. However, for the next release of Rover I am going to make it 2.6.0 so the versions fall in line with Plane and Copter. Thanks, Grant.

— Reply to this email directly or view it on GitHub https://github.com/diydrones/apm_planner/issues/788#issuecomment-146415628 .

Regards, pritam

pritamghanghas avatar Oct 08 '15 04:10 pritamghanghas

@DonLakeFlyer, yes, I think you're probably right. If you want to PR it I think we'd accept that without much hesitation. If a PR is not something you're comfortable with we can add it to the to-do list to do at some point..

rmackay9 avatar Oct 08 '15 04:10 rmackay9

I'm not super bothered. A change in the major version number would indicate a significant update which there isn't. However, if it causes the GCS's a problem then I will figure something out. I'll have a chat with them. Thanks, Grant.

gmorph avatar Oct 08 '15 04:10 gmorph

There is no significant problem on the GCS side. It just looks a little awkward trying to figure out which is newer version and which is older, definitely confusing to somebody who reads the code lateron. 2.50 will become a version wherelogic reverses.

pritamghanghas avatar Oct 08 '15 04:10 pritamghanghas

@rmackay9 I'll add a separate issue for the MAV_SEVERITY_INFO thing.

DonLakeFlyer avatar Oct 08 '15 04:10 DonLakeFlyer