Comments (3)
You could look to VESC code for help. They may have solved that problem.
from bipropellant-hoverboard-firmware.
@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.
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)
- Can not connect to target HOT 7
- Low torque at slow speed
- Test UART Example
- Compile error HOT 2
- 2 hoverboards + arduino\raspberry pi
- HallTimeDiff for wheel 0 is sometimes wrong
- No motor movement HOT 3
- How to use nunchuck
- current sensing and measurement HOT 4
- ADC not working HOT 1
- Cannot run the ASCII Protocol HOT 1
- Working Processor swap to STM32 on YST-DXT-J20 V4 Motherboard : no motor control yet
- Support for custom Sideboard firmware?
- Running rough after pin soldering?! Help? HOT 1
- platformIO compile errors HOT 1
- ADC Control Mode with Joystick does not work in reverse
- One sensor board and one control UART
- Special Firmware request for kids
- Crash in protocol_process_ReadValue due to missing Initialisation of newMsg
- missing sscanf argument validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bipropellant-hoverboard-firmware.