tweak the constants

This commit is contained in:
Joe Ardent 2022-03-21 16:04:06 -07:00
parent 464e64f271
commit c37cf0a6b1
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);