diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-16 11:45:23 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-16 11:45:23 +0000 |
commit | 94bbc4d19ca17984db3262089ba7365fbf62c6de (patch) | |
tree | 5e60aebc4b1d082e721eba9516a123b09508640b /testhal/STM32/STM32F3xx/SPI-L3GD20/main.c | |
parent | 1914bcbbf422a9616dd2c1d6906a8ced3548921d (diff) | |
download | ChibiOS-94bbc4d19ca17984db3262089ba7365fbf62c6de.tar.gz ChibiOS-94bbc4d19ca17984db3262089ba7365fbf62c6de.tar.bz2 ChibiOS-94bbc4d19ca17984db3262089ba7365fbf62c6de.zip |
Improved Gyroscope methods. Updated L3GD20 files and demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9126 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F3xx/SPI-L3GD20/main.c')
-rw-r--r-- | testhal/STM32/STM32F3xx/SPI-L3GD20/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c index d9925b041..ec198ec7a 100644 --- a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c +++ b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c @@ -146,14 +146,14 @@ int main(void) { }
palClearLine(LINE_LED10_RED);
- chprintf(chp, "Calibrating Gyroscope...\r\n");
+ chprintf(chp, "Calibrating Gyroscope sampling bias...\r\n");
chprintf(chp, "Keep it in the rest position while red LED is on\r\n");
chThdSleepMilliseconds(3000);
palSetLine(LINE_LED10_RED);
chThdSleepMilliseconds(1000);
- gyroscopeCalibrate(&L3GD20D1);
+ gyroscopeSampleBias(&L3GD20D1);
palClearLine(LINE_LED10_RED);
#if CHPRINTF_USE_ANSI_CODE
chprintf(chp, "\033[2J\033[1;1H");
|