See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: [Problème] Mon module lunaire fait n'importe quoi avec LOLA mfd  (Read 1787 times)

0 Members and 1 Guest are viewing this topic.

Offline ea76620

  • Sr. Member
  • ****
  • Posts: 393
  • Country: France fr
  • Karma: 15
21 June 2013, 15:27:49
Bonjour,

Je suis actuellement en train de terminer mon module lunaire, j'ai fait quelques tests avec LOLA mfd mais il y a un gros bug lors de l'approche finale de la base (Brighton Beach) comme le montre la vidéo :

http://youtu.be/FEiICVYh0ts

Je met le code des moteurs du vaisseau :

Code: [Select]
th_main[0] = CreateThruster (_V(0,0.9,-6.25), _V(0,0,1), PB_MAXLANDINGTH, landingtank, PB_ISP);
th_main[1] = CreateThruster (_V(0,-0.9,-6.25), _V(0,0,1), PB_MAXLANDINGTH, landingtank, PB_ISP);
th_group[0] = th_main[0];
th_group[1] = th_main[1];
CreateThrusterGroup (th_main, 2, THGROUP_MAIN);

th_hover[0] = CreateThruster (_V(0,0,0), _V(0,0,-11), 0.0, landingtank, PB_ISP);
CreateThrusterGroup (th_hover, 1, THGROUP_HOVER);
AddExhaust (th_hover[0], 0, 0, _V(0,0,0), _V(0,0,-11));
//AddExhaust (th_hover, 8, 1, _V(0,-1.5,-1), _V(0,-1,0));

th_retro[0] = CreateThruster (_V(0,0,0), _V(0,0,11), 0.0, landingtank, PB_ISP);
CreateThrusterGroup (th_retro, 1, THGROUP_RETRO);
AddExhaust (th_retro[0], 0, 0, _V(0,0,0), _V(0,0,11));

