You are here

Switching control scheme during opertion

2 posts / 0 new
Last post
Ben Murton
Offline
Last seen: 1 year 2 weeks ago
Joined: 2023-01-30 22:33
Posts: 1
Switching control scheme during opertion

Hi All,

I recently got back into using VESC's after a number of years out of the game. I have a very particular application this time around.

I would like to use the current control scheme for most of my operations, however, I would like to switch it into position control when the throttle is brought to zero. To hold the motor in a particular orientation.

I am aware this can probably be done by creating my own app. Is there any existing way of achieving this functionality?

Any insight is welcome!

Thanks!

Gos1
Gos1's picture
Offline
Last seen: 2 months 4 weeks ago
VESC Free
Joined: 2022-03-23 12:57
Posts: 11

I am also working on a project where I need to change the control states. There is already a custom app which detects if two sensors are activated and then controls the motor currents to hold the velocity. Maybe I could detect if both sensors are triggered and if not, the custom app can take one of the adc ports to get a remote control signal for accelarating/braking. As for the hardware, I would have to put both, the pin of the remote and the pin of the sensor both to one adc input. I am not sure if this would cause any trouble, yet.

Maybe this post could help a little? :

https://vesc-project.com/node/213