def trainings_set01(): # parable altitudes = [1000, 2000, 3000, 4000, 5000] climb = [100, -100] climb_rates = [300, 400, 500] maneuvers = xp.define_flight_maneuvers(altitudes, climb, climb_rates, [0], [0], sort=True) xp.fly(maneuvers)
def trainings_set02(): ''' bank flight on constant height: 90 degree both directions; 5,10,15,20 bank angle spiral up to new altitude with 500fpm ''' logger.info('run trainings_set02') altitudes = [1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000] heading_changes = [90.0, -90.0] bank_modes = [1, 2, 3, 4] maneuvers = xp.define_flight_maneuvers(altitudes, [0], [600.0], heading_changes, bank_modes, sort=True) xp.fly(maneuvers)
def trainings_set05(): # parable with trotthle=100% logger.info('run trainings_set05') xp.set_throttle(1.0) altitudes = [1250, 1750, 2250, 2750, 3250, 3750, 4250, 4750] climb = [-100] climb_rates = [300, 400, 500, 600] maneuvers = xp.define_flight_maneuvers(altitudes, climb, climb_rates, [0], [0], sort=True) xp.fly(maneuvers)
def trainings_set03(): ''' fly parable in 100 difference and then climb to 500ft ''' logger.info('run trainings_set03') altitudes = [1500, 2500, 3500, 4500] climb = [100, -100] climb_rates = [600, 500, 400, 300, 200] maneuvers = xp.define_flight_maneuvers(altitudes, climb, climb_rates, [0], [0], sort=True) xp.fly(maneuvers)
def trainings_set04(): ''' fly banks while climbing and falling ''' logger.info('run trainings_set04') altitudes = [1000, 2000, 3000, 4000, 5000] climb = [-100] climb_rates = [600, 500, 400] heading_changes = [30.0, -30.0] bank_modes = [3, 4] maneuvers = xp.define_flight_maneuvers(altitudes, climb, climb_rates, heading_changes, bank_modes, sort=True) xp.fly(maneuvers)
def trainings_set00(): logger.info('run trainings_set00') xp.rst_msn_time() # fixture #parable start_alt = [1000] climbs = [-100, 100] fpms = [200.0, 300.0, 400.0, 500.0] parable = xp.define_flight_maneuvers(start_alt, climbs, fpms, [0], [0]) #logger.info(parable) xp.fly(parable) # banks bank_modes = [1, 2, 3, 4, 5, 6] banks = xp.define_flight_maneuvers([-1], [0], [0], [90], bank_modes) #logger.info(parable) xp.fly(banks)
def trainings_set06(): ''' parable flights between 900ft and 1500ft ''' logger.info('run trainings_set06') xp.set_throttle(1.0) altitudes = [-1] heading_changes = [0] bank_modes = [0] climb = [ -100, 200, -100, 200, -100, 200, -100, 200, -100, 200, -100, 200, -600 ] climb_rates = [300, 400, 500, 600] maneuvers = xp.define_flight_maneuvers(altitudes, climb, climb_rates, heading_changes, bank_modes, sort=True) print(maneuvers) xp.fly(maneuvers)