Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set RPMs on slave VESC through CAN #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

joseguerr
Copy link

The function setRPM will set the value for the slave VESC, it will no longer set for the master VESC!
VescUart cpp modified.txt

FW3.49 and above compatibility,
Use COMM_GET_VALUES_SELECTIVE command.
Add functions for requesting PPM to Master VESC over CAN and local VESC (in case of hooking up UART to Master).
FW3.49 and above compatibility,
Use COMM_GET_VALUES_SELECTIVE command.
Add functions for requesting PPM to Master VESC over CAN and local VESC (in case of hooking up UART to Master).
*Added function for VESC FW version check
*Code a bit cleaned
Added all values in deserialization to be uncommented regarding the used mask.
Added : SoC, cells number and cells voltages values pulled from DieBieMS over CANbus
Added :
- getLocalVescNun() : retrieve the local throttle percentage of the Nunchuk app (used by the Wand)
- getMasterVescNun(uint8_t canID) : retrieve the throttle percentage of the Nunchuk app from a VESC on CANbus
- Examples sketches for using it
@joseguerr
Copy link
Author

I apologize for the very late late reply @SolidGeek , I used these capabilities in order to control two motors in a dynamometer (aka motor test bench). Basically I needed one motor to impose load and the other (test motor) to react to that load, taking all the measurements in the process. Hope it helps!

@SolidGeek SolidGeek added the enhancement New feature or request label Nov 6, 2020
@SolidGeek
Copy link
Owner

Thanks for the request, I will be looking into these changes shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants