11/20/2023 0 Comments Racerender with moviemakerRoll = 180 * atan (accelerationY/sqrt(accelerationX*accelerationX + accelerationZ*accelerationZ))/M_PI Īs you can see roll (lean angle) is based on readings from all 3 acceleration readings. Pitch = 180 * atan (accelerationX/sqrt(accelerationY*accelerationY + accelerationZ*accelerationZ))/M_PI I have used the following formula to calculate pitch and roll based on raw accelerometer readings in microcontroller code:ĪccelerationX = (signed int)(((signed int)rawData_X) * 3.9) ĪccelerationY = (signed int)(((signed int)rawData_Y) * 3.9) ĪccelerationZ = (signed int)(((signed int)rawData_Z) * 3.9) You would likely need to change the Range from -1.57/1.57 to -90/90 at that point though. Then you could use the custom field in the gauge for something that might be more comprehensible. If you prefer looking at degrees, you could create a custom field at the bottom of the Input File Config where you take the Gyroscope z field and multiply it by 57.2958. Realistically, you're probably only going to get numbers between -1 and 1 since 1 radian is 57.2958 degrees. If you set the field to Gyroscope z, then you should be getting values between -1.57 (bike on the ground on the left) and 1.57 (bike on the ground on the right). You should be able to copy that gauge (or create your own) into the Styles folder, and then when you next open RaceRender, it should appear in the list of Gauges. If you have the camera mounted on your helmet, I would think that you would be keeping your head mostly level through the turns, and the GoPro data wouldn't tell you much of anything about lean angle.Ī gauge like this should work: Lean Angle - Gauge.rro This would probably only work if the camera is physically attached to the bike itself though. I don't think this is built in, but I would think that Gyroscope (z) would be the field that you would want.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |