@@ -169,10 +169,20 @@ DECK_HEIGHT = 250; // Height above ground
169169// 5-component folding platform: 1x deck plate + 2x pivot brackets + 2x angle arms
170170// Folds from stowed (vertical against rear) to deployed (horizontal)
171171
172+ // --- Configurable dimensions ---
173+ PLATFORM_THICKNESS = PLATE_1_4_INCH; // Deck plate thickness
174+ PLATFORM_DEPTH = 400 ; // Front-to-back depth of deck (mm)
175+ PLATFORM_ARM_LENGTH = 350 ; // Length of angle iron arms (mm)
176+ PLATFORM_PIVOT_HEIGHT = 250 ; // Height of pivot point / deck surface when deployed (mm)
177+
172178// --- Derived dimensions (calculated from frame geometry) ---
173179// Platform width fits between inner side panels with clearance
174- PLATFORM_CLEARANCE = 20 ; // Clearance from inner walls (mm) - minimal for wider platform
175- PLATFORM_WIDTH = TRACK_WIDTH - SANDWICH_SPACING - PLATFORM_CLEARANCE; // ~760mm (fills space between inner panels)
180+ PLATFORM_GAP = 3.175 ; // 1/8 inch gap between deck and pivot plate
181+ // Inner wall inner face X position
182+ _inner_wall_inner_face_x = TRACK_WIDTH/2 - SANDWICH_SPACING/2 - PANEL_THICKNESS;
183+ // Platform width calculated to leave GAP between deck and pivot plate face
184+ // Pivot plate is PLATFORM_THICKNESS thick and sits against inner wall
185+ PLATFORM_WIDTH = 2 * (_inner_wall_inner_face_x - PLATFORM_THICKNESS - PLATFORM_GAP);
176186
177187// Inner side panel X position (from center of machine)
178188// Inner panel inner face is at: TRACK_WIDTH/2 - SANDWICH_SPACING/2
@@ -183,12 +193,6 @@ _INNER_PANEL_X = TRACK_WIDTH/2 - SANDWICH_SPACING/2; // = 450 - 60 = 390mm
183193PLATFORM_PIVOT_X_INSET = 0 ; // Distance inward from inner panel face (mm)
184194PLATFORM_PIVOT_X = _INNER_PANEL_X - PLATFORM_PIVOT_X_INSET; // X position of pivot from center (~390mm)
185195
186- // --- Configurable dimensions ---
187- PLATFORM_DEPTH = 400 ; // Front-to-back depth of deck (mm)
188- PLATFORM_ARM_LENGTH = 350 ; // Length of angle iron arms (mm)
189- PLATFORM_PIVOT_HEIGHT = 250 ; // Height of pivot point / deck surface when deployed (mm)
190- PLATFORM_THICKNESS = PLATE_1_4_INCH; // Deck plate thickness
191-
192196// --- Pivot bracket dimensions ---
193197PLATFORM_BRACKET_LENGTH = 150 ; // Length of pivot bracket plate (mm)
194198PLATFORM_BRACKET_WIDTH = 100 ; // Width of pivot bracket plate (mm)
0 commit comments