aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHolger Steinhaus <holger@steinhaus-home.de>2014-11-11 11:20:03 +0100
committerHolger Steinhaus <holger@steinhaus-home.de>2014-11-13 16:17:35 +0100
commit0fa622f22b90048ad366ac304c2c9339a5c376d3 (patch)
tree8358a1b9b4a67ddacfdd0d0c0325995b2aba8981 /src
parent4d489ef7f4c7626a86b700b6d7144e35000ce387 (diff)
downloadpx4-firmware-0fa622f22b90048ad366ac304c2c9339a5c376d3.tar.gz
px4-firmware-0fa622f22b90048ad366ac304c2c9339a5c376d3.tar.bz2
px4-firmware-0fa622f22b90048ad366ac304c2c9339a5c376d3.zip
UAVCAN: declare mag external again to allow different rotation than the internal mag
Diffstat (limited to 'src')
-rw-r--r--src/modules/uavcan/sensors/mag.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/uavcan/sensors/mag.cpp b/src/modules/uavcan/sensors/mag.cpp
index 4f56038b5..4d473291c 100644
--- a/src/modules/uavcan/sensors/mag.cpp
+++ b/src/modules/uavcan/sensors/mag.cpp
@@ -89,7 +89,7 @@ int UavcanMagnetometerBridge::ioctl(struct file *filp, int cmd, unsigned long ar
return 0; // Nothing to do
}
case MAGIOCGEXTERNAL: {
- return 0; // We don't want anyone to transform the coordinate frame, so we declare it onboard
+ return 1; // We don't want anyone to transform the coordinate frame, so we declare it onboard
}
case MAGIOCSSAMPLERATE: {
return 0; // Pretend that this stuff is supported to keep the sensor app happy