How about add a new feature to enable auto level trim?
I am considering is it possible to have a new feature to enable auto level trim. When the accelerometer is not properly trimmed, the quadcopter may have drift to one direction. Then the accelerometer will have constant value reading in some direction. Then it can use the readings from accelerometer to make corrections so that the quadcopter not drifting any more.
I am actually suffering from the drifting problem. Every time when my quadcopter hit the ground, the board will have small angle changes. Then I need to retune the board and sensor alignment again, and it seems like I never able to have a real POSHOLD and ALTHOLD. I think if it can use the knowledge of accelerometer to adjust the drifting problem, the POSHOLD will be much better.
How do you think about this? Thanks~
https://github.com/iNavFlight/inav-configurator/issues/61 ?
pon., 9 sty 2017 o 16:43 użytkownik Tairan Liu [email protected] napisał:
I am considering is it possible to have a new feature to enable auto level trim. When the accelerometer is not properly trimmed, the quadcopter may have drift to one direction. Then the accelerometer will have constant value reading in some direction. Then it can use the readings from accelerometer to make corrections so that the quadcopter not drifting any more.
I am actually suffering from the drifting problem. Every time when my quadcopter hit the ground, the board will have small angle changes. Then I need to retune the board and sensor alignment again, and it seems like I never able to have a real POSHOLD and ALTHOLD. I think if it can use the knowledge of accelerometer to adjust the drifting problem, the POSHOLD will be much better.
How do you think about this? Thanks~
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1072, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7Am_sNVpMRrT1vF-qEtm1KdfUj15EEks5rQlWigaJpZM4LeZUb .
-- Pozdrawiam, Paweł Spychalski
@DzikuVx I think it is pretty similar. I think that one actually means when FC is still on the ground? If we can adjust that in the process of flight, that will be great. Because once the quadcopter taking-off, it may hit the ground or any object if manually control it, then the flight will be awful after that.
In the process of flight you can use https://github.com/iNavFlight/inav/blob/master/docs/Inflight%20Adjustments.md
There is no way to do fully automatic inflight acc level calibration since FC does not have "secondary" sensor that says when UAV is level. GPS can not be used, since it also takes wind drift into account
@DzikuVx Thanks for that page. I think when UAV is not level and drifting there will be readings from acc sensor, so this reading from acc sensor is not enough to indicate it is not level when there is no wind? Yes you are right about the wind drift. This is really a problem.
You're missing the point. The FC already uses the accelerometer reading as an error feedback to level the mc, so the (average) ouput of the accelerometer on the x and y axes are zero while it's drifting.
In other words, in order to perform an auto-calibration the FC needs different position/speed feedback to know when it's "still", the accelerometer can't do that (unless using advanced algorythms that notice the slight changes in acceleration due to the air resistance at drifting speeds, but that's highly unlikely to work reliability with our hardware). It may work using the GPS, but i don't know if it's precise and accurate enough for the job.
@liutairan Actually @rb1205 is correct. As far as copter is concerned it is flying perfectly level, however if thrust vector is not aligned with FC Z-axis aircraft will be drifting. FC is unaware of such misalignment. Theoretically GPS can use used to compensate, but it's complicated, not reliable and will probably introduce more bugs than fix.
@rb1205 Yeah, I see, you are right. This is really a problem. I think my drift problem actually comes from the hard landing or collision with the ground so that the thrust vector keeps change every time it hits the ground then the board alignment changes.
@digitalentity You are right, that is the real reason of the drifting. I think my drift problem actually comes from the hard landing or collision with the ground so that the thrust vector keeps change every time it hits the ground then the board alignment changes. I really should change to some other frames which the quadcopter arms and body connection more stable but unlucky I am not able to. Thanks~
@digitalentity Then is it possible to change the acc alignment angles during flight? For example, can I observe the UAV still or not, then use some settings to change the board alignment values and save it rather than using the joystick to adjust them? Because I wish to have autonomous flight without joystick only with a ground control station and I have a swarm of quadcopters to do the autonomous flight I really don't have so many hands to operate them. LOL.
There is already, it's called inflight accelerometer calibration. But still, even if you calibrate your accelerometer ange perfectly you'll still have drift: ground/walls distance, CoG position, plays in the assembly, temperature gradients... every slight difference in any of those is going to produce drift to some degree, that's the nature of stabilization through accelerometers, and that's not even considering wind. Levelled flight is not able nor intended to achieve position hold alone, you'll need a GPS for that.
@rb1205 Actually I do have a GPS, I thought if we can make it work better without GPS, then it will do more than better with GPS. Because GPS might not very accurate for small distance errors, I guess adding GPS will make it work better but still have some limitations. OK, I see now. Thanks you~
By the way, the inflight accelerometer calibration http://tldrify.com/elw given by https://github.com/iNavFlight/inav/wiki/Multirotor-guide said "... attempted to calibrate with this procedure and I was not successful ..."