CurryKitten / CurryKitten-Sim

FPV quad simulator
71 stars 7 forks source link

Add user-controlled RC Car #77

Closed CurryKitten closed 3 years ago

CurryKitten commented 3 years ago

I've decided to add this in for the 0.52b release as it was something I was messing around with previously (whilst procrastinating about rewriting the calibration stuff) so it seemed reasonable to take the code I had and formalise them into the sim properly.

It only took about 30 mins to add the car into the scenarios page and I was able to flip between the vehicles easily.

Screenshot 2021-01-24 at 15 38 01

Thre's a bit more to do though, we need a reset/flip option (although I was previously attaching to auto-flip script used in the AI cars) and currently, I'm using an arcade-style follow camera which works a bit like a brushless gimbal in that it follows the car, but has it's own acceleration/deceleration which looks a bit more natural than a fixed camera. I'd like to add in an FPV view as well where people can pan/tilt with the standard 2 sticks instead of needing sliders.

CurryKitten commented 3 years ago

Ok, I'm happy with this. It's basic, but gives people a taste to see if they want it in the game, and into the online version. I've added in the reset, I've messed with the arcade camera to attempt to stop it going under the terrain if going down a steep hill and I've added the FPV camera option with the throttle/yaw controlling the pan/tilt.