better debug info

This commit is contained in:
Bailey Danyluk 2022-06-02 19:30:28 -06:00
parent e46cd2c97b
commit 0b7c89af50

View File

@ -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 {