// RCS engines
th_rcs[ 0] = CreateThruster (_V(-2.98, 0.18,-4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Right Up Back
th_rcs[ 1] = CreateThruster (_V(-2.98, 0.18, 4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Right Up Front
th_rcs[ 2] = CreateThruster (_V( 2.98, 0.18,-4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Left Up Back
th_rcs[ 3] = CreateThruster (_V( 2.98, 0.18, 4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Left Up Front
th_rcs[ 4] = CreateThruster (_V(-2.98,-0.18,-4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Right Down Back
th_rcs[ 5] = CreateThruster (_V(-2.98,-0.18, 4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Right Down Front
th_rcs[ 6] = CreateThruster (_V( 2.98,-0.18,-4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Left Down Back
th_rcs[ 7] = CreateThruster (_V( 2.98,-0.18, 4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Left Down Front
th_rcs[ 8] = CreateThruster (_V( 0.00, 2.98, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Center Up Back
th_rcs[ 9] = CreateThruster (_V( 0.00,-2.98, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Center Down Back
th_rcs[10] = CreateThruster (_V(-0.18, 2.98, 4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Up Front
th_rcs[11] = CreateThruster (_V( 0.18, 2.98, 4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Up Front
th_rcs[12] = CreateThruster (_V(-0.18,-2.98,-4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Down Back
th_rcs[13] = CreateThruster (_V( 0.18,-2.98,-4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Down Back
th_rcs[14] = CreateThruster (_V(-2.98, 0.00,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Right Center Back
th_rcs[15] = CreateThruster (_V(-2.98, 0.00, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Right Center Back
th_rcs[16] = CreateThruster (_V( 2.98, 0.00, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Left Center Back
th_rcs[17] = CreateThruster (_V( 2.98, 0.00,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Left Center Back
th_rcs[18] = CreateThruster (_V( 0.00,-2.98,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Center Down Back
th_rcs[19] = CreateThruster (_V( 0.00, 2.98,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Center Up Back  
th_rcs[20] = CreateThruster (_V(-0.18, 2.98,-4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Up Back
th_rcs[21] = CreateThruster (_V(-0.18,-2.98, 4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Down Front
th_rcs[22] = CreateThruster (_V( 0.18, 2.98,-4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Up Back
th_rcs[23] = CreateThruster (_V( 0.18,-2.98, 4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Down Front

AddExhaust (th_rcs[ 0], 0.6, 0.1, _V(-2.98, 0.20,-4.94), _V(0,1,0));
AddExhaust (th_rcs[ 1], 0.6, 0.1, _V(-2.98, 0.20, 4.94), _V(0,1,0));
AddExhaust (th_rcs[ 2], 0.6, 0.1, _V( 2.98, 0.20,-4.94), _V(0,1,0));
AddExhaust (th_rcs[ 3], 0.6, 0.1, _V( 2.98, 0.20, 4.94), _V(0,1,0));
AddExhaust (th_rcs[ 4], 0.6, 0.1, _V(-2.98,-0.20,-4.94), _V(0,-1,0));
AddExhaust (th_rcs[ 5], 0.6, 0.1, _V(-2.98,-0.20, 4.94), _V(0,-1,0));
AddExhaust (th_rcs[ 6], 0.6, 0.1, _V( 2.98,-0.20,-4.94), _V(0,-1,0));
AddExhaust (th_rcs[ 7], 0.6, 0.1, _V( 2.98,-0.20, 4.94), _V(0,-1,0));
AddExhaust (th_rcs[ 8], 0.6, 0.1, _V( 0.00, 2.98, 5.22), _V(0,0,1));
AddExhaust (th_rcs[ 9], 0.6, 0.1, _V( 0.00,-2.98, 5.22), _V(0,0,1));
AddExhaust (th_rcs[10], 0.6, 0.1, _V(-0.18, 2.98, 4.94), _V(1,0,0));
AddExhaust (th_rcs[11], 0.6, 0.1, _V( 0.18, 2.98, 4.94), _V(-1,0,0));
AddExhaust (th_rcs[12], 0.6, 0.1, _V(-0.18,-2.98,-4.94), _V(1,0,0));
AddExhaust (th_rcs[13], 0.6, 0.1, _V( 0.18,-2.98,-4.94), _V(-1,0,0));
AddExhaust (th_rcs[14], 0.6, 0.1, _V(-2.98, 0.00,-5.22), _V(0,0,-1));
AddExhaust (th_rcs[15], 0.6, 0.1, _V(-2.98, 0.00, 5.22), _V(0,0,1));
AddExhaust (th_rcs[16], 0.6, 0.1, _V( 2.98, 0.00, 5.22), _V(0,0,1));
AddExhaust (th_rcs[17], 0.6, 0.1, _V( 2.98, 0.00,-5.22), _V(0,0,-1));
AddExhaust (th_rcs[18], 0.6, 0.1, _V( 0.00,-2.98,-5.22), _V(0,0,-1));
AddExhaust (th_rcs[19], 0.6, 0.1, _V( 0.00, 2.98,-5.22), _V(0,0,-1));
AddExhaust (th_rcs[20], 0.6, 0.1, _V(-0.18, 2.98,-4.94), _V(1,0,0));
AddExhaust (th_rcs[21], 0.6, 0.1, _V(-0.18,-2.98, 4.94), _V(1,0,0));
AddExhaust (th_rcs[22], 0.6, 0.1, _V( 0.18, 2.98,-4.94), _V(-1,0,0));
AddExhaust (th_rcs[23], 0.6, 0.1, _V( 0.18,-2.98, 4.94), _V(-1,0,0));

th_group[0] = th_rcs[0];
th_group[1] = th_rcs[2];
th_group[2] = th_rcs[5];
th_group[3] = th_rcs[7];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHUP);

th_group[0] = th_rcs[1];
th_group[1] = th_rcs[3];
th_group[2] = th_rcs[4];
th_group[3] = th_rcs[6];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHDOWN);

th_group[0] = th_rcs[0];
th_group[1] = th_rcs[1];
th_group[2] = th_rcs[6];
th_group[3] = th_rcs[7];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKLEFT);

th_group[0] = th_rcs[2];
th_group[1] = th_rcs[3];
th_group[2] = th_rcs[4];
th_group[3] = th_rcs[5];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKRIGHT);

th_group[0] = th_rcs[4];
th_group[1] = th_rcs[5];
th_group[2] = th_rcs[6];
th_group[3] = th_rcs[7];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_UP);

th_group[0] = th_rcs[0];
th_group[1] = th_rcs[1];
th_group[2] = th_rcs[2];
th_group[3] = th_rcs[3];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_DOWN);

th_group[0] = th_rcs[11];
th_group[1] = th_rcs[12];
th_group[2] = th_rcs[23];
th_group[3] = th_rcs[20];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_YAWLEFT);

th_group[0] = th_rcs[10];
th_group[1] = th_rcs[13];
th_group[2] = th_rcs[21];
th_group[3] = th_rcs[22];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_YAWRIGHT);

th_group[0] = th_rcs[11];
th_group[1] = th_rcs[13];
th_group[2] = th_rcs[22];
th_group[3] = th_rcs[23];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_LEFT);

th_group[0] = th_rcs[10];
th_group[1] = th_rcs[12];
th_group[2] = th_rcs[20];
th_group[3] = th_rcs[21];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_RIGHT);

th_group[0] = th_rcs[14];
th_group[1] = th_rcs[17];
th_group[2] = th_rcs[18];
th_group[3] = th_rcs[19];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_FORWARD);

th_group[0] = th_rcs[8];
th_group[1] = th_rcs[9];
th_group[2] = th_rcs[15];
th_group[3] = th_rcs[16];
CreateThrusterGroup (th_group, 4, THGROUP_ATT_BACK);

Je pense que le problème vient de mon vaisseau car LOLA fonctionne normalement avec d'autres vaisseaux

Merci d'avance

A+



Message modifié ( 21-06-2013 15:28 )


Offline jacquesmomo

  • Le budget !!!
  • Legend
  • ******
  • Posts: 7434
  • Country: France fr
  • Karma: 608
  • Plus on rate, plus on a de chances de réussir !..
Reply #1 - 21 June 2013, 16:11:07
Ah oui j'ai vu la vidéo...

Essaye avec le plein de carburant: je ne sais pas si c'est la cause de ton problème, mais avec la fusée lunaire, on avait ce problème. C'est Papyref qui a trouvé la solution, notre fusée (de Tintin) avec plus de gasoline marche mieux avec Lola... chais pas pourquoi...


Mes add-ons sont là !

Offline ea76620

  • Sr. Member
  • ****
  • Posts: 393
  • Country: France fr
  • Karma: 15
Reply #2 - 22 June 2013, 14:41:43
Bonjour,

Merci pour la réponse.

J'ai rajouté du carburant et LOLA pilote le fusée correctement plus longtemps il se met juste à faire n'importe quoi juste au moment d’atterrir.

Mais à cet instant le gros du travail est déjà fait, il faut juste désactiver le pilote auto et terminer à la main (comme dans les missions Apollo).

A+

« Last Edit: 22 June 2013, 14:41:43 by ea76620 »