Git Product home page Git Product logo

Comments (3)

AntumArk avatar AntumArk commented on July 17, 2024

You could look to VESC code for help. They may have solved that problem.

from bipropellant-hoverboard-firmware.

btsimonh avatar btsimonh commented on July 17, 2024

@EmanuelFeru -
pls look at my test branch I just pushed: https://github.com/bipropellant/bipropellant-hoverboard-firmware/tree/separateleftright

I find some interesting results when looking at slow speed positon control....

This implements STATIC use of your sine tables.
On serial, use 'If\n' to select 'fine control'.
Then keys W/S will increment through the 36 positions in rtConstP.pooled12 (etc.).
keys A/D decrease/increase current.
Take the current up to ~80, then increment the position.
q to exit/disable.
only controls one wheel.

The movement is
1/ more than I expected?
2/ not even? (4 bigger steps, 2 smaller steps).

The non-even could mean we need 'non-linear' sine tables for smooth running? Could this be one of our issues?

br,
s

p.s. also tried rtConstP.pooled15-17, same deal.

from bipropellant-hoverboard-firmware.

EFeru avatar EFeru commented on July 17, 2024

Aa yes, Now I put the LEFT and RIGHT wheel code together and let the Embedded Simulink coder do the re-usability of functions optimization. So, it automatically reuses functions and pieces of code where it can.

I can generate code for each wheel separate: BLDC_controllerLeft_step(), BLDC_controllerRight_step(), but then the code will increase not really double but definitely will increase.

from bipropellant-hoverboard-firmware.

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.