battery_keeper_overhang_wall = battery_keeper_m_w;
battery_keeper_overhang_th = battery_keeper_m_th;
+// calculated outputs
+
+battery_keeper_tab_top_z = battery_nutbox_z
+ + battery_keeper_z_gap_nutbox + battery_keeper_m_th;
+ // NB does not include screw head
+
+battery_keeper_legs_top_z = battery_keeper_overhang_z
+ + battery_keeper_overhang_th;
+
+battery_keeper_frame_top_z = battery[2] + battery_keeper_m_th;
+
+battery_mount_y_min = -battery_fix_sz;
+battery_mount_y_max = battery[1] + battery_wall;
+battery_mount_x_sz = battery[0] + battery_wall_unsupp*2;
+
module BatteryPlan(){
rectfromto([ -battery[0]/2, 0 ],
[ +battery[0]/2, battery[1] ]);