Exemplo n.º 1
0
 def testDualServoMargin(self):
     control_limits = flap_limits.FlapsToServos(
         flap_limits.GetControlLimits())
     servo_limits = flap_limits.GetAvionicsServoLimits()
     half_degree = math.radians(0.5)
     # Shrink servo limits by half a degree on each side.
     for servo in ['E1', 'E2', 'R1', 'R2']:
         servo_limits[servo] = (servo_limits[servo][0] + half_degree,
                                servo_limits[servo][1] - half_degree)
     self._AssertLimitsContain(servo_limits, control_limits)
Exemplo n.º 2
0
 def testControlManualLimitsInsideControlLimits(self):
     self._AssertLimitsContain(flap_limits.GetControlLimits(),
                               flap_limits.GetControlManualLimits())
Exemplo n.º 3
0
 def testControlLimitsInsideSimLimits(self):
     self._AssertLimitsContain(
         flap_limits.GetSimLimits(),
         flap_limits.FlapsToServos(flap_limits.GetControlLimits()))
Exemplo n.º 4
0
 def testControlCrosswindFlareLimitsInsideControlLimits(self):
     self._AssertLimitsContain(flap_limits.GetControlLimits(),
                               flap_limits.GetControlCrosswindFlareLimits())