convert channel expession to value and save it

   3444   0   1
User Avatar
Member
77 posts
Joined: July 2005
Offline
I am working on an air traffic control simulation.

I have added spare channels for spd and bank, then calculate the turn rate and have that in another spare channel.

For the forward motion, I have tz = $T * ch(“spd”)

turnRate = (1092.95 * tan(ch(“bank1”) ) / ch(“spd”))

I then have the ry channel = to ‘$T * ch(“turnRate”)’.

1) If the bank1 channel goes to 0 (simulating level / no turning flight), the plane's ry channel also goes back to 0. I want the “plane” to maintain the current ry (heading), when bank1=0, otherwise it should be changed by the ‘turnRate’ channel.

So I need to grab / save the last value of the computed ry as the new ry value .. but I also need to keep the ry field dynamic for further heading/bank changes.

I.e. I need to convert the expression to a “frozen” “snapshot” value.

Do I need to use a CHOP ?

Mike
  • Quick Links