i while ago i modded a ps5 controller so that i could output potentiometer values from a arduino and digi pot to the solder points on the ps5 controller and output switches from the arduino to buttons on the controller.
this basically gives me a controller that i can change analog stick settings on and have remappable buttons on the back of the controller.
recently i added a mpu 6050 from a old gyro mouse project i made years ago, after deciding i would use the controller more than i have, or ever will use the gyro mouse. I use the mpu 6050 to output a gyro mouse to pc or to emulate a gyro mouse on a ps5.
i have coded the gyro aim so that 1 360 degree rotation of the controller makes the in game character rotate 360 degrees.
the problem is that because i didnt think of adding a gyro chip when first modding the controller there is only room for the mpu 6050 on the top right of the controller inside its casing, instead of having it in the middle.
this causes aim to be slightly off when compared to the perceived point of rotation on the controller.
so my question is, in code, how can i move the center of rotation of each gyro axis on the mpu 6050 so that there centers of rotation are ruffly in the middle of the controller?
I’ll take a SWAG (Scientific Wild-Assumption Guess) and suggest that you might be able to adjust the readings by adding or subtracting an offset. I really do not know for sure.
i am pretty sure yea. imagine removing the steering wheel from a car and then re attach it at the edge of the steering wheel, then try to steer the car. and i can feel the difference between my controller and various controllers on pc using software to use the controllers built in gyro chip as a mouse
i dont think this will work because i all ready do that to stop the gyros drifting like you would with most gyro outputs and if you were thinking of the chips angle values around there axis's from 0 to 360, im not talking about those im talking about the gyro values witch are more like mouse values meaning they should be 0 if the chip is not rotating
this seems to do it but now i need to figure out what values for centerX and centerY correlate to the position on the controller i think the center or rotation should be