Hello,

I'm analysing the ArduPlane code(2.6) in order to design a Simulink model of the Ardu-Pilot flight controller.

Now I have a question about the navigate() function in navigation.pde. After calculating the target_bearing_cd the nav_bearing_cd should be calculated to include cross-track correction. But I can't find a call-up of the cross-trackfunction in AUTO mode.

Can anyone help me?

    // target_bearing is where we should be heading
    // --------------------------------------------
    target_bearing_cd       = get_bearing_cd(&current_loc, &next_WP);
 
    // nav_bearing will includes xtrac correction
    // ------------------------------------------
    nav_bearing_cd = target_bearing_cd;

Views: 28

Reply to This

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service