Code Monkey home page Code Monkey logo

Comments (8)

Naterater avatar Naterater commented on May 24, 2024

Still the case?

from ardupilot.

peterbarker avatar peterbarker commented on May 24, 2024

from ardupilot.

JimStockwell avatar JimStockwell commented on May 24, 2024

@davidbuzz or @peterbarker
Is the functionality to test that described in
https://ardupilot.org/copter/docs/autotrim.html and
https://ardupilot.org/rover/docs/savetrim.html, or is there more?

Should it include https://ardupilot.org/plane/docs/auto-trim.html as well?

Thanks - Jim

from ardupilot.

peterbarker avatar peterbarker commented on May 24, 2024

@JimStockwell this issue only covers Copter's trim and auto-trim - which is actually a completely different animal to Plane's servo-autotrim. It's also different to Copter's save-steering-trim function!

https://github.com/ardupilot/ardupilot/blob/master/ArduCopter/RC_Channel.cpp#L640 and https://github.com/ardupilot/ardupilot/blob/master/ArduCopter/RC_Channel.cpp#L621 are the functions in question.

from ardupilot.

JimStockwell avatar JimStockwell commented on May 24, 2024

Thank you @peterbarker!

from ardupilot.

JimStockwell avatar JimStockwell commented on May 24, 2024

@peterbarker, in broad outline, do you think an autotest would look something like the following?

Set parameters AHRS_TRIM_X and _Y to something other than zero, check that we don't fly straight and level, simulate auto_trim, then check that we do fly straight and level? Same thing with save_trim?

Thanks for any advice,

  • Jim

from ardupilot.

peterbarker avatar peterbarker commented on May 24, 2024

@JimStockwell that would seem to cover it.

Usually I'm all for more tests. But I actually think Copter's "auto trim" functionality is a candidate for removal.

@rmackay9 do you think this feature is ever used in practise?

Saving Rover's steering trim ought to be a trivial test - possibly wedge it into "Drive Manual". It's essentially zero cost to test - set the option, fiddle the trim to a known bad value, trigger the option, check the trim is equal to the current servo output. I'd be curious to know what this does on our weirder frames, however - Omni and pivot-steering. That might be an interesting experiment!

from ardupilot.

andyp1per avatar andyp1per commented on May 24, 2024

I've used autotrim and I know that people with leaning microcopters do as well

from ardupilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.