From 81dd00298ae1f61ad9fe9e037cf32cad2e1bbf0a Mon Sep 17 00:00:00 2001 From: JOhn Aughey Date: Fri, 15 Jul 2016 09:37:30 -0500 Subject: [PATCH] Adding fake gyro/acc values for the new design --- src/main/sensors/initialisation.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/sensors/initialisation.c b/src/main/sensors/initialisation.c index 3ba1f439a..908606c36 100755 --- a/src/main/sensors/initialisation.c +++ b/src/main/sensors/initialisation.c @@ -118,9 +118,15 @@ static bool fakeGyroReadTemp(int16_t *tempData) return true; } + +static bool fakeGyroInitStatus(void) { + return true; +} + bool fakeGyroDetect(gyro_t *gyro) { gyro->init = fakeGyroInit; + gyro->intStatus = fakeGyroInitStatus; gyro->read = fakeGyroRead; gyro->temperature = fakeGyroReadTemp; gyro->scale = 1.0f / 16.4f; @@ -143,6 +149,7 @@ bool fakeAccDetect(acc_t *acc) { acc->init = fakeAccInit; acc->read = fakeAccRead; + acc->acc_1G = 512*8; acc->revisionCode = 0; return true; }