diff --git a/src/components/panels/ScienceControlPanel.tsx b/src/components/panels/ScienceControlPanel.tsx index 66b52d5..7ce98f2 100644 --- a/src/components/panels/ScienceControlPanel.tsx +++ b/src/components/panels/ScienceControlPanel.tsx @@ -97,8 +97,8 @@ const servos: ServoConfig[] = [ } ]; -const CM_PER_TICK = 0.15 / 13 / 4096; // 1.5 mm pitch thread, 1:13 gear ratio, 12-bit encoder -const DRILL_HEIGHT = 30; +const CM_PER_TICK = 0.15 / 13 / 70; // 1.5 mm pitch thread, 1:13 gear ratio, 12-bit encoder +const DRILL_HEIGHT = 52; // -------------------- // Panel @@ -226,7 +226,7 @@ const ScienceControlPanel: React.FC = () => {
- Drill Height: {(DRILL_HEIGHT - (((elevator?.position ?? 0) - zero) * CM_PER_TICK)).toFixed(2)} cm above ground + Drill Height: {(DRILL_HEIGHT + (((elevator?.position ?? 0) - zero) * CM_PER_TICK)).toFixed(2)} cm above ground Drill Current: {drill?.output_current?.toFixed(2) ?? '--'} A Drill Percent: {((drill?.output_percent ?? 0) * 100).toFixed(0)}%