Using SF02 Laser for auto landing - altitude sensing

Hi All,

Not sure if this is the right place to post.

We are testing the SF02 laser for auto landing and have it working and communicating and are now trying to implement into Arduplane code.

It looks like the altitude is updated through update_alt, but it is only looking at the barometer. Does anyone know if and where the code checks the GPS Altitude? I seem to remember a couple of lines that say;

If the GPS is valid and it has a good fix, use GPS altitude. If not, use baro altitude.

Anyone?

Thanks.

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

Join diydrones

Email me when people reply –

Replies

  • 100KM

    I haven't looked at the code, but there is ALT_MIX, which is how bias AP should be towards either inputs.

    Explained here: http://plane.ardupilot.com/wiki/arduplane-parameters/#GPS_to_Baro_M...

    I fly with this on zero, but barometer becomes crazy inaccurate after an hour of flight.

    Please speak to others in the community, including Tridge, to get this implemented asap :)

    • Thanks. Spoken to Tridge, but he's a busy, busy man;  he just flew the first Linux flight! Wow!

      Ardulane appears to completely ignore GPS alt as Randy highlighted above. Thank's Randy.  We are bringing some of the Arducopter code over to Arduplane to calculate laser height given pitch and roll. We are flying tomorrow, so might have some results. We are going as fast as we can and will keep this conversation going. Anyone who has any ideas, please contribute.

      The idea at this stage is to have two points in mission planner; Land_1 and Land_2. these points delimit the "landing strip". i.e. the two points constitute the start and end of the landing zone as well as the landing direction.

  • Developer

    The latest arduplane code should have all the required code to communicate with the SF02 LRF.  It's documented on the copter wiki here.  Tridge was also working on using it for autolanding but I'm not sure where he's gotten to.

    On copter we never use the GPS altitude because it's just not reliable, I suspect plane does the same but I'm not totally sure.  It may be the EKF tries to blend in that data as well.. sorry, not sure.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
More…