ROBOTC.net forums
http://www.robotc.net/forums/

it is possible to calibrate the gyro sensor?
http://www.robotc.net/forums/viewtopic.php?f=1&t=19529
Page 1 of 1

Author:  CrisHaas [ Tue Sep 20, 2016 3:18 pm ]
Post subject:  it is possible to calibrate the gyro sensor?

it is possible to calibrate the gyro sensor connected to multiplexer?

Author:  CARBOT [ Tue Sep 27, 2016 12:36 pm ]
Post subject:  Re: it is possible to calibrate the gyro sensor?

Please specify:
1) Which Gyro
2) Which Mindstorms CPU
3) Which multiplexor

Author:  CrisHaas [ Tue Sep 27, 2016 8:40 pm ]
Post subject:  Re: it is possible to calibrate the gyro sensor?

EV3 Sensor Multiplexer for EV3 or NXT:http://www.mindsensors.com/ev3-and-nxt/23-ev3-sensor-multiplexer-for-ev3-or-nxt
Sensor Gyro : https://shop.lego.com/en-US/EV3-Gyro-Sensor-45505
I am using the code below, this correct? The sensor does not work properly in this way ....

Code:
#pragma config(Sensor, S1,     luz1,           sensorEV3_Color)
#pragma config(Sensor, S2,     luz2,           sensorEV3_Color)
#pragma config(Sensor, S3,     multi,          sensorEV3_Gyro, modeEV3Gyro_RateAndAngle)
#pragma config(Sensor, S4,     dis2,           sensorEV3_GenericI2C)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//


int Sensor3=0,Sensor7,Sensor8;


#include "mindsensors-ev3smux.h";
tMSEV3 muxedSensor[3];

tEV3SensorTypeMode typeMode[3] = {infraRedProximity, gyroAngle,sonarCM};


task main(){

   eraseDisplay();
initSensor(&muxedSensor[0], msensor_S4_1, typeMode[0]);
initSensor(&muxedSensor[1], msensor_S4_2, typeMode[1]);
   /**/
initSensor(&muxedSensor[2], msensor_S4_3, typeMode[2]);


   while(true){
      readSensor(&muxedSensor[0]);

      readSensor(&muxedSensor[1]);

      readSensor(&muxedSensor[2]);




      Sensor3=muxedSensor[0].distance;
      Sensor7= (muxedSensor[1].angle%360);
      Sensor8=muxedSensor[2].distance/10;


      displayTextLine(8,"%d  %d %d %d",Sensor3,Sensor8,(Sensor7));

      sleep(100);
   }
}

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/