B098

MAKE: Control - Flight - Tail Appendage

Portion of code from form [Controls - Flight]

 

Public Function tail_movement(Which As String, CollectiveMovement As Single, CyclicLongMovement As Single, CyclicLatMovement As Single, PedalMovement As Single, ForwardMovement As Single) As Single

'To set the angle of the two tail/stabilizer surfaces based on the collective and pedal movements.

On Error GoTo tail_movement_Err

'## RATIOS NEED TUNING

If (Which = "Left") Then

tail_movement = PortTail + (CollectiveMovement * 40) + (PedalMovement * 40) + (CyclicLongMovement * 1) + (CyclicLatMovement * 1) + (ForwardMovement * 1)

ElseIf (Which = "Right") Then

tail_movement = StarboardTail + (CollectiveMovement * 40) - (PedalMovement * 40) + (CyclicLongMovement * 1) - (CyclicLatMovement * 1) + (ForwardMovement * 1)

Else

GoTo tail_movement_Err

End If

tail_movement_Exit:

Exit Function

tail_movement_Err:

MsgBox Err.Description

Resume tail_movement_Exit

End Function

Back to top | Return to Home Page

Last Revised: February 6, 2000