diff --git a/MiniMaxHull.FCStd b/MiniMaxHull.FCStd index 10eefdd..44478bd 100644 Binary files a/MiniMaxHull.FCStd and b/MiniMaxHull.FCStd differ diff --git a/parameters/rudder_mechanism.json b/parameters/rudder_mechanism.json new file mode 100644 index 0000000..f7162f9 --- /dev/null +++ b/parameters/rudder_mechanism.json @@ -0,0 +1,152 @@ +{ + "schema": "rc_yacht.rudder_mechanism.v1", + "status": "cad_interface_inspected", + "source_document": "MiniMaxHull.FCStd", + "units": "mm_deg_g", + "coordinate_system": { + "axis_of_rotation": "Z", + "servo_axis": [102.3069, 0.0, 13.86], + "rudder_stock_axis": [187.0, 0.0, 0.0], + "neutral_servo_angle_deg": 0.0, + "positive_angle_convention": "right_hand_rotation_about_global_Z" + }, + "fixed_bodies": [ + { + "id": "hull", + "freecad_object": "Hull", + "collision_role": "fixed_boundary" + }, + { + "id": "servo_base", + "freecad_object": "SG90_Rudder", + "collision_role": "fixed_boundary", + "mass_status": "envelope_only" + }, + { + "id": "servo_tray", + "freecad_object": "ServoTray_Rudder", + "collision_role": "fixed_boundary" + }, + { + "id": "electronics_tray", + "freecad_object": "ESP32_Tray", + "collision_role": "fixed_boundary" + }, + { + "id": "electronics_envelope", + "freecad_object": "ESP32_BoardEnvelope", + "collision_role": "fixed_boundary" + }, + { + "id": "cockpit_hatch", + "freecad_object": "CockpitHatch", + "collision_role": "fixed_boundary" + }, + { + "id": "deck_coaming", + "freecad_object": "DeckCoaming", + "collision_role": "fixed_boundary" + } + ], + "moving_bodies": [ + { + "id": "servo_horn", + "freecad_object": "RudderMechanism_Horn", + "source_object": "ServoHorn_Rudder", + "joint": "servo_revolute", + "collision_role": "dynamic" + }, + { + "id": "pushrod", + "freecad_object": "RudderMechanism_Pushrod", + "source_object": null, + "joint": "pushrod_endpoint_constraints", + "collision_role": "dynamic" + }, + { + "id": "tiller", + "freecad_object": "RudderMechanism_Tiller", + "source_object": null, + "joint": "rudder_stock_fixed_attachment", + "collision_role": "dynamic" + }, + { + "id": "rudder_stock", + "freecad_object": "RudderMechanism_Stock", + "source_object": "RudderStock", + "joint": "rudder_revolute", + "collision_role": "dynamic" + }, + { + "id": "rudder", + "freecad_object": "RudderMechanism_Rudder", + "source_object": "Rudder", + "joint": "rudder_stock_fixed_attachment", + "collision_role": "dynamic" + } + ], + "joints": [ + { + "id": "servo_revolute", + "type": "revolute_motor", + "axis": [0.0, 0.0, 1.0], + "pivot": [102.3069, 0.0, 13.86], + "command": "servo_target_angle_deg", + "range_deg": [-60.0, 60.0], + "limit_status": "to_be_enforced_by_solver" + }, + { + "id": "rudder_revolute", + "type": "revolute", + "axis": [0.0, 0.0, 1.0], + "pivot": [187.0, 0.0, 0.0], + "range_deg": [-60.0, 60.0], + "limit_status": "to_be_enforced_by_solver" + }, + { + "id": "pushrod_endpoint_constraints", + "type": "rigid_link_endpoint_constraints", + "neutral_endpoints": { + "servo_horn": [106.1069, 0.0, 13.86], + "rudder_tiller": [190.5, 0.0, 13.86] + }, + "neutral_centerline_length_mm": 84.3931, + "length_status": "measured_from_cad_reference" + } + ], + "cad_reference": { + "neutral_moving_bboxes_mm": { + "RudderMechanism_Rudder": [181.61, 191.62, -1.155, 1.155, -36.19, 19.25], + "RudderMechanism_Stock": [185.306, 188.694, -1.681649, 1.681649, -19.25, 20.79], + "RudderMechanism_Horn": [98.46387, 106.15, -3.846531, 3.846531, 13.09, 14.63], + "RudderMechanism_Tiller": [187.0, 190.5, -0.694896, 0.694896, -0.7, 0.7], + "RudderMechanism_Pushrod": [106.1069, 190.5, -0.645261, 0.645261, 13.21, 14.51] + }, + "neutral_shape_volumes_mm3": { + "RudderMechanism_Rudder": 949.816906, + "RudderMechanism_Stock": 360.969704, + "RudderMechanism_Horn": 71.712036, + "RudderMechanism_Tiller": 5.387831, + "RudderMechanism_Pushrod": 112.016894 + }, + "source_shape_validity": "all inspected source and moving shapes valid", + "neutral_copy_transform": "pivot_rotation_composed_with_source_placement" + }, + "known_unknowns": [ + "body masses and inertia tensors", + "servo torque-speed curve", + "pushrod material stiffness and mass", + "joint friction and backlash", + "solver collision shapes", + "actual mechanical hard-stop limits" + ], + "inspection": { + "neutral_verified": true, + "plus_60_deg_verified": true, + "static_hull_bbox_unchanged_during_check": true, + "static_servo_bbox_unchanged_during_check": true, + "forbidden_intersection_volume_mm3": 0.0, + "kinematic_reference_status": "PASS_WITH_REVIEW", + "physics_status": "NOT_IMPLEMENTED" + } +} diff --git a/scripts/RudderMotionSweep.FCMacro b/scripts/RudderMotionSweep.FCMacro index a5b2d65..5a2c6ca 100644 --- a/scripts/RudderMotionSweep.FCMacro +++ b/scripts/RudderMotionSweep.FCMacro @@ -63,9 +63,10 @@ def set_frame(angle): rudder.Shape = rudder_source.Shape.copy() stock.Shape = stock_source.Shape.copy() horn.Shape = horn_source.Shape.copy() - rudder.Placement = App.Placement(rudder_axis, App.Rotation(Vector(0, 0, 1), angle)) - stock.Placement = App.Placement(rudder_axis, App.Rotation(Vector(0, 0, 1), angle)) - horn.Placement = App.Placement(servo_axis, App.Rotation(Vector(0, 0, 1), angle)) + rotation = App.Rotation(Vector(0, 0, 1), angle) + rudder.Placement = App.Placement(rudder_axis, rotation) * App.Placement(-rudder_axis, App.Rotation()) * rudder_source.Placement + stock.Placement = App.Placement(rudder_axis, rotation) * App.Placement(-rudder_axis, App.Rotation()) * stock_source.Placement + horn.Placement = App.Placement(servo_axis, rotation) * App.Placement(-servo_axis, App.Rotation()) * horn_source.Placement p0 = endpoint(servo_axis, 3.8, angle, 13.86) p1 = endpoint(rudder_axis, 3.5, angle, 13.86) tiller.Shape = Part.makeCylinder(0.7, 3.5, rudder_axis, Vector(p1.x - rudder_axis.x, p1.y - rudder_axis.y, 0))