From c37cf0a6b121cba10e22ae381278ef787733fbc4 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Mon, 21 Mar 2022 16:04:06 -0700 Subject: [PATCH] tweak the constants --- src/action.rs | 2 +- src/planet.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/action.rs b/src/action.rs index 5bd309b..e87413b 100644 --- a/src/action.rs +++ b/src/action.rs @@ -53,7 +53,7 @@ fn falling_cat_pid( let proportional = error; let kp = 7.1; - let ki = 0.10; + let ki = 0.8; let kd = 5.1; let mag = (kp * proportional) + (ki * integral) + (kd * derivative); diff --git a/src/planet.rs b/src/planet.rs index 1104292..077deb6 100644 --- a/src/planet.rs +++ b/src/planet.rs @@ -9,7 +9,7 @@ use wgpu::PrimitiveTopology; use crate::Label; -pub const PLANET_RADIUS: f32 = 5000.0; +pub const PLANET_RADIUS: f32 = 6000.0; #[derive(Component)] pub struct CyberPlanet; @@ -22,7 +22,7 @@ fn spawn_planet( let color = Color::rgb(0.2, 0.1, 0.2); let isphere = Icosphere { radius: PLANET_RADIUS, - subdivisions: 79, + subdivisions: 88, }; let (mesh, shape) = gen_planet(isphere);