1
0
Fork 0

Remove debug and tidy up messages

This commit is contained in:
Richard Harrison 2016-05-16 22:06:48 +02:00
parent 4e351957df
commit 56f6e4fd15
2 changed files with 3 additions and 7 deletions

View file

@ -95,7 +95,6 @@ var ANSPN46ActiveNotification =
me.BeamRange = 35; ##nm
me.BeamPower = 999; ## mw ???
}
print("\nANSPN46ActiveNotification::set_from: ", me.Ident);
};
new_class.bridgeProperties = func
{
@ -258,8 +257,6 @@ var ANSPN46_System =
{
new: func(_ident,_model)
{
print("AN/SNP46 created for "~_ident);
var new_class = emesary.Recipient.new(_ident~".ANSPN46");
new_class.ara_63_position = geo.Coord.new();
@ -347,7 +344,6 @@ var ANSPN46_System =
# this will be reset if we receive something back from the aircraft.
if (me.UpdateRate < 10)
me.UpdateRate = me.UpdateRate+1;
print("AN/SPN 46 : update msg: ",me.msg.Ident," sys.rate=",me.UpdateRate);
return emesary.GlobalTransmitter.NotifyAll(me.msg);
};

View file

@ -82,9 +82,9 @@ var Transmitter =
PrintRecipients: func
{
print("Recpient list for ",me.Ident,"(",me.UniqueId,")");
print("Emesary: Recipient list for ",me.Ident,"(",me.UniqueId,")");
for (var idx = 0; idx < size(me.Recipients); idx += 1)
print("Recpient ",idx," ",me.Recipients[idx].Ident," (",me.Recipients[idx].UniqueId,")");
print("Emesary: Recipient[",idx,"] ",me.Recipients[idx].Ident," (",me.Recipients[idx].UniqueId,")");
},
# Notify all registered recipients. Stop when receipt status of abort or finished are received.
@ -185,7 +185,7 @@ var Recipient =
if (_ident == nil or _ident == "")
{
_ident = id(new_class);
print("ERROR: Ident required when creating a recipient, defaulting to ",_ident);
print("Emesary Error: Ident required when creating a recipient, defaulting to ",_ident);
}
Recipient.construct(_ident, new_class);
},