Skip to content

Commit

Permalink
Fixed build error with SENSORS=bosch. #370
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbeanton committed Sep 20, 2018
1 parent 252bdb1 commit 21ab8c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/hal/src/sensors_bosch.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,19 @@ static void sensorsAccAlignToGravity(Axis3f* in, Axis3f* out)
out->z = ry.z;
}

void sensorsSetAccMode(accModes accMode)
{
// Difficult to switch mode so do nothing.
switch (accMode)
{
case ACC_MODE_PROPTEST:
break;
case ACC_MODE_FLIGHT:
default:
break;
}
}

PARAM_GROUP_START(imu_sensors)
PARAM_ADD(PARAM_UINT8, BoschGyrSel, &gyroPrimInUse)
PARAM_ADD(PARAM_UINT8, BoschAccSel, &accelPrimInUse)
Expand Down

0 comments on commit 21ab8c0

Please sign in to comment.