add to gui

This commit is contained in:
Avery Haas
2026-08-31 23:57:40 -04:00
parent 120e4f505f
commit 1175b498b0
11 changed files with 90 additions and 5 deletions
+11
View File
@@ -1,4 +1,5 @@
#include "engine.h"
#include "iostream"
void Engine::step(double dt, double load_torque_nm) {
// TODO: replace with real combustion/friction torque model driven
@@ -17,6 +18,16 @@ double Engine::torque_nm() const {
return m_torque_nm;
}
void Engine::set_throttle(double throttle) {
m_throttle = throttle;
}
double Engine::get_throttle() {
return m_throttle;
}
void Engine::reset() {
m_rpm = 0;
m_oil_temp = 0;
m_coolant_capacity = 0;
}