CatchMeIfYouCAN icon indicating copy to clipboard operation
CatchMeIfYouCAN copied to clipboard

Gas and brakes PWM

Open nighto opened this issue 8 years ago • 1 comments

Didn't try the code (don't even have a car) but loved the idea. I was wondering: if you could simulate left and right turn from analog input to digital output - basically working as a PWM, pressing and unpressing the button - you could do the same to the analog input of gas and brake pedals, right?

nighto avatar Mar 28 '17 11:03 nighto

Surely possible, but would involve a lot of rewriting I would think.. currently it looks to be set up to only execute a keypress when an input changes, so if you held the steering wheel at 30 degrees to the left, theres only one input sent to the pi, no way to tell it to rapidly turn on and off

RPINerd avatar Feb 19 '21 02:02 RPINerd