Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arduino 9轴运动护罩_Arduino_Motion Detection - Fatal编程技术网

Arduino 9轴运动护罩

Arduino 9轴运动护罩,arduino,motion-detection,Arduino,Motion Detection,我在为我的9轴运动盾编译股票代码时遇到了一些问题。我有一个github,里面有我所有的运动库、示例代码和我收到的错误消息 我正在Windows 7 64位上使用Arduino 1.7.1 IDE 我曾尝试使用传感器的示例代码而不是屏蔽,但也无法编译。我已经测试了内置在IDE中的示例代码,以确保我可以编译一些东西,甚至可以使用所述代码与Arduino MEGA 2560进行接口 我搜索过谷歌和Stack exchange,但没有找到任何解决方案 我想不出的主要错误是: " C:\Users\LJI

我在为我的9轴运动盾编译股票代码时遇到了一些问题。我有一个github,里面有我所有的运动库、示例代码和我收到的错误消息

我正在Windows 7 64位上使用Arduino 1.7.1 IDE

我曾尝试使用传感器的示例代码而不是屏蔽,但也无法编译。我已经测试了内置在IDE中的示例代码,以确保我可以编译一些东西,甚至可以使用所述代码与Arduino MEGA 2560进行接口

我搜索过谷歌和Stack exchange,但没有找到任何解决方案

我想不出的主要错误是: " C:\Users\LJI\u eric\Documents\Arduino\sketch\u mar20a\sketch\u mar20a.ino:在函数“void setup()”中:

草图\u mar20a:63:错误:“操作\u模式\u NDOF”未在此范围内声明

mySensor.setOperationMode(操作模式);”

操作模式是BNO055.h中定义的一种模式,是操作模式的数组。我尝试了其他几种模式,但都没有用


我将感谢任何和所有的帮助

在第84行、第87行和第91行,您在字符串中创建了一个新行。你不能在Arduino上那样做。如果你想把一个字符串分成更多的行,你应该在你想打断它的地方结束这个字符串,然后在新行重新开始这个字符串,就像这样

Serial.println("Move the device around and then place it at one position.\n"
"Change the threshold and duration to increase the difficulty level.");

然后您应该将
操作模式\u NDOF
更改为
BNO055\u操作模式\u NDOF

是。。我写的最后一行;)非常感谢你。对不起,我不知道为什么我没有看到那条线。