-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GLOBAL_POSITION_INT instead of VFR_HUD to set altitude and speeds… #489
base: develop
Are you sure you want to change the base?
Conversation
This is necessary because after a commit on 29 May 2018 Arducopter always return height above MSL in VFR_HUD message whereas GLOBAL_POSITION_INT return relative alt. |
My bad for killing this, sorry. I'm a touch confused as to why you've implemented this in org.droidplanner.services.android.impl.core.drone.autopilot.apm.ArduCopter rather than in org.droidplanner.services.android.impl.core.drone.autopilot.apm.ArduPilot After all, this problem was caused by the effort to make all of the vehicles behave the same over MAVLink as far as we can! By-the-by, there's a low-bandwidth google group we formed to try to coordinate this sort of thing with GCS authors: https://groups.google.com/forum/#!forum/ardupilot-gcs |
Don't worry that commit did the right thing
In part for the lack of programming skill and in part because I see that in ArduPlane was implemented in the same way
Thanks, I will try to follow this group |
I agree this should be refactored from ArduPlane code into Ardupilot base class. Then any ArduPIlot variant will have the same behaviour. That said older variants would not be able to use the library. It should really be dependent on wether it is new or old FW. Do you think you can add a check for the FW version and modify the behaviour? |
I can move the new code from I don't think there is the need to check for FW version, the info about altitude and speed are sent to FC with |
73dfa16
to
b93c505
Compare
I did the changes in ArduPilot base class. Do you think I did it the right way? |
@@ -512,10 +513,28 @@ private void checkControlSensorsHealth(msg_sys_status sysStatus) { | |||
} | |||
|
|||
protected void processVfrHud(msg_vfr_hud vfrHud) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just kill this entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested it, but this looks to be the right shape.
… in copter like in plane