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.