protected override double ActualGetCurrentHeading(BoonBotBase targetBot) { var qry = new Message_Query(MainMessageKind.QueryBotStatus, KnownSubkinds.ReadHeading); qry.PublicBotId = targetBot.PublicId; hub.Launch <Message_Query>(qry); return(qry.DParameter); }
protected override int ActualGetCurrentSpeed(BoonBotBase targetBot) { var qry = new Message_Query(MainMessageKind.QueryBotStatus, KnownSubkinds.ReadSpeed); qry.PublicBotId = targetBot.PublicId; hub.Launch <Message_Query>(qry); NavigationInfoContext nic = (NavigationInfoContext)qry.ResponseContext; b.Assert.True(nic != null, "The response cant have a null value"); return(nic.SpeedDelta); }