change 4 spaces to tab for src/BulletInverseDynamics

fix unit test in single precision compilation (use delta t of 0.01 if BT_ID_USE_DOUBLE_PRECISION is not defined)
This commit is contained in:
erwincoumans
2015-11-19 12:08:04 -08:00
parent 069936218a
commit 75d657ec85
15 changed files with 2097 additions and 2089 deletions

View File

@@ -248,7 +248,11 @@ int calculateDifferentiationError(const MultiBodyTreeCreator& creator, idScalar
// first test: absolute difference between numerical and numerial
// differentiation should be small
TEST(InvDynKinematicsDifferentiation, errorAbsolute) {
#ifdef BT_ID_USE_DOUBLE_PRECISION
const idScalar kDeltaT = 1e-7;
#else
const idScalar kDeltaT = 1e-2;
#endif
const idScalar kDuration = 1e-2;
const idScalar kAcceptableError = 1e-4;