From 87b9e49ca87cdb102624ff1ca59b0130b3811d65 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 23 May 2016 20:02:39 -0400 Subject: [PATCH] auto-sync --- firmware/hw_layer/accelerometer.cpp | 9 +++++++++ firmware/hw_layer/accelerometer.h | 11 +++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/accelerometer.cpp b/firmware/hw_layer/accelerometer.cpp index 6565865831..37ae7eff73 100644 --- a/firmware/hw_layer/accelerometer.cpp +++ b/firmware/hw_layer/accelerometer.cpp @@ -8,5 +8,14 @@ #include "main.h" #include "lis302dl.h" +void initAccelerometer(DECLARE_ENGINE_PARAMETER_F) { +} +float getLongitudinalAcceleration(DECLARE_ENGINE_PARAMETER_F) { + return 0; +} + +float getTransverseAcceleration(DECLARE_ENGINE_PARAMETER_F) { + return 0; +} diff --git a/firmware/hw_layer/accelerometer.h b/firmware/hw_layer/accelerometer.h index eed9762440..b7bb6782ca 100644 --- a/firmware/hw_layer/accelerometer.h +++ b/firmware/hw_layer/accelerometer.h @@ -9,7 +9,14 @@ #define HW_LAYER_ACCELEROMETER_H_ - - +void initAccelerometer(DECLARE_ENGINE_PARAMETER_F); +/** + * Acceleration/braking + */ +float getLongitudinalAcceleration(DECLARE_ENGINE_PARAMETER_F); +/** + * Turns + */ +float getTransverseAcceleration(DECLARE_ENGINE_PARAMETER_F); #endif /* HW_LAYER_ACCELEROMETER_H_ */