def METHOD_NAME(self):
    fdm = CreateFDM(self.sandbox)
    fdm.load_model('c172r')
    fdm.load_ic('reset00', True)
    fdm.run_ic()
    self.assertEqual(fdm['fcs/flap-cmd-norm'], 0.0)
    self.assertEqual(fdm['fcs/flap-pos-deg'], 0.0)
    # Test the flap down sequence. The flap command is set to a value
    # higher than 1.0 to check that JSBSim clamps it to 1.0
    fdm['fcs/flap-cmd-norm'] = 1.5
    t = fdm['simulation/sim-time-sec']
    while t < 2.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 5.*t)
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    while t < 4.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 10.*(t-1.))
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    while t < 5.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 30.)
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    # Test the flap up sequence with an interruption at 7.5 deg
    fdm['fcs/flap-cmd-norm'] = 0.25
    while t < 7.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 30.-10.*(t-5.))
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    while t < 7.5:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 10.-5.*(t-7.))
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    while t < 8.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 7.5)
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    # Complete the flap up sequence. The flap command is set to a value
    # lower than 0.0 to check that JSBSim clamps it to 0.0
    fdm['fcs/flap-cmd-norm'] = -1.
    while t < 9.5:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 10.-5.*(t-7.5))
        fdm.run()
        t = fdm['simulation/sim-time-sec']
    while t < 10.0:
        self.assertAlmostEqual(fdm['fcs/flap-pos-deg'], 0.0)
        fdm.run()
        t = fdm['simulation/sim-time-sec']