Skip to content
Snippets Groups Projects
Commit 7d46e095 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changed the sign of the X axis of the gyroscope to make it coincide with the real robot.

parent 11a23e79
No related branches found
No related tags found
1 merge request!8Kinetic migration
......@@ -928,7 +928,7 @@ namespace darwin_controller
gyro_x=500.0;
else if(gyro_x<-500.0)
gyro_x=-500.0;
gyro_data[0]=(int32_t)(gyro_x*1000.0);
gyro_data[0]=-(int32_t)(gyro_x*1000.0);
gyro_y=msg->angular_velocity.z*180.0/3.14159;
if(gyro_y>500.0)
gyro_y=500.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment