// tracking update public void CreateTrackingUpdate(string transactionid) { trackingupdate = new TrackingUpdate(email, password) { ShipwireId = transactionid }; }
public void ReceiveUpdate(TrackingUpdate update) { _imuMap[Imu.Chest].rawQuat = update.Chest; _imuMap[Imu.Left_Upper_Arm].rawQuat = update.LeftUpperArm; _imuMap[Imu.Right_Upper_Arm].rawQuat = update.RightUpperArm; }
void Update() { if (Time.time > (lastUpdate + updateInterval)) { lastUpdate = Time.time; Vector3 position = this.gameObject.transform.position; // Create object with our coordinates TrackingUpdate update = new TrackingUpdate(position.x, position.y, position.z); // Optional. Tell the server to set our entity type to this value. Searches // can filter on this. //update.entityType = "player"; // Optional, tell the server to filter on this type of entity in the search, and only // return entities that match this type. A null value means return anything within radius. //update.neighborEntityType = "npc"; // TrackExtra is a message you can customize any way you want and allows you to extend the fields that // the tracking system stores. It will be saved on the server and returned in tracking updates to other clients. // TrackExtra is located in config/game_messages.proto on the server, or you can edit it via the web ui. TrackExtra trackExtra = new TrackExtra(); trackExtra.speed = 1.0f; trackExtra.velocity = 12.0f; update.trackExtra = trackExtra; entityTracking.Update(update); } }
public void ReceiveUpdate(TrackingUpdate update) { _rawQuaternions[Imu.Chest].Orientation = update.Chest; _rawQuaternions[Imu.Left_Forearm].Orientation = update.LeftForearm; _rawQuaternions[Imu.Left_Upper_Arm].Orientation = update.LeftUpperArm; _rawQuaternions[Imu.Right_Forearm].Orientation = update.RightForearm; _rawQuaternions[Imu.Right_Upper_Arm].Orientation = update.RightUpperArm; }
public async Task SendAsync(TrackingUpdate trackingUpdate) { FcmNotification notification = new FcmNotification(JsonConvert.SerializeObject(trackingUpdate)); await _hub.SendNotificationAsync(notification, new List <string>() { trackingUpdate.trackingNumber }); }
public void ReceiveUpdate(TrackingUpdate update) { _calibrator.ReceiveUpdate(update); }
public void ReceiveUpdate(TrackingUpdate t) { //do nothing }