Woodylepic
New member
- Joined
- Dec 29, 2009
- Messages
- 71
- Reaction score
- 0
- Points
- 0
Hi all
I have trouble whene i creat propelant tank
The probleme is
If I put more than 2 propelant resource in same stage, the third one was alway emty ?
Does somebody experience the same trouble ? and how to resolve that ?:idk:
Thank in advence for your reply.
Here my tank configuration and initialisation.
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (!ph_rcs_tank)ph_rcs_tank = CreatePropellantResource (STAGE1_RCS_MASS_FUEL); [/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (!ph_algol_tank) ph_algol_tank = CreatePropellantResource(STAGE1_ALGOL_MASS_FUEL); [/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (!ph_recrut_tank) ph_recrut_tank = CreatePropellantResource(STAGE1_RECRUIT_MASS_FUEL); //third one alway emty (that why I have to put algol_tank insted or RCS_tank in my ATTcontrolRCS) even if I interchange the order here so its not an error whit my tank ???[/SIZE]
Code:
void A_002::SetAttControlsFirst (void)
{
THRUSTER_HANDLE th_att_rot[4];
th_att_rot[0] = CreateThruster (_V(-2.234,0, -8.742-0.691620227), _V(0, -1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);// dn let
th_att_rot[1] = CreateThruster (_V(2.234,0,-8.742-0.691620227), _V(0, -1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);//dn right
th_att_rot[2] = CreateThruster (_V(-2.234,0,-8.742-0.691620227), _V(0,1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);//pitch up left
th_att_rot[3] = CreateThruster (_V(2.234,0, -8.742-0.691620227), _V(0,1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);//pitch up right
CreateThrusterGroup (th_att_rot, 2, THGROUP_ATT_PITCHUP);
CreateThrusterGroup (th_att_rot+2, 2, THGROUP_ATT_PITCHDOWN);
AddExhaust (th_att_rot[0], 0.99, 0.103, _V(-2.234,0,-8.742-0.691620227), _V(0,-1,0));
AddExhaust (th_att_rot[1], 0.99, 0.103, _V( 2.234,0,-8.742-0.691620227), _V(0,-1,0));
AddExhaust (th_att_rot[2], 0.99, 0.103, _V(-2.234,0,-8.742-0.691620227), _V(0, 1,0));
AddExhaust (th_att_rot[3], 0.99, 0.103, _V( 2.234,0,-8.742-0.691620227), _V(0, 1,0));
th_att_rot[0] = CreateThruster (_V(0,2.234,-8.742-0.691620227), _V(1,0,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[1] = CreateThruster (_V(0,-2.234,-8.742-0.691620227), _V(1,0,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[2] = CreateThruster (_V( 0,-2.234,-8.742-0.691620227), _V(-1,0,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[3] = CreateThruster (_V( 0,2.234,-8.742-0.691620227), _V(-1,0,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
CreateThrusterGroup (th_att_rot, 2, THGROUP_ATT_YAWLEFT);
CreateThrusterGroup (th_att_rot+2, 2, THGROUP_ATT_YAWRIGHT);
AddExhaust (th_att_rot[0], 0.99, 0.103, _V(0,2.234,-8.742-0.691620227), _V(-1,0,0));
AddExhaust (th_att_rot[1], 0.99, 0.103, _V(0,-2.234,-8.742-0.691620227), _V(-1,0,0));
AddExhaust (th_att_rot[2], 0.99, 0.103, _V(0,-2.234,-8.742-0.691620227), _V(1,0,0));
AddExhaust (th_att_rot[3], 0.99, 0.103, _V(0,2.234,-8.742-0.691620227), _V(1,0,0));
th_att_rot[0] = CreateThruster (_V( -2.234,0,-8.742-0.691620227), _V(0, -1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[1] = CreateThruster (_V(2.234,0,-8.742-0.691620227), _V(0,1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[2] = CreateThruster (_V(-2.234,0,-8.742-0.691620227), _V(0, 1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
th_att_rot[3] = CreateThruster (_V( 2.234,0,-8.742-0.691620227), _V(0,-1,0), MAX_RCS_THRUST, ph_algol_tank, ISP_FIRST_VAC);
CreateThrusterGroup (th_att_rot, 2, THGROUP_ATT_BANKLEFT);
CreateThrusterGroup (th_att_rot+2, 2, THGROUP_ATT_BANKRIGHT);
AddExhaust (th_att_rot[0], 0.99, 0.103, _V(-2.234,0,-8.742-0.691620227), _V(0,1,0));
AddExhaust (th_att_rot[1], 0.99, 0.103, _V( 2.234,0,-8.742-0.691620227), _V(0,-1,0));
AddExhaust (th_att_rot[2], 0.99, 0.103, _V( -2.234,0,-8.742-0.691620227), _V(0,-1,0));
AddExhaust (th_att_rot[3], 0.99, 0.103, _V(2.234,0,-8.742-0.691620227), _V(0,1,0));
}
Last edited by a moderator: