gpxlBen / VESC_Logger

iOS Code to enable VESC communication via Adafruit UART Friend
22 stars 9 forks source link

To do in VescController.m on line 196 #3

Open lukebelz opened 7 years ago

lukebelz commented 7 years ago

Hi,

On line 196 of VescController.m, you left a todo that I believe is the root of my problem. I'm trying to use your VescController class to send a COMM_GET_MCCONF request. However, I get no response. COMM_GET_APPCONF works, as does all of the FOC detection, firmware, ect.

What I noticed is in the process_incoming_bytes() function, it goes to case 3, which has this:

TODO: add Message Handling > 255 (starting with 3).

I was wondering if you could complete this or leave any info about this function so I could complete it?

gpxlBen commented 7 years ago

Hi @evoheyax,

Great to see you using my code. I haven't touched this for about a year, so it's a bit rusty in my head!

I don't plan on updating this anytime soon, but I took my inspiration from Vedder who created the VESC. It looks like he completed the function in C, which you could probably convert yourself - take a look here:

https://github.com/vedderb/bldc-logger/blob/master/packetinterface.cpp line 100

Good luck!