mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 21:53:35 +08:00
Merge branch 'redundant_sensors' of github.com:PX4/Firmware
This commit is contained in:
@@ -365,6 +365,13 @@ L3GD20::init()
|
||||
if (_reports == nullptr)
|
||||
goto out;
|
||||
|
||||
/* try to claim the generic accel node as well - it's OK if we fail at this */
|
||||
ret = register_driver(GYRO_DEVICE_PATH, &fops, 0666, (void *)this);
|
||||
|
||||
if (ret == OK) {
|
||||
log("default gyro device");
|
||||
}
|
||||
|
||||
/* advertise sensor topic */
|
||||
struct gyro_report zero_report;
|
||||
memset(&zero_report, 0, sizeof(zero_report));
|
||||
|
||||
Reference in New Issue
Block a user