Julien,
That is really cool and a really great contribution.
I’ll give my bebop a fly with master and see if my AltHold is working ok.
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
A couple of major issues with the optical flow log1) The body rates in the OF message look like copies of the flow rates. That will not work with the EKF. It needs gyro rates accumulated over the same time interval as the optical flow measurements.
2) The EKF optical flow debug log (EKF5) shows that the measure range EKF5.meaRng is flatlined at zero. Without a range finder measurement, the EKF will not go into optical flow mode.
With the altitude log your setup has large accelerometer biases but your barometer is low noise so I recommend that you perform an accel cal and reduce the value of EKF_ALT_NOISE or improved height accuracy. You could reduce EKF_ALT_NOISE from 2.0 to 1.0 and then try 0.5
Julien,
Re the range finder and vehicle angle compensation, it depends upon the beam width of the sensor. So a very narrow beam (like a lidar light which is 5deg or maybe less) should be compensated for but for the maxbotix sonar which has a beam width of more like 30degrees it’s not necessary. At the moment in copter we have a #define which allows turning on the tilt compensation but clearly this isn’t really correct. Really we should have either a parameter to turn it on/off or maybe we can add a method to each sensor driver to specify whether it should be compensated for or not. So for example, if we’re using the Maxbotix sonar we never would, if we’re using the lidar light we always would. It’s a little unclear what we would do in cases where we’re not sure what device is being used (i.e. the analog and pwm range finder drivers could be used for a maxbotix sonar but normally they’re used for the lightware SF02, SF10 sensors).
-Randy
--
Julien,
I think we could try assuming that the terrain altitude is the same as the alt-above-home but we’d have some problems if the two became different because of baro drift or the vehicle actually flies over something that’s higher. The difference between say 7m and 8m probably wouldn’t matter much but the difference between 50cm and 1.5m might upset the EKF’s position estimate.
If I wanted to give this a try, I’d probably temporarily hack the sonar lib so that we can pass in the current_loc.alt to it and then fly it and see what happens.
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/l7NssP3LuMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.