int main(void)
{
	NavConstantInit();  //Navigation constants initialisation

	/* Data Required to be loaded from GUI*/
	MasterLat = 17.0*cdr;
	MasterLon=78.0*cdr;
	MasterAlt= 500.0;
	NavTime = 300.0;
	mdl_si=0.0;
	mdl_phi=0.0;
	mdl_theta = 0.0;

/* Variables initialisation*/
	varinit();

// These flags required for executing navigation run
	nav_flag = 1;
	level_flag = 0;

//Initialised to computed euler angles
	FinsLat = MasterLat;
	FinsLon = MasterLon;

	while (rcnt < NavTime * 400)
	{
		navig(); //Navigation Module

	}

return 0;

}
Exemplo n.º 2
0
/**
 * Évènement - Affiche une boîte de dialogue pour sélectionner une nouvelle image. L'affichage n'est pas rafraichi.
 */
void ImagePochetteMusique::EvtSouris(wxMouseEvent &WXUNUSED(event))
{
    wxFileDialog navig(NULL, _("Choisissez une image"), wxStandardPaths::Get().GetDocumentsDir(), _T(""), _T("Image (*.jpg;*.jpeg)|*.jpg;*.jpeg"), wxFD_OPEN | wxFD_FILE_MUST_EXIST);
    int ouvert = navig.ShowModal();

    if (ouvert == wxID_OK)
        LectureImageEvent(navig.GetPath());
}
Exemplo n.º 3
0
/**
 * Évènement - Ouvre une fenêtre de navigation pour sélectionner le dossier à ouvrir par défaut
 */
void PreferenceDefaut::Defaut_Bouton_DossierDefaut(wxCommandEvent &WXUNUSED(event))
{
    int ouvert;
    wxDirDialog navig(this, _("Choisissez le répertoire par défaut"), m_boiteCheminDefautRech->GetValue(), wxDD_DEFAULT_STYLE|wxDD_DIR_MUST_EXIST);

    ouvert = navig.ShowModal();

    m_boiteCheminDefautRech->SetValue((ouvert == wxID_OK) ? navig.GetPath() : _T(""));
    AutoSave();
}
Exemplo n.º 4
0
/**
 * Évènement - Ouvre une fenêtre de navigation pour sélectionner un .mp3 (Il sera lu au lancement de Fu(X))
 */
void PreferenceDefaut::Defaut_Bouton_Recherche(wxCommandEvent &WXUNUSED(event))
{
    int ouvert;
    wxFileDialog navig(this, _("Choisissez une chanson"), wxStandardPaths::Get().GetDocumentsDir(), m_boiteCheminChansonRep->GetValue(), Parametre::Get()->getExtensionValideMusique(), wxFD_OPEN | wxFD_FILE_MUST_EXIST);

    ouvert = navig.ShowModal();

    m_boiteCheminChansonRep->SetValue( (ouvert == wxID_OK) ? navig.GetPath() : _T("") );
    AutoSave();
}