This commit is contained in:
rusefi 2018-10-16 21:27:05 -04:00
parent 78daad4b3e
commit c392ba8844
4 changed files with 57 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "rfiutil.h"
#include "injector_central.h"
#include "vehicle_speed.h"
#include "yaw_rate_sensor.h"
#include "trigger_input.h"
#include "eficonsole.h"
@ -428,6 +429,11 @@ void initHardware(Logging *l) {
#endif
// initFixedLeds();
#if EFI_BOSCH_YAW || defined(__DOXYGEN__)
initBoschYawRateSensor();
#endif /* EFI_BOSCH_YAW */
// initBooleanInputs();
#if EFI_UART_GPS || defined(__DOXYGEN__)

View File

@ -1 +1,2 @@
HW_SENSORS_SRC = $(PROJECT_DIR)/hw_layer/sensors/CJ125.cpp
HW_SENSORS_SRC = $(PROJECT_DIR)/hw_layer/sensors/CJ125.cpp \
$(PROJECT_DIR)/hw_layer/sensors/yaw_rate_sensor.cpp

View File

@ -0,0 +1,33 @@
/*
* yaw_rate_sensor.cpp
*
* bosch Yaw Rate Sensor YRS 3
*
* https://github.com/rusefi/rusefi/files/2476705/Yaw_Rate_Sensor_YRS_3_Datasheet_51_en_2778925323.pdf
* http://www.bosch-motorsport.de/media/msd/downloads/archiv/sensoren/Yaw_Rate_Sensor_YRS_3_Datasheet_51_en_2778925323.pdf
*
* 0 265 005 693 2007-2013 INFINITI G37
* BLACK or GREY GND
* GREEN +12
* LT BLU BUS-H
* YEL BUS-L
*
*
* @date Oct 16, 2018
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "yaw_rate_sensor.h"
#if EFI_BOSCH_YAW || defined(__DOXYGEN__)
EXTERN_ENGINE;
void initBoschYawRateSensor() {
}
#endif /* EFI_BOSCH_YAW */

View File

@ -0,0 +1,16 @@
/*
* yaw_rate_sensor.h
*
* Created on: Oct 16, 2018
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#ifndef HW_LAYER_SENSORS_YAW_RATE_SENSOR_H_
#define HW_LAYER_SENSORS_YAW_RATE_SENSOR_H_
#include "global.h"
#include "engine.h"
void initBoschYawRateSensor();
#endif /* HW_LAYER_SENSORS_YAW_RATE_SENSOR_H_ */