/* SPECIAL VARIABLES CONTROL */ $fa = 1; //minimum angle for a fragment $fs = 0.1; //minimum size of a fragment /* GENERAL PARAMETERS */ pi = 3.14159265359; stock_thick = 5; /* BRUSHLESS MOTOR */ motor_radius = 15; motor_lenght = 30; /* FUSELAGE SECTION */ fuselage_section_radius_ext = 40; /* ELECTRICAL CABLES HOLE*/ disk_hole_radius = 10; /* NOSE FRONT */ epsilon_motor_space = 1; epsilon_union = 0; nose_front_section_radius_int = 35; pin_radius = (fuselage_section_radius_ext - nose_front_section_radius_int)/2; /* NOSE REAR */ epsilon_carbon = 0.1; /* CARBON TUBE */ tube_carbon_length = 1000; //Cylinder carbon_rayon = 5; //Square carbon_square_side = 8; /*JUNCTION MOTOR - CARBON TUBE*/ junction_motor_carbon_radius = 18; junction_motor_carbon_height = 45; carbon_hole_height = 30; junction_fuselage_part_4_height = junction_motor_carbon_height+4*stock_thick; screw_junction_motor_carbon_disk_hole_radius = 2; screw_junction_motor_carbon_disk_center =40; /* JUNCTION CARBON TUBE - CARBON TUBE */ junction_carbon_carbon_leg_1_length = 30; junction_carbon_carbon_leg_1_width = stock_thick; junction_carbon_carbon_epsilon = 0.1; /* MOTOR */ motor_shaft_hole_radius = 5; motor_shaft_hole_height = 15; nose_front_disk_hole_x = 20; motor_screw_radius = 1.51; motor_screw_radius_ext = 3; motor_screw_height_ext = junction_fuselage_part_4_height; motor_screw_position = junction_motor_carbon_height*0.6; bayonet_lock_pin_bottom_thick = 5; /* PAPER */ paper_thick = 0.35; /* FUSELAGE PART 3 */ x_cut_first = 20; y_cut_first = 10; x_cut_second = 5; disk_hole_x = -22; /* FUSELAGE PART 4*/ /* BATTERY CENTRAL */ battery_central_width = 70; battery_central_length = 180; battery_central_height = 40; battery_central_position_x = 0; battery_central_position_y = -100; battery_central_position_z = 0; /* RIB BATTERY CENTRAL */ /* RIB CENTRAL */ rib_central_naca = 4425; rib_central_chord_length = 450; rib_central_thick = stock_thick; /* RIB EXTERNAL */ rib_external_naca = 4414; rib_external_chord_length = 350; rib_external_thick = stock_thick; /* RIB TAIL VERTICAL */ rib_tail_vertical_naca = 0014; rib_tail_vertical_chord_length = 300; //300 rib_tail_vertical_thick = stock_thick; /* TAIL JUNCTION */ rib_tail_junction_horizontal = 4414; rib_tail_junction_vertical = 0014; rib_tail_junction_thick = 10*carbon_square_side; tail_distance_carbon_in_horizontal = 30; tail_distance_carbon_in_vertical = 30; /* RASPBERRY PI AND NAVIO 2 */ rpi_navio_2_width = 60; rpi_navio_2_length = 100; rpi_navio_2_height = 30; rpi_navio_2_position_x = 0; rpi_navio_2_position_y = 55; rpi_navio_2_position_z = 0.5*battery_central_height-0.5*rpi_navio_2_height; /* SERVO */ //Body servo_height = 22.5; servo_width = 12.2; servo_depth = 22.5; pos_servo_x = 0; pos_servo_y = 0; pos_servo_z = 0.5*servo_height; //Tab servo_tab_height = 2; servo_tab_width = 12.2; servo_tab_depth = 32.2; pos_servo_tab_x = 0; pos_servo_tab_y = 0; pos_servo_tab_z = 0.75*servo_height; //Gears pos_servo_gears_x =0; pos_servo_gears_y = 0; pos_servo_gears_z = 21.5; pos_servo_gear_1_x = -1; pos_servo_gear_1_y = 0; pos_servo_gear_1_z = 0; servo_gear_1_diameter = 5.5; servo_gear_1_height = 5; pos_servo_gear_2_x = 1; pos_servo_gear_2_y = 0; pos_servo_gear_2_z = 0; servo_gear_2_diameter = 5.5; servo_gear_2_height = 5; pos_servo_gear_3_x = 5.5; pos_servo_gear_3_y = 0; pos_servo_gear_3_z = 0; servo_gear_3_diameter = 11.6; servo_gear_3_height = 5; //Holes pos_servo_tab_hole_x = 14; pos_servo_tab_hole_y = 0; pos_servo_tab_hole_z = 14.75; servo_tab_hole_diameter = 2; servo_tab_hole_height = 4; pos_servo_gear_fastener_hole_x = 0; pos_servo_gear_fastener_hole_y = 0; pos_servo_gear_fastener_hole_z = 1; servo_gear_fastener_diameter_hole = 2; servo_gear_fastener_height_hole = 4; //Gear Servo Arm pos_servo_gear_fastener_x = 5.5; pos_servo_gear_fastener_y = 0; pos_servo_gear_fastener_z = 25.5; servo_gear_fastener_diameter = 4.8; servo_gear_fastener_height = 4; /* RIB SERVO WING */ pos_rib_servo_wing_hole_x = 0; pos_rib_servo_wing_hole_y = -25; pos_rib_servo_wing_hole_z = 10; //Holes pos_rib_servo_wing_disk_hole_x = 0; pos_rib_servo_wing_disk_hole_y = 50; pos_rib_servo_wing_disk_hole_z = 12; rib_servo_wing_cylinder_hole_diameter = 18; rib_servo_wing_cylinder_hole_height = 2*rib_external_thick; /* MOTOR */ Motor_diameter_top=17; Motor_height_top=4.5; Motor_diameter_middle=28; Motor_height_middle=17; Motor_diameter_bottom=25; Motor_height_bottom=4.5; Motor_shaft_diameter=3.17; Motor_shaft_length=40; Motor_shaft_Z_offset=5; Stator_poles=12; Top_holes_diameter=7; Top_holes_radial_position=8.5; Bottom_holes_diameter=16; Bottom_holes_radial_position=16; Bearing_diameter=8.2; Fixing_holes_radial_position_1=9.5; Fixing_holes_radial_position_2=8; Color_1="Orange"; //Motor body color Color_2="Silver"; //Shaft and bearing color Color_3="Black"; //Cable and seeger color Color_4="Silver"; //Motor middle band colorr Color_5="darkgreen"; //Stator color /* WOOD BOARD */ wood_board_lx = 100; wood_board_ly = 450; wood_board_lz = 5; wood_board_r = 10; /* FUSELAGE RIB OUTSIDE*/ fuselage_rib_outside_lx = 50; /* */ carbon_z = 50; wing_rib_y = -50; wing_rib_z = carbon_z-10; wing_rib_rear_y = 0; wing_rib_rear_z = carbon_z; /*SENSOR 1*/ sensor_1_lx = 50; sensor_1_ly = 10; sensor_1_lz = 50; /*SENSOR 2*/ sensor_2_lx = 50; sensor_2_ly = 50; sensor_2_lz = 50; /*CARBON FASTENER*/ gap_fastener_lz = 1; fastener_horizontal_pos_z = [-30,30,900]; /*SCREWS*/ screw_body_radius = 1.6; screw_head_radius = 3.1; scew_head_lz = 2; gap_above_screw_head = 1;