![]() Recording data separately on a phone using something like Track Addict or Race Chrono can use the phone accelerometers to record that type of info and (at least with RaceChrono) actually give you a separate Lean Angle field without any need for calculating it. On my Hero 8 Black, I see Time, Latitude, Longitude, Altitude, and Speed which (if there's a good enough satellite connection) can be interpreted by RaceRender into AccelX and AccelY (calculated data fields are noted by parentheses), but I don't see any AccelZ field. I just figured that would be the easiest way for me to understand which fields you have, but I'm not sure that a GoPro by itself would have enough fields to calculate all of this. That would be the easiest way to get the data in a sharable format. JeffIf you right click on the data Input File, there's an option to Export > CSV. Is there an example of a enhanced object/gauge that works on GoPro data? Is there somewhere the list of attributes available to the enhanced scripting language from a GoPro video? Still loking around for myself otherwise. Coding isn't an issue but since I am getting data from a GoPro file I have since realized I dont even have the CSV file to understand what fields I have available to base the gauge on. ![]() I did not realize the Enhanced Script Editor was available. ![]() rro file that I'll upload here onto your computer once and include it in a template that can be used for any video. If you can describe what you would like the gauge to look like and provide a sample CSV, I can look into implementing it. Thanks, JeffEditing the CSV itself would be the most straightforward, but that would also be the most time consuming since you would need to do it for every video that you make.įortunately, all of those functions are available in the Enhanced Script Editor. I suppose the other option is to edit the CSV that it creates from the GoPro data and add the calculation there? Is there any way in RaceRender to do complex formula such as that for a custom field? I only see simple calculations in the UI. I too have the other application I think he means that does the calculation to determine lean and I assume it uses a formula like I post above. I found this post while trying to determine how I can get lean angle readings from GoPro data stream like the poster. Roll = 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. |