0 votes
by
closed
Hi guys,

I have a serial connected micro controller, which prints out x and y coordinates (its basically a touchpad) using baud rate 9600.

It is possible to use these coordinates to drive the car? Like, if you position on the touchpad is top middle, it would go straight forward and top left would drive and turn left etc.
closed with the note: Found solution, thanks!

1 Answer

0 votes
by
selected by
 
Best answer
As long as you could read the values of the controller within Unity, then you should be able to write a script to translate such values to vehicle input.

Vehicles receive input via data bus. See examples here:
https://vehiclephysics.com/advanced/databus-reference/

So all you have to do is to get the values from your micro controller (I can't help you here, but surely there are plenty of resources out there) and then pass them to your vehicle's data bus.
...