zeroGyro()
描述
计算陀螺仪的偏移量,并将陀螺仪归零。
语法
FreeIMU1.zeroGyro()
参数
FreeIMU1:FreeIMU1 型别的变数。
回传
范例
#include <FreeIMU1.h>
#include <Wire.h>
FreeIMU1 myIMU;
void setup()
{
Serial.begin(115200);
Wire.begin();
delay(500);
myIMU.init();
delay(500);
myIMU.zeroGyro();
}
void loop()
{
}
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
