Navigation-rewrite news and changelog
This is to track and discuss progress of nav-rewrite branch
Congrats on your latest test flight, looks promising :)
I'm liking the progress, hopefully the crash during rth didn't do too much damage.
Not much - broke an arm and a prop, teared off a wire from one motor. Lots of crashes during development of completely new code was not unforseen and I've got alot of spare parts, fortunately they are very cheap on eBay. I think I've found an issue with RTH, wil try and test again in a few days. Currently the thing that bothers me most is not working manual control during PH (#11) as I have no idea why this is happening...
Are nav pids transferrable from harakiri?
Not really, PIDs behave differently than Harakiri's.
DE do you have plans for also improving bmp085 althold. I recall harakiri has done some improvements for that baro, but when I was glancing that code I couldn't understand a lot.. :)
Probably yes, but currently I'm focused on getting navigation working. When it will be mostly flyable we can think of improving things.
@marksev1, I've looked at Harakiri code for baro, it looks like we've recently implemented the similar filtering in 6e041c57dd00f6e8ec195dc87e3402d9bd8a34c9.
Digitalentity, what the latest status on ph, rth and ah?
@marksev1 AH and PH work to certain level - require tuning, but algorythms are stable enough. RTH is not so good. Flight test of RTH today was a complere disaster. Nothing related to RTH seem to work. But that's fine - I can recall times when even AH wasn't working.
Awesome work! I really hope you can make this work so it will be reliable!
@strips Thanks! Code is getting more stable every day, improvements are made all the time. I hope I'll get this code past "flyable" milestone in about a month.
Some new changes are ready to be flight-tested. New binary cleanflight_NAZE.navigation-rewrite.Aug28.hex is built from 25a0e4f0e2cb47ad1729e835c476ce6633775e34 and is available in my Dropbox. Most significant changes:
- code refactoring (slight possibility I might have broken some functionality)
- re-added sonar support for low altitude ALTHOLD, needs careful testing
- added compensation for BARO drift from GPS, needs testing - enable ALTHOLD and hover for couple of minutes - shouldn't drift for more than 0.5-1 meter
- PH changes, should tolerate wind better
- RTH changes, verify that PH is working before testing this
- reworked landing code, should now descend faster.
Bugfix build (commit da8751c9f52c4e5e92574a08924ad0d8bb061c58). New hex file: cleanflight_NAZE.navigation-rewrite.Aug29.hex Changes:
- Baro offset correction from GPS removed - GPS altitude turned out to be even less reliable than baro. Using GPS altitude will only be available for fixed-wing if no other source of altitude is available.
New builds: cleanflight_CC3D.navigation-rewrite.Sep06 Changes:
- Improvements for XY-controller code
- New set of default settings. Looks like #4 is going to be closed soon.
Posted a thread on RCGroups for discussion: http://www.rcgroups.com/forums/showthread.php?t=2495732
New build: Sep08 Changes:
- Updated to latest master (including new failsafe functionality)
- Improved ALTHOLD and POSHOLD (GPS_CRUISE) mode, should now stop faster when pilot releases the stick
- Added a filter to GPS coordinates, should reduce GPS noise
Build 0910 uploaded. Updated to include changes from latest master (including full support for external baro/mag). Some CLI parameter names changed, new navigation-related CLI parameters added. This build includes stronnag's implementation of LTM. support for dodo baro sensor.
Just uploaded a 0914 build. Changes:
- (tested) GPS update rates of >2Hz are now supported
- (tested) Limited pilot's ability to control altitude during RTH only to HEAD_HOME phase. This fixed a bug that prevents autolanding if throttle stick > 50% when landing
- (untested) GPS loss during PH/RTH should be now handled properly - force ANGLE mode and wait for GPS to restore. Allow pilot to control the copter pitch/roll directly. In future this will change for RTH mode and will force autolanding
This build also includes support for LTM telemetry and BMP280 baro.
Uploaded a 1007 build Changes:
- Rebased to latest "master", support for BMP280 and Naze rev.6 out of the box
- (partially tested) Model-based inertial position estimator (#23) for PH/RTH
- (partially tested) Dead reckoning possibility (poshold without GPS)
- (untested) Improvements for autonomous navigation code (PH/RTH)