Pexeus / LTE-Car

42 stars 12 forks source link

steers right when i steer left #9

Open Keshin1988 opened 7 months ago

Keshin1988 commented 7 months ago

Can you please show me or explain how to invert the steering servo. my servo steers opposite to what i steer on the gamepad controller.

EXTRA:
is there a way to get this to work with a webcam instead of the raspberrypi camera? i just get an error saying no camera when i connect the webcam (with the rpi camera disconnected) however i can see the webcam is being found on the usb.

Pexeus commented 7 months ago

For the steering, i already implemented this, just switch the "reverse" variable :) image

for the different webcam: Definetly doable, but u will have to modify the code

Keshin1988 commented 7 months ago

Awesome thank you. I'm so close to it all working. I can drive on wifi now. Next is to get it working on the 4g...

I wish I knew how to code that in I very basically understand some of code I read. I'll have to learn it.

Keshin1988 commented 7 months ago

thank you that worked, before i close this topic is it possible to use my Logitech steering wheel and pedals with this? what setting would i change please

second thing, can you tell me what settings i need to change to run over 4g, i have a 4g usb. im just unsure which settings need changing to make it connect over 4g,

currently wifi control is working but i need 4g

Pexeus commented 7 months ago

the gamepad is 99% doable, just check this out: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API

and then implement it here: server/client/src/control

For the 4G you ned a Cloudserver, im sure ull find the rest out urself ;)