I have a DAKEFPVH743 from AliExpress, which comes with Copter 4.8.0dev. It works fine, but I found that the onboard 16M black box doesn’t record logs properly; much data is missing, and 16M storage is kind of useless for tuning. So I modified it to use an SD card slot and altered the hwdef.dat in my local build to accommodate the change. I built Copter-4.8.0 for the board, and it works fine. It reads and writes logs to the SD card. It recognises the new LSM6DSVK320 IMU. It shows a baro error when GPS is connected and powered only via USB, but no error when connected to battery, which has been discussed in another topic.
After tuning, I found that it has a lag problem in loiter mode. Not drift randomly, but about a 1-second or more delay after the stick is centred. So I wanted to try 4.7
I used this method to roll back to the older version in my local Cygwin64 :
git fetch https://github.com/ArduPilot/ardupilot.git <version>
where <version> is the tag for the stable version for the
desired vehicle: ArduPlane-stable, ArduCopter-stable,
APMrover2-stable,etc.
git checkout -b <your branch name> FETCH_HEAD
git submodule update --init --recursive
I managed to build Copter 4.7.2 and 4.7.1, but they all have the INS fails problem. And to my understanding, the new IMU support was added since 4.7.1. I also tried offical 4.7.2 and it shows INS fail error as well.
So to simplfy the story:
Original DAKEFPVH743 works fine with 4.8.0, but loiter lag
It works fine after SDcard slot added with custom build 4.8.0, but loiter lag.
It shows INS fails error on custom build 4.7.2 and 4.7.1
Same error with downloaded 4.7.2, and not read SDcard of course.
I wondered if there is something I missed in the local build or what.
Questions:
Can I make 4.7.2 or 4.7.1 work on it?
Or if I have to use 4.8.0, how can I work around the lag problem?
Thank you in advance and please let me know if you need more details.
I don’t think there should be any different in behaviour between 4.7 and 4.8.
Re Loiter, I guess you’re saying that it does not slow down quickly enough? .. and I guess this is in relation to a different vehicle?
The most common issues with Loiter in 4.7 is:
Copter’s Loiter mode supports co-ordinated turns by default. This may be disabled by setting LOIT_OPTIONS = 0.
ATC_INPUT_TC parameter scaling and defaults reduced, which affects roll/pitch responsiveness in manual modes. If you have ever modified this parameter value yourself you will need to reduce the parameter by 33% (e.g. multiply by 0.66) to achieve the same feel in 4.7 compared to 4.6. E.g. if the AP-4.6 value was 1.5, when using 4.7 please reduce to 1.0.
It would be good to provide onboard logs if possible
Thank you for your kind reply. I don’t actually know a 4.7 loiter behaviour because it shows an INS error so I can’t fly it. And yes, it doesn’t slow down as quickly as a 4.6, which is on a F405 flight controller.
Thanks for the two parameters. I didn’t change them, so I guess that would be the solution. I will try to update. As you said there shouldn’t be any difference between 4.7 and 4.8, so there is no point to roll back to 4.7. But it would be good to know if anyone has DAKEFPVH743 with new LSM6DSVK320 IMU that can work on a 4.7.1 or 4.7.2.
OK, I don’t think there should be any difference in Loiter behaviour between 4.6 and 4.7. If you’ve got logs from the “fast” vehicle on 4.6 and “slow” vehicle on 4.7 then that would help get to the bottom of it. Alternatively do a flight with the “fast” vehicle on 4.6, then upgrade it to 4.7 and fly it again and see if it’s any different (it shouldn’t be). Of course, if you do this back-to-back comparison please provide the onboard logs here.
Sorry to give you more work but logs are really important to get to the bottom of any issues.
Hi Eric,
if you look to the source of the Ardupilot driver LSM6DSV you can see that on 4.7 and before the LSM6DSVK320 is not supported, but on the 4.8 DEV it is.