diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-10 11:37:25 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-10 11:37:25 +0100 |
commit | eed5b99a4a94ce80534d6b999377c3feb7bcecd4 (patch) | |
tree | 6e619e395f7bfea7bc102067ac28df267f4a1ca2 /src/drivers/l3gd20/l3gd20.cpp | |
parent | b2b9665e4460ce25718509b7abb75c4b702c4c5f (diff) | |
parent | c72162cc5ae12e2e64f9a4fb86e205bab51a5b6d (diff) | |
download | px4-firmware-eed5b99a4a94ce80534d6b999377c3feb7bcecd4.tar.gz px4-firmware-eed5b99a4a94ce80534d6b999377c3feb7bcecd4.tar.bz2 px4-firmware-eed5b99a4a94ce80534d6b999377c3feb7bcecd4.zip |
Merge branch 'redundant_sensors' of github.com:PX4/Firmware
Diffstat (limited to 'src/drivers/l3gd20/l3gd20.cpp')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index 176ef648b..a27bc5280 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -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)); |