aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorsam-anthony <samanthony6@protonmail.com>2022-03-26 14:51:43 -0230
committersam-anthony <samanthony6@protonmail.com>2022-03-26 14:51:43 -0230
commit713b65d414e327db7b530ce0be8403bc0ff4ff3b (patch)
tree6e4a32fb43ca3e5b26d9cfb61c693ffd76391796 /main.go
parent16235e23bda445f0bd0b664c3738c77e786a1cbf (diff)
downloadvolute-713b65d414e327db7b530ce0be8403bc0ff4ff3b.zip
engine displacement
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/main.go b/main.go
index aca48bb..d36ebc8 100644
--- a/main.go
+++ b/main.go
@@ -16,18 +16,17 @@ func check(err error) {
}
}
+var (
+ displacement = volume{2000, cubicCentimetre}
+ // selectedVolumeUnit is used to index volumeUnitStrings.
+ selectedVolumeUnit = defaultVolumeUnitIndex
+)
+
var engineSpeed = [numPoints]int32{2000, 3000, 4000, 5000, 6000, 7000}
var volumetricEfficiency = [numPoints]int32{100, 100, 100, 100, 100, 100}
var (
- manifoldPressure [numPoints]pressure
-
- // selectedPressureUnit is used to index pressureUnits
- selectedPressureUnit int32
-)
-
-func init() {
manifoldPressure = [numPoints]pressure{
newPressure(),
newPressure(),
@@ -37,12 +36,13 @@ func init() {
newPressure(),
}
- // selectedPressureUnit is used to index pressureUnitStrings
+ // selectedPressureUnit is used to index pressureUnitStrings.
selectedPressureUnit = defaultPressureUnitIndex
-}
+)
func loop() {
g.SingleWindow().Layout(
+ engineDisplacementRow(),
g.Table().
Rows(
engineSpeedRow(),