Moderator

Altitude from baro or GPS? (APM:Plane)

Is it advisable to give GPS altitude a little weight over baro alt due to baro drift? We are seeing a +10m to -10m altitude variance after a 90 minute flight so auto-landing is out of the question (until we can fit a laser altimeter).

ALT_MIX can be set from 0 to 1 so I presume that 0.9 would be 90% baro and 10% GPS so would this correct the drift or is GPS alt less reliable than baro alt?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    I'm having a similar problem trying to do auto-landing with long flights. @Graham, what mix ended up working best for you?
  • Moderator

    Before takeoff: GPS - 562m / Baro - 562m

    After landing:    GPS - 562m / Baro - 568m

    • Moderator

      How does one get baro alt and gps alt in the tuning window while flying?

      • Moderator

        2nd flight - ALT_MIX - 0.9

        Before takeoff: GPS - 560m / Baro - 570m

        After landing:    GPS - 560m / Baro - 559m

        • So at .9, what altitude error did your HUD show after landing? Was it 90% of the 11m baro error (10m)?
          I still don't understand why the GPS shows no error at all. That just can't be right. Which Gps are you using? Pixhawk with 2 GPS's?
          Give it a try at .5 and see if the baro error is adequately minimized. We can't be 100% dependent on gps as it can glitch.
          I'm looking forward to testing this myself, but I won't be able to fly for a while.
  • Interesting idea. I hadn't considered this as a work around to the frustrating baro drift issue. I wonder what other side effects it may have. Paul Riseborough is the man to ask since he wrote the TECS.
    • Moderator

      Well, I had set it to 0 earlier after a flight to watch for a change from -11m (100% baro) and then I accidentally left it at 0 for the last flight of 80 minutes, the altitude was a perfect 0 when I landed. Maybe 0.5 is a good compromise?

      • It's a bit suspicious that there was 0 gps alt error. It might be interesting to graph the baro vs gps alt from that last flight. GPS is notoriously less accurate than baro. However with the Ublox M8 and dual GPS units, it is probably better than when the ALT_MIX default was chosen back in the days of MediaTek.

        I'm looking forward to the results of your testing.
        • Moderator
          I'll graph the two alts in the morning, it's late here now and I need some sleep.
This reply was deleted.

Activity

DIY Robocars via Twitter
17 hours ago
DIY Robocars via Twitter
RT @f1tenth: What can we learn from autonomous racing? Actually, a lot! To get an idea what you can do in this field and where the research…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @a1k0n: It's aliiiiiive! Less than a week until @selfracingcars and I'm just now digging this bad boy out. Been a crazy few months. Hope…
Monday
DIY Robocars via Twitter
RT @OttawaAVGroup: Mark your calendars. CAV Canada is happening on Dec. 2nd, 10am-4pm EST. And guess what - admission is FREE! Get your ti…
Oct 6
DIY Robocars via Twitter
RT @f1tenth: Our new 1:10 scale 3D racetrack is here. We will implement it in the @SVLSimulator in the next weeks so everybody can use it.…
Oct 6
DIY Robocars via Twitter
RT @DAVGtech: Received sweet autonomous Ferrari's that we plan to demo at the @IndyAChallenge on our portable @donkey_car track. Let us kno…
Oct 6
DIY Robocars via Twitter
Sep 30
DIY Robocars via Twitter
Sep 9
DIY Robocars via Twitter
RT @chr1sa: We've got another virtual @DIYRobocars race tomorrow at 9:00am PT. Two dozen autonomous cars will compete, four at a time. Ther…
Sep 4
DIY Robocars via Twitter
Sep 1
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
RT @ExplorerRobocar: Sometimes, I am really a big kid!! Having fun with my virtual RC car on the @diyrobocars track 😜😉, by using the « AR R…
Aug 24
DIY Robocars via Twitter
RT @grepLeigh: @donkey_car @unity3d @TensorFlow ~1050 episodes into training, my agent learned to erratically drive in the left lane. 🤖😆 ht…
Aug 24
DIY Robocars via Twitter
RT @EclipseCyclone: Sweet! http://Robotec.ai high performance #ROS 2 @unity3d #CycloneDDS bridge for @AutowareFdn @SVLSimulator now…
Aug 24
More…