# Mass system setup
mtow = 600
cg_limits = [ 0.290 0.398 ]

# Mass of aircraft minus pilot and motor
mass {
   name           = fuselage_wings
   mass           = 280.0
   inertia        = [ 3000.0  1200.0 3300.0 ]
   position       = [ -0.450  0.0 0.0 ]
}

# Pilot's mass, assume no inertia (wrong)
seat {
   name           = pilot
   mass           = 85.0
   min_mass       = 60.0
   max_mass       = 125.0
   inertia        = [   0.0    0.0    0.0 ]
   position       = [    0.5    0.0    0.0 ]
}

# water ballast inner wing
# This is mirrored so only one side will have to be defined
# The Capacity and default level indicates the sum of both (left+right)
# When mirrored the y coordinate of the tank is forced to zero. 
# use "mirror = false" to disable and define each wing individually.

water {
   name		  = wing3
   position       = [    0.0    0.0    0.0 ]
   capacity       = 105.0
   valve_size     = 0.13
   y_inner        = 0.5
   y_outer        = 2.4

   default_level  = 105.0

   valve_number   = 2
   valve_position = [ 0.0 -0.5 -0.0 ]
   valve_max_flow = 25.0
}

water {
   name		  = wing2
   position       = [    0.0    0.0    0.0 ]
   capacity       = 60.0
   valve_size     = 0.13
   y_inner        = 2.5
   y_outer        = 5.0

   default_level  = 60.0

   valve_number   = 2
   valve_position = [ 0.0 -2.5 -0.0 ]
   valve_max_flow = 25.0
}

# water ballast outer wing
water {
   name		  = wing1
   position       = [    0.0    0.0    0.0 ]
   capacity       = 40.0
   valve_size     = 0.13
   y_inner        = 5.0
   y_outer        = 7.8
   
   default_level  = 40.0

   valve_number   = 1
   valve_position = [ 0.0 -5.0 -0.1 ]
   valve_max_flow = 25.0
}


water {
   name		  = tail1
   position       = [   -5.0    0.0    0.0 ]
   capacity       = 2.5
   valve_size     = 0.05
   y_inner        = 0.1
   y_outer        = 1.0

   default_level  = 2.5

   valve_number   = 2
   valve_position = [ -5.0 0.0 0.0 ]
   valve_max_flow = 10.0
}
water {
   name		  = tail2
   position       = [   -5.0    0.0    0.0 ]
   capacity       = 3.0
   valve_size     = 0.05
   y_inner        = 0.1
   y_outer        = 1.0

   default_level  = 3.0

   valve_number   = 1
   valve_position = [ -5.0 0.0 0.0 ]
   valve_max_flow = 10.0
}
