Subversion Repositories FlightCtrl

Rev

Rev 1048 | Rev 1050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1048 Rev 1049
Line 148... Line 148...
148
short int Get_GPS_data(void)
148
short int Get_GPS_data(void)
149
{
149
{
150
        short int n = 1;
150
        short int n = 1;
Line 151... Line 151...
151
 
151
 
152
        if (actual_pos.status == 0) return (1); //damit es schnell geht, wenn nix zu tun ist
152
        if (actual_pos.status == 0) return (1); //damit es schnell geht, wenn nix zu tun ist
153
        gps_gain = (Parameter_NaviGpsGain*8)/40; //maximal Wert ist 255*8/40
153
        gps_gain = (Parameter_NaviGpsGain*8)/20; //maximal Wert ist 255*8/40
Line 154... Line 154...
154
        //      debug_gp_0      = (int)gps_gain;  // zum Debuggen
154
        //      debug_gp_0      = (int)gps_gain;  // zum Debuggen
155
 
155
 
156
        if ((actual_pos.status > 0) && (actual_status.status > 0) && (actual_speed.status > 0))
156
        if ((actual_pos.status > 0) && (actual_status.status > 0) && (actual_speed.status > 0))