GithubHelp home page GithubHelp logo

peemouse / vescuart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solidgeek/vescuart

19.0 19.0 5.0 59 KB

An Arduino library for interfacing with the VESC over UART

License: GNU General Public License v3.0

C++ 65.61% C 34.39%

vescuart's People

Contributors

peemouse avatar solidgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vescuart's Issues

How to use COMM_FORWARD_CAN to send commands to slave VESC

Hi there @Peemouse

Have been searching for some code that has this function implemented so I can use it in the arduino, but so far without success. I don't know what are the transformations required in the messages to actually send such command, using the libraries that are currently created.

The idea here was to sent commands to a slave vesc, for instance, setting RPM's. I've tested the CAN master-slave communication through VESC tool and is working well. It is just the code adaptation in c++ that I have no idea how to perform. I don't even know how is supposed to work with such function, while sending a command.

I would appreciate the help of anyone who reads this. Have a nice day!

setLocalProfile Error

Hello,

I'have try to use the setLocalProfile method from your library.
But in my case, it is not working. When I send the data, the VESC reboots or it becomes bricked.

I may be wrong, but it seems to me that the issues are coming from the method used to send float32 over the UART port.
In your library, you're using the buffer_append_float32 method whereas the Vesc firmware is waiting for floats formatted with buffer_append_float32_auto

Does the method was working on your side?

( I'm working on 4.2 Vesc from Flipsky with the 5.1 FW and an Arduino Micro. )

Thanks !

Innacurate reading values using getVescValues

Sorry for the delay @Peemouse I just had left work. I am opening here the issue as you previsouly asked me. Regarding the getVescValues Arduino sketch, i am getting these weird values as seen below.

58190627-dae66300-7cb4-11e9-9531-dcc899ced34d

For context, these values were read for both your previous and updated versions. I used both baudrates at 115200 and added the line UART.setDebugPort(&Serial); after UART.setSerialPort(&Serial1); . Did not touch in the c++ files. Tomorrow, once I am back at work i will proceed with any suggestion that you may find relevant. Again, thank you so much for your help.

strange values from VESC

Hi, we are sorry to bother You, we are students from Germany and we have some troubles with your code.
we get the following Output running the getVescValues example:
Screenshot (2)

We added UART.setDebugPort(&Serial); to your code. The VESC is set in PPM&UART mode.

We also tried using a voltage divider but it didn´t change the result.
Voltage Devider

Do You have any idea, that could solve our probleme. We would appreciate your help.

COMM_GET_VALUES_SETUP_SELECTIVE example?

Hello, im trying to pull a single value (data.inpVoltage) using your COMM_GET_VALUES_SETUP_SELECTIVE that you have implemented but given the basic coding skills im not sure how to go on about it.
i see that i have to calculate the mask which i get 88 in the mask(hex) field.
Do i need to also update struct dataPackage to contain just float inpVoltage; or i leave it as it is?

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.