Quote:
|
Originally Posted by Kevin Watson
...As always, if you find a bug in the code or a problem with the documentation, please let me know.
|
Well, I just discovered that I left one step out of the installation instructions found in gyro_readme.txt. Here are the revised instructions:
Nine things must be done before this software will work
correctly on your robot controller:
1) The gyro's rate output is wired to one of the analog inputs
of your robot controller and gyro.h/#define GYRO_CHANNEL is
updated with the analog channel your gyro is attached to.
2) A #include statement for the gyro.h header file must be
included at the beginning of each source file that calls the
functions in gyro.c. The statement should look like this:
#include "gyro.h".
3) Initialize_Gyro() must be called from user_routines.c/
User_Initialization().
4) Process_Gyro_Data() must be called when the ADC software
generates an update. An example of how to do this can be found
in user_routines_fast.c/Process_Data_From_Local_IO().
5) You must select the gyro you're using from a list in gyro.h
and if needed, remove the // in front of its #define.
6) The default angular unit is milliradians. If desired, this
can be changed to tenths of a degree by editing gyro.h
7) A gyro bias calculation must take place using the functions
Start_Gyro_Bias_Calc() & Stop_Gyro_Bias_Calc() described below.
This must be done several hundred milliseconds after the gyro
powers-up and is allowed to stabilize.
8) For optimal performance, you'll need to calibrate the gyro
scaling factor using the instructions above or those included
in gyro.h.
9) Follow the instructions found in adc_readme.txt for
installation instructions.
-Kevin