Example #1
0
        public void apply(global::FlightCtrlState s)
        {
            s.mainThrottle = throttle;

            s.yaw   = yaw;
            s.pitch = pitch;
            s.roll  = roll;

            s.X = dx;
            s.Y = dy;
            s.Z = dz;
        }
Example #2
0
        public void update(global::FlightCtrlState s)
        {
            throttle = s.mainThrottle;

            yaw   = s.yaw;
            pitch = s.pitch;
            roll  = s.roll;

            dx = s.X;
            dy = s.Y;
            dz = s.Z;
        }