Re: Questions about the Hightechnic Gyro Sensor
The offset is dependent on many things like temperature. The offset is different for each sensor, as it's an analogue sensor. My one tends to have an offset of around 619-625 or so, depending on planetary alignment.
The offset is best calculated as average of numerous measurements. You may want to take a look at my driver suite, specifically the hitechnic-gyro* files. Unless you're using a Sensor MUX, it is safe to ignore the SMUX files. You can download the suite from the link in my signature. The driver has a function that allows you to calibrate the gyro. Note that you should do this every time you start the program and that your robot should be perfectly stationary while you do this.
I would also advise you to upgrade to ROBOTC 3.55 B2, as there are bugs in 3.54 that affect things like casting from ubyte to int, which in turn affects my driver suite. You can find ROBOTC 3.54 B2 here: viewtopic.php?f=52&t=5122
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page