Hello all. I have experienced in the past in my driveway, landing on the asphalt, but surrounded significantly by trees their cases where once I get down near the ground, I can get a GPS glitch which can throw up multiple different errors, including EKF variance, GPS glitch, HD OP high error. In some cases manifesting in the drone getting near 2 feet off the ground when landing manually and a glitch can send the drone sideways or other erratic behavior, which can be quite alarming. I’ve recently started using land mode this past week as I find it more relaxing to try to land on its own and I bought the 5 foot orange hood, man which I’m enjoying so far for multiple reasons. The question I’m trying to sort out is whether or not land mode would still be just a subject to a GPS glitch and horizontal movement trying to compensate for a GPS glitch even though there’s documentation that land only uses GPS if it’s available, but that does not answer the question of a glitch. Ideally, I wish that I could have a land mode that would use ALTHOLD mode, which I find to be my most safest method of landing to avoid any type of glitches. Land mode does not appear to offer a non-GPS mode at least I don’t see a simple method. Any thoughts?
Land mode w/o GPS is essentially AltHold. Land (no GPS) = AltHold + auto-descent + auto-yaw-hold. So what’s the problem?
The issue is as I want to touchdown with GPS off because sometimes in the last few feet, I can get a GPS glitch when it gets down towards the asphalt and I want to do a land with ALTHOLD but you cannot disable GPS from land mode
Why don’t you add optical flow then you don’t need the GPS to hold position during landing.
I wasn’t aware about that, but I just looked at it and it’s an interesting idea. I’ll check into the weight and cost and maybe do an experiment with one. However, my goal is quite simple. In my driveway I like to take off and ALT hold until it gets about 10 feet off the ground then I switched to GPS LOITER. Landing by any method is the same. I like to drop to ALTHOLD below about 10 feet and that solves any of the EKF variance, GPS glitch, other factors that happened frequently when I get down towards the ground. I’m just looking for a way to do an automatic land without GPS but it’s more complicated because if I do RTL, then I want it to land from any height while fine-tuning manually horizontal movement. Then when it gets down to about 10 feet off the ground, I stop the automatic land and typically land manually in ALT hold. What I’m looking for is a way to switch out of GPS whenever I want to and have an ALTHOLD land mode. I know this is not simple. Perhaps there is a LUA method that I can turn off GPS on the fly. I’ve had too many experiences of takeoff and landings that I’ve gotten crazy due to multiple factors, possibly magnetic, possibly that I’m surrounded by trees in GPS will glitch,
There is RCx_OPTION,65 for GPS Disable.
Set up a switch and channel to use, but I would use this very cautiously at first, and keep in mind accidental flip of that switch could be disastrous.
Optical Flow is the best suggestion, they are very tiny and light-weight too.
I have PIXHAWK6C and I have two of TF mini, one facing down and one facing front. There are several options available on Amazon
MTF-02P is really fast and can get here on Amazon in 2 days but has built-in rangefinder, which I don’t necessarily need, but it may be part of the data stream.
Holybro pwm3901 uart version will take a bit longer to arrive maybe a week.
If I don’t need a rangefinder, can I still use the MTF and keep TF Mini? Is or I’ve read on some searches that I should keep things simple and go with the PWM3901
While waiting on the HOLYBRO optical flow center PWM 1901. I went ahead and installed this version CV0850 today that I got overnighted from Amazon. I have it connected and with very brief testing, I can see some values changing when I move a piece of paper in front of the sensor, which has some patterns on the paper about a foot away One Direction. I can see a minus one and then I can see a positive one moving the other direction occasionally I can see a +2 or -2. I learned how to get this device connected based on the suggestions on this thread, so I’ll try to test it with a flight tomorrow. My only question is should I try to test it with a method to enable it or disable it with the script so I can check it and if things go crazy, I could turn it off real fast. I’m not 100% certain whether this device is intended to be left on at all times in which case it seems like it would try to compete with GPS. My goal is to try to land with the center without GPS in ALTHOLD mode to try to get horizontal stability over a landing pad that I bought called the hood man which is a 5 foot diameter orange pad with a large H in the middle. I’m hoping to switch out of loiter above the pad and switched to ALTHOLD and then I have a LUA script such that I can slow my descent rate down to a very slow rate. I’m curious to get a response to see if everybody is leaving this sensor on at all times or if you only use it on special occasions.
You can leave it on. As long as you follow the instructions in the wiki the drone will revert to the GPS/Baro when the sensor is out of range. I’ve never used that exact sensor, but in my experience with others in this price range don’t expect more than half the advertised range.
But I can’t help but think this is just a bandage on the real problem. What is causing the issue with your GPS?
I have got nearly all of the advertised range INDOORS with an MTF02
Yes, fair point. Indoors they work better. But outside … not so much.
the optical flow itself will work outdoors but the small rangefinder on it wont, so if you already have a good rangefinder for altitude then just get a optical flow module without a rangefinder.
I got this module cv0850 in today and probably eight hours later still didn’t get it to work. Using the browser tool I can see XY ranges anywhere from -1500+1500 that make logical sense with the way I move my hand over the camera. Also, the distance displays well. The online tool shows it is set to APM ARDUPILOT mode and I changed it from front to down 25. It definitely saved because I could reconnect multiple times and see the settings were saved. On PIXHAWK6C connected to FMU debug port, which is supposed to be a legitimate UART for any purpose, serial6 option equals two, 115, rangefinder1 type equals 10 MAVLINK, MAVLink option 2, flow type equals 5 MAVLINK1. On mission planner under Status OPT_X I can see a range from -5 to +5 likewise for OPT_Y. Distance never changes from 0 on rangefinder one, and also monitoring sonar just in case it showed up there.
I’m puzzled why I can see ranges on their evaluation tool from -1500+1500 approximately for X and Y but the range hardly exceeds plus or -5 on XandY. Control F MAVLink Inspector shows distance parameter showing the settings that I have selected i.e. type 25, min .2, max eight etc.
I’ll get in the holy bro PWM1901 Monday and over the weekend trying a different version on Amazon.
Seems like a massive investment of time to get optical flow to work.
Edit. I decided to abandon the combination unit because the range is lower so I’ll stick with TF mini – S for range down and test the Holly bro PWM1901 and see if I can get that system working.
Edit2. As a quick experiment, I moved from the FMUD bug port on PIXHAWK6C up to TELEM3 and now the values look better and the range is now working whereas it would not work on the debug port. After much searching between GPT and Google, the consensus was that there was no distinction between the serial ports on the debug, but all I did was move up to a different port and now the rangefinder is working so now I’m going to configure a switch to do the calibration in flight per the video instructions with this particular device so at least I go to a learning curve of the set up
