GithubHelp home page GithubHelp logo

Comments (5)

descampsa avatar descampsa commented on June 15, 2024

Yes, i mostly agree with you that the convenience functions do not cover everything that they should, and that they lack consistency.
I just don't want it to become a list of getter/setter for each register, there would be very little added value compared to the read/write function, but i don't think it is your intention.

So ok for your two first points and the fourth point. For the third point, i would prefer the return value to be the complete status byte, even if it means slightly more typing to check the result.

So that we do not do the same work twice, a propose that i work on the existing functions (in a separate branch for now, since it can break existing code), and let you propose/implement new functions that you think would be usefull.

from ardyno.

eecharlie avatar eecharlie commented on June 15, 2024

from ardyno.

descampsa avatar descampsa commented on June 15, 2024

You'll see my pull request is consistent with this except for the return
code type. I can fix this and resubmit.

Yes, it looks good, please fix the return type.

I don't have time to implement everything that should be done, I will just
be doing the functions I need for my application :)

Sure, it is already good ;-)

Incidentally any tips on tuning feedback control parameters? I have a very
simple 1dof mechanical load and the servo bounces a bit before stopping
which is worse than a $10 non digital servo!

Yeah, the control algorithm of the AX-12 is not so great in that regard.
It usually help to increase the compliance slope, probably to the max value (128) if you want no bounce at all.
You may also increase the compliance margin, but then you lose position accuracy.

from ardyno.

descampsa avatar descampsa commented on June 15, 2024

Regarding the compliance slope, it seems that the documentation is wrong about it.
The documentation says that the slope has only 7 steps, and that, for examples 254 is interpreted the same as 128, but from my tests, 254 clearly results in a higher compliance slope than 128.
On the other side, 255 is probably a 'special' value, because result in a very small slope.

from ardyno.

eecharlie avatar eecharlie commented on June 15, 2024

That sort of information would be great in a wiki attached to this repo. As I've gotten to know these servos better (the AX-12A anyway) the documentation is pretty spotty and sloppy.

Still waiting on anything from me on the pull request?

from ardyno.

Related Issues (16)

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.