2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file vehicle_speed.h
|
|
|
|
*
|
|
|
|
*@date Dec 26, 2014
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-04-01 18:32:21 -07:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2018-09-16 19:25:17 -07:00
|
|
|
#include "global.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2017-01-16 13:03:37 -08:00
|
|
|
/**
|
|
|
|
* @return vehicle speed, in kilometers per hour
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
float getVehicleSpeed(void);
|
|
|
|
void initVehicleSpeed(Logging *logger);
|
2017-01-16 13:03:37 -08:00
|
|
|
void setMockVehicleSpeed(float speedKPH);
|
2017-02-05 20:04:55 -08:00
|
|
|
bool hasVehicleSpeedSensor();
|
2017-04-05 15:08:36 -07:00
|
|
|
void stopVSSPins(void);
|
|
|
|
void startVSSPins(void);
|