rusefi-1/firmware/hw_layer/accelerometer.h

28 lines
571 B
C
Raw Normal View History

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
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2016-05-19 19:03:18 -07:00
*/
#ifndef HW_LAYER_ACCELEROMETER_H_
#define HW_LAYER_ACCELEROMETER_H_
2017-08-18 13:18:11 -07:00
#include "main.h"
#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
#endif /* HW_LAYER_ACCELEROMETER_H_ */