CrashLogger / YY-Series-Vehicles

YY Series fixed wing aircraft, controller, and compatible CS series tank drive vehicles
2 stars 1 forks source link

PS2 joystick inaccuracy #1

Open CrashLogger opened 3 years ago

CrashLogger commented 3 years ago

As I mentioned in some commit details, this is a known issue for some reason, at least when using XXD HW30A brushless motor speed controllers.

These controllers don't seem to get the full PWM signal from the Arduino for some reason, which makes them go full throttle as soon as the joystick leaves the soft dead zone. (They don't have a hard dead zone so I had to code one in myself)

Using a regular 10KΩ potentiometer or a higher quality joystick, however, yields much more precise result for all control surfaces and the motor itself. Another alternative could be to use a separate throttle potentiometer, but in my current set-up I won't be able to fit that.

One of the things planned is to make the motor run on the speed determined by the variation of the potentiometer instead of it's absolute position, but I'm not sure how much that will hurt performance of the poor microcontroller.

CrashLogger commented 3 years ago

To aliviate this in the car, the motors will always snap to full power upon detecting an angle of 30º past the center of the deadzone, not to have unexpectedly uneven torque on each side. The plane will automatically hit whatever it thinks the joystick is telling it to hit still.

CrashLogger commented 2 years ago

Since Precision Update 2, the car motors are being tuned to work with PS2 Joysticks a little better and have some control over speed.

CrashLogger commented 2 years ago

The inaccuracies in the main motor seem to come from the motor driver, I'll be looking into tuning it further ASAP.