mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
better debug info
This commit is contained in:
parent
e46cd2c97b
commit
0b7c89af50
@ -88,10 +88,10 @@ if ((_pitchRate != 0 || {_yawRate != 0})) then {
|
|||||||
_stateParams set [4, _navigationParameters];
|
_stateParams set [4, _navigationParameters];
|
||||||
};
|
};
|
||||||
private _commandedAcceleration = [_args, _timestep, _seekerTargetPos, _profileAdjustedTargetPos, _targetData, _navigationParameters] call (missionNamespace getVariable _navigationFunction);
|
private _commandedAcceleration = [_args, _timestep, _seekerTargetPos, _profileAdjustedTargetPos, _targetData, _navigationParameters] call (missionNamespace getVariable _navigationFunction);
|
||||||
|
|
||||||
if (isNil "_commandedAcceleration") exitWith {
|
if (isNil "_commandedAcceleration") exitWith {
|
||||||
systemChat format ["Error in %1 Missile Type %2", _navigationFunction, typeOf _projectile];
|
systemChat format ["Error in %1 Missile Type %2 Seeker Pos %3", _navigationFunction, typeOf _projectile, _seekerTargetPos];
|
||||||
ERROR_MSG_2("_commandedAcceleration is nil! Guidance cancelled [%1 %2]",_navigationFunction,typeOf _projectile);
|
ERROR_MSG_3("_commandedAcceleration is nil! Guidance cancelled [%1 %2 %3]",_navigationFunction,typeOf _projectile,_seekerTargetPos);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (GVAR(debug_drawGuidanceInfo)) then {
|
if (GVAR(debug_drawGuidanceInfo)) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user