AP_Compass: VRBRAIN add #if !defined() for VRBRAIN 4.5 boards.

This commit is contained in:
Emile Castelnuovo 2014-11-10 17:08:56 +01:00 committed by Randy Mackay
parent 45e3b0e9cd
commit 412de3cf76

View File

@ -111,9 +111,10 @@ bool AP_Compass_VRBRAIN::read(void)
// a noop on most boards // a noop on most boards
_sum[i].rotate(MAG_BOARD_ORIENTATION); _sum[i].rotate(MAG_BOARD_ORIENTATION);
#if !defined(CONFIG_ARCH_BOARD_VRBRAIN_V45)
// override any user setting of COMPASS_EXTERNAL // override any user setting of COMPASS_EXTERNAL
//_external.set(_is_external[0]); _external.set(_is_external[0]);
#endif
if (_is_external[i]) { if (_is_external[i]) {
// add user selectable orientation // add user selectable orientation
_sum[i].rotate((enum Rotation)_orientation.get()); _sum[i].rotate((enum Rotation)_orientation.get());