navdata.c
/*
 * Convert prn and constell to svid
 * @prn:        prn of the satellite
 * @constell:   constellation type
 * @return:     svid of the satellite
 */
Convert prn and constell to svid
@prn:        prn of the satellite
@constell:   constellation type
@return:     svid of the satellite
Convert prn and constell to svid @prn : prn of the satellite @constell : constellation type @return : svid of the satellite
int prn2svid(int prn, int constell) 
{
        switch (constell) {
        case CONSTELL_TYPE_GPS:
                break;
        case CONSTELL_TYPE_GLN:
                if (prn > 0 && prn < 33)
                        prn += PRN_PLUS_GLN;
                break;
        case CONSTELL_TYPE_BDS:
                if (prn > 0 && prn < 65)
                        prn += PRN_PLUS_BDS;
                break;
        default:
                break;
        }
        return prn;
}
int prn2svid ( int prn , int constell ) { switch ( constell ) { case CONSTELL_TYPE_GPS : break ; case CONSTELL_TYPE_GLN : if ( prn > 0 && prn < 33 ) prn += PRN_PLUS_GLN ; break ; case CONSTELL_TYPE_BDS : if ( prn > 0 && prn < 65 ) prn += PRN_PLUS_BDS ; break ; default : break ; } return prn ; }
Convert prn and constell to svid
 @prn:        prn of the satellite
 @constell:   constellation type
 @return:     svid of the satellite
Convert prn and constell to svid @prn : prn of the satellite @constell : constellation type @return : svid of the satellite