Skip to content

Commit 25110b5

Browse files
committed
Merge branch 'ange-yaghi-master'
2 parents 0e55b9a + 6e6d7c1 commit 25110b5

15 files changed

Lines changed: 99 additions & 187 deletions

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
cmake_minimum_required(VERSION 3.10)
22

33
option(DTV "Enable video output" OFF)
4-
<<<<<<< HEAD
5-
=======
64
option(PIRANHA_ENABLED "Enable scripting input" ON)
7-
>>>>>>> 6c6b4f317473b728d8a6c0cc64d0644b445bd355
85
option(DISCORD_ENABLED "Enable Discord Rich Presence" ON)
9-
option(PIRANHA_ENABLED "Enable scripting input" ON)
106

117
if (DTV)
128
add_compile_definitions(ATG_ENGINE_SIM_VIDEO_CAPTURE)

assets/engines/chevrolet/chev_truck_454.mr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ public node chev_truck_454 {
7777
chevy_bbc_stock_intake intake(
7878
carburetor_cfm: 750.0,
7979
idle_flow_rate_cfm: 0.007,
80-
<<<<<<< HEAD
8180
idle_throttle_plate_position: 0.973,
8281
throttle_gamma: 1.5
83-
=======
84-
idle_throttle_plate_position: 0.991
85-
>>>>>>> 6c6b4f317473b728d8a6c0cc64d0644b445bd355
8682
)
8783

8884
exhaust_system_parameters es_params(

assets/main.mr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ use_default_theme()
2222

2323
set_engine(
2424
engine: kohler_V8()
25-
)

include/application_settings.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
struct ApplicationSettings {
66
bool startFullscreen = false;
7-
std::string powerUnits = "HP";
8-
std::string torqueUnits = "FTLBS";
9-
std::string speedUnits = "MPH";
10-
std::string pressureUnits = "INHG";
11-
std::string boostUnits = "PSI";
7+
std::string powerUnits = "hp";
8+
std::string torqueUnits = "lb-ft";
9+
std::string speedUnits = "mph";
10+
std::string pressureUnits = "inHg";
11+
std::string boostUnits = "psi";
1212

1313
int colorBackground = 0x0E1012;
1414
int colorForeground = 0xFFFFFF;

include/engine.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,16 @@ class Engine : public Part {
9393
CombustionChamber *getChamber(int i) const { return &m_combustionChambers[i]; }
9494
Fuel *getFuel() { return &m_fuel; }
9595

96-
<<<<<<< HEAD
9796
public:
9897
double press;
9998
double flow;
10099

101100
void UpdateShit();
102-
=======
101+
103102
double getSimulationFrequency() const { return m_initialSimulationFrequency; }
104103
double getInitialHighFrequencyGain() const { return m_initialHighFrequencyGain; }
105104
double getInitialNoise() const { return m_initialNoise; }
106105
double getInitialJitter() const { return m_initialJitter; }
107-
>>>>>>> 6c6b4f317473b728d8a6c0cc64d0644b445bd355
108106

109107
protected:
110108
std::string m_name;

include/jitter_filter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class JitterFilter : public Filter {
1818
float audioFrequency);
1919
virtual float f(float sample) override;
2020

21-
__forceinline float fast_f(float sample) {
21+
__forceinline float fast_f(float sample, float jitterScale = 1.0f) {
2222
m_history[m_offset] = sample;
2323
++m_offset;
2424

@@ -30,7 +30,7 @@ class JitterFilter : public Filter {
3030
0.0f,
3131
static_cast<float>(m_maxJitter - 1));
3232

33-
const float s = m_noiseFilter.fast_f(dist(m_generator) * m_jitterScale);
33+
const float s = m_noiseFilter.fast_f(dist(m_generator) * m_jitterScale * jitterScale);
3434
const float s_i_0 = std::floor(s);
3535
const float s_i_1 = std::ceil(s);
3636

include/oscilloscope_cluster.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class OscilloscopeCluster : public UiElement {
2121
virtual void update(float dt);
2222
virtual void render();
2323

24-
double getPower(double torque);
25-
2624
void sample();
2725
void setSimulator(Simulator *simulator);
2826

include/right_gauge_cluster.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class RightGaugeCluster : public UiElement {
2323
virtual void update(float dt);
2424
virtual void render();
2525

26-
void setEngine(Engine *engine);
27-
void setUnits();
28-
double getPressureVaccuum(double ambientPressure);
26+
void setEngine(Engine *engine);
27+
void setUnits();
28+
double getManifoldPressureWithUnits(double ambientPressure);
2929
Simulator *m_simulator;
3030

3131
protected:

include/units.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ namespace units {
7070
extern constexpr double MPa = Pa * 1000000.0;
7171
extern constexpr double atm = 101.325 * kPa;
7272

73-
extern constexpr double mBar = Pa * 100.0;
74-
extern constexpr double Bar = mBar * 1000.0;
73+
extern constexpr double mbar = Pa * 100.0;
74+
extern constexpr double bar = mbar * 1000.0;
7575

7676
extern constexpr double psi = lbf / (inch * inch);
7777
extern constexpr double psig = psi;

scripting/include/set_application_settings_node.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)