Hello. I hope everyone’s season of Vex Robotics is going well. We are currently working on a new robot, and I am trying to take the average of two V5 Rotational Sensors. The sensors are mounted to non-powered wheels on the chassis (one sensor is mounted on the far left and the other is mounted on the far right). They will be used to make a more accurate autonomous because we will be taking the reading of the ‘distance’ directly from a wheel rather than from the motor. When measuring the ‘distance’ from the wheel to the motor, the slop in the gears, wheels, bearings, etc., will cause the autonomous to be less accurate. With this, I have decided to use double as my value because it can be positive or negative with decimals. I’m getting an error that says “no viable conversion from ‘vex::rotation’ to ‘double’” I truly don’t know what is wrong or how to fix this. Below the values is where I am attempting to add the value together and divide them by 2 for an average. This average then would be used in the PID code. If anyone has any ideas on how to fix this issue and is willing to share the knowledge, that would be greatly appreciated. Good luck in Tipping Point.
Left_OD= Left Chassis Rotation Sensor
Right_OD= Right Chassis Rotation Sensor
Code: