Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion firmware/config/boards/proteus/knock_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))
#endif
#endif
3 changes: 2 additions & 1 deletion firmware/controllers/actuators/electronic_throttle_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
// include the "public" ETB interface
#include "electronic_throttle.h"

#include "sensor.h"
#include "efi_pid.h"
#include "electronic_throttle_generated.h"
#include "sensor_type.h"
#include "timer.h"

/**
* Hard code ETB update speed.
Expand Down
1 change: 0 additions & 1 deletion firmware/controllers/algo/fuel_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "fuel_math.h"
#include "fuel_computer.h"
#include "injector_model.h"
#include "speed_density.h"
#include "speed_density_base.h"
#include "lua_hooks.h"

Expand Down
2 changes: 2 additions & 0 deletions firmware/controllers/algo/rusefi_hw_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#pragma once

#include <stdint.h>

// todo: migrate/unify with pin_output_mode_e? rename? something is messy here
// this enum is currently only used for SPI pins
typedef enum __attribute__ ((__packed__)) {
Expand Down
2 changes: 2 additions & 0 deletions firmware/controllers/engine_cycle/knock_logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#pragma once

#include "efitime.h"
#include "engine_module.h"
#include "peak_detect.h"
#include "knock_controller_generated.h"

Expand Down
2 changes: 0 additions & 2 deletions firmware/controllers/math/engine_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include "pch.h"

#include "event_registry.h"
#include "fuel_math.h"
#include "advance_map.h"
#include "gppwm_channel.h"

Expand Down
4 changes: 2 additions & 2 deletions firmware/controllers/sensors/impl/software_knock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ void initSoftwareKnock() {

efiPrintf("Knock sense configuring filter with frequency %.2f khz", freqKhz);

knockFilter.configureBandpass(KNOCK_SAMPLE_RATE, 1000 * freqKhz, 3);
knockFilter.configureBandpass((int)KNOCK_SAMPLE_RATE, 1000 * freqKhz, 3);

efiSetPadMode("knock ch1", KNOCK_PIN_CH1, PAL_MODE_INPUT_ANALOG);
#if KNOCK_HAS_CH2
#if KNOCK_HAS_CH2
efiSetPadMode("knock ch2", KNOCK_PIN_CH2, PAL_MODE_INPUT_ANALOG);
#endif
kt.start();
Expand Down
2 changes: 2 additions & 0 deletions firmware/controllers/system/thread_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#pragma once

#include "global.h"

/**
* @brief A base class for a controller that requires its own thread.
*
Expand Down
1 change: 0 additions & 1 deletion firmware/init/sensor/init_lambda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "init.h"
#include "adc_subscription.h"
#include "linear_func.h"
#include "live_data.h"

static LinearFunc func;

Expand Down
2 changes: 2 additions & 0 deletions firmware/init/sensor/init_tps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#include "proxy_sensor.h"
#include "linear_func.h"
#include "tps.h"
#if EFI_UNIT_TEST
#include "auto_generated_sensor.h"
#endif

#ifndef MAX_TPS_PPS_DISCREPANCY
#define MAX_TPS_PPS_DISCREPANCY 5.0f
Expand Down
1 change: 1 addition & 0 deletions firmware/util/efilib.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <stdint.h>
#include <rusefi/arrays.h>
#include "rusefi_hw_enums.h"

int djb2lowerCase(const char *str);

Expand Down