aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui.h b/ui.h
index 904d239..16d3c6e 100644
--- a/ui.h
+++ b/ui.h
@@ -1,6 +1,9 @@
enum { MAX_POINTS = 16 };
typedef struct {
+ int npoints;
+ Engine points[MAX_POINTS];
+
w_Field displacement;
w_Select displacement_unit;
@@ -10,8 +13,6 @@ typedef struct {
w_Field ambient_pressure;
w_Select ambient_pressure_unit;
- int npoints;
-
w_Field rpm[MAX_POINTS];
w_Field map[MAX_POINTS];
@@ -23,7 +24,8 @@ typedef struct {
w_Field intercooler_efficiency[MAX_POINTS];
- Engine points[MAX_POINTS];
+ w_Field intercooler_deltap[MAX_POINTS];
+ w_Select intercooler_deltap_unit;
w_Select volume_flow_rate_unit;
w_Number volume_flow_rate[MAX_POINTS];
@@ -42,6 +44,8 @@ void set_map_unit(UI *ui);
void set_ve(UI *ui, int idx);
void set_comp_efficiency(UI *ui, int idx);
void set_intercooler_efficiency(UI *ui, int idx);
+void set_intercooler_deltap(UI *ui, int idx);
+void set_intercooler_deltap_unit(UI *ui);
void set_volume_flow_rate(UI *ui, int idx);
void set_all_volume_flow_rate(UI *ui);
void insert_point(UI *ui, int idx);