> Yes, that leaves the options open.  May I suggest this then?  (I'm trying
> to get the 747 a/p together :-))

Beat me to it :)  Here are two other calculations you'll need, vertical speed 
error and mach error.

    // Calculate vertical speed error
    static SGPropertyNode *target_vert_speed
        = fgGetNode( "/autopilot/settings/vert-speed-fpm", true );
    static SGPropertyNode *vert_speed
        = fgGetNode( "/velocities/vertical-speed-fps", true );
    static SGPropertyNode *vs_error
        = fgGetNode( "/autopilot/internal/vert-speed-error-fpm", true );

    vs_error->setDoubleValue( target_vert_speed->getDoubleValue() -
                              vert_speed->getDoubleValue() * 60.0);  

    // Calculate mach error
    static SGPropertyNode *target_mach
        = fgGetNode( "/autopilot/settings/mach", true );
    static SGPropertyNode *mach
        = fgGetNode( "/velocities/mach", true );
    static SGPropertyNode *mach_error
        = fgGetNode( "/autopilot/internal/mach-error", true );

    mach_error->setDoubleValue( target_mach->getDoubleValue() -
                                       mach->getDoubleValue() );  

Dave
-- 
****************************
David Culp
davidculp2[at]comcast.net
****************************

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to