Code Monkey home page Code Monkey logo

Comments (7)

pavel-kirienko avatar pavel-kirienko commented on May 26, 2024

Please make sure that the number of poles is configured correctly.

from sapog.

keenanjohnson avatar keenanjohnson commented on May 26, 2024

I've confirmed that this is the case. This test data comes from this motor: http://store-en.tmotor.com/goods.php?id=353 which is listed as 22 poles. That's what I have configured in the parameters.

from sapog.

pavel-kirienko avatar pavel-kirienko commented on May 26, 2024

Assuming that you're using the default PWM frequency of 60 kHz, the maximum mechanical speed for your motor is 6900 RPM, which seems to be compatible with your application (judging by the graphs). So I would suggest making sure that the PID controller is configured properly. You can use the CLI to command the motor a particular speed and observe how quickly it is reached. The speed can be plotted using the UAVCAN GUI Tool.

from sapog.

keenanjohnson avatar keenanjohnson commented on May 26, 2024

Why would that affect the rpm feedback reading?

from sapog.

pavel-kirienko avatar pavel-kirienko commented on May 26, 2024

I am suspecting that the reading is correct, and the divergence is caused by the ESC not reaching the speed setpoint due to misconfigured RPM PID controller.

from sapog.

keenanjohnson avatar keenanjohnson commented on May 26, 2024

What sort of parameters would cause that?

We've verified that our feedback is correct via an external tachometer. So we're confused why the setpoint is so much higher still.

from sapog.

pavel-kirienko avatar pavel-kirienko commented on May 26, 2024

Seems like the integral gain is zero. Check the value of rpmctl_i please. You could also dump all configuration parameters here so we could have a look.

from sapog.

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.