2016-05-19 19:03:18 -07:00
|
|
|
/*
|
2017-08-18 13:18:11 -07:00
|
|
|
* @file accelerometer.h
|
2016-05-19 19:03:18 -07:00
|
|
|
*
|
|
|
|
* @date May 19, 2016
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2016-05-19 19:03:18 -07:00
|
|
|
*/
|
|
|
|
|
2020-04-01 16:00:56 -07:00
|
|
|
#pragma once
|
2016-05-19 19:03:18 -07:00
|
|
|
|
2017-08-18 13:18:11 -07:00
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
void configureAccelerometerPins(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2016-05-19 19:03:18 -07:00
|
|
|
|
2017-05-15 20:33:22 -07:00
|
|
|
void initAccelerometer(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2017-08-28 19:32:29 -07:00
|
|
|
|
2016-05-23 17:02:39 -07:00
|
|
|
/**
|
|
|
|
* Acceleration/braking
|
|
|
|
*/
|
2017-05-15 20:33:22 -07:00
|
|
|
float getLongitudinalAcceleration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2016-05-23 17:02:39 -07:00
|
|
|
/**
|
|
|
|
* Turns
|
|
|
|
*/
|
2017-05-15 20:33:22 -07:00
|
|
|
float getTransverseAcceleration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2016-05-19 19:03:18 -07:00
|
|
|
|