void Start()
    {
        data   = new RealtimeDataPacket();
        record = new List <RealtimeDataPacket>();
        InitSocket();

        _lastFrameAngular = this.transform.rotation.eulerAngles;
    }
Exemple #2
0
// Copy constructor
    public RealtimeDataPacket(RealtimeDataPacket packet)
    {
        pitch     = packet.pitch;
        yaw       = packet.yaw;
        roll      = packet.roll;
        longitude = packet.longitude;
        altitude  = packet.altitude;
        latitude  = packet.latitude;
        speed     = packet.speed;
        seq       = packet.seq;
    }
Exemple #3
0
 void Start()
 {
     data = new RealtimeDataPacket();
     InitSocket();
 }