class MPU6000 :public device::SPI。其他几个与SPI相连的传感器也是如此进行初始化。
有关px4飞控的软件设计,可以看下官网给出的论文:
Lorenz Meier,Dominik Honegger and Marc Pollefeys. PX4: A Node-Based Multithreaded OpenSource Robotics Framework for Deeply Embedded Platforms, ICRA (Int. Conf. onRobotics and Automation) 2015. (to appear)