From 95902608506ae8ccd1203cbbf93efbe876384a1f Mon Sep 17 00:00:00 2001 From: tom barrett Date: Thu, 21 Mar 2019 09:50:47 -0500 Subject: added acquiring items of tractorbeam and tests, moved control system over to math and gave it constants --- src/constants.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/constants.rs') 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; -- cgit v1.2.3