summaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-03-21 09:50:47 -0500
committertom barrett <spalf0@gmail.com>2019-03-21 09:50:47 -0500
commit95902608506ae8ccd1203cbbf93efbe876384a1f (patch)
tree5ce5d578e11b8a5632fad7b38473d49a4d20d7fb /src/constants.rs
parent6fb0b0d918963a22aeb4050139e8d0000c74a9ff (diff)
added acquiring items of tractorbeam and tests, moved control system over to math and gave it constants
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 4c48cac..6f2cf6f 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -15,7 +15,11 @@ pub const SHIP_NAVIGATION_RANGE: f64 = 100.0;
pub const SHIP_REFINERY_TIME: u64 = 5;
pub const SHIP_TRACTORBEAM_STRENGTH: f64 = 0.1;
pub const SHIP_TRACTORBEAM_RANGE: f64 = 50.0;
-pub const SHIP_TRACTORBEAM_BRING_TO_DISTANCE: f64 = 5.0;
+pub const SHIP_TRACTORBEAM_ACQUIRE_RANGE: f64 = 1.0;
+pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KP: f64 = 1.0;
+pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KI: f64 = 0.01;
+pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KD: f64 = 0.001;
+pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_DT: f64 = 0.0001;
pub const SHIP_ENGINES_FUEL_START: f64 = 100.0;
pub const SHIP_ENGINES_ACCELERATION: f64 = 0.1;