예제 #1
0
 public AttitudeTelemetryMessage(float angx, float angy, float head, float headfree)
 {
     this.Angx                 = angx;
     this.Angy                 = angy;
     this.Head                 = head;
     this.Headfree             = headfree;
     this.Timestamp            = DateTime.UtcNow;
     this.TelemetryMessageType = TelemetryMessageType.Attitude;
 }
예제 #2
0
 public GpsTelemetryMessage(int gpsFix, int gpsNumSat, double gpsLatitude, double gpsLongitude, double gpsAltitude, double gpsSpeed, double gpsGroundCourse)
 {
     this.GpsFix               = gpsFix;
     this.GpsNumSat            = gpsNumSat;
     this.GpsLatitude          = gpsLatitude;
     this.GpsLongitude         = gpsLongitude;
     this.GpsAltitude          = gpsAltitude;
     this.GpsSpeed             = gpsSpeed;
     this.GpsGroundCourse      = gpsGroundCourse;
     this.Timestamp            = DateTime.UtcNow;
     this.TelemetryMessageType = TelemetryMessageType.Gps;
 }
예제 #3
0
 public TelemetryMessage(int gpsFix, int gpsNumSat, double gpsLatitude, double gpsLongitude, double gpsAltitude, double gpsSpeed, double gpsGroundCourse, float angx, float angy, float head, float headfree, int signal, double distance, double batteryVoltage, int batteryPercentage)
 {
     this.GpsFix               = gpsFix;
     this.GpsNumSat            = gpsNumSat;
     this.GpsLatitude          = gpsLatitude;
     this.GpsLongitude         = gpsLongitude;
     this.GpsAltitude          = gpsAltitude;
     this.GpsSpeed             = gpsSpeed;
     this.GpsGroundCourse      = gpsGroundCourse;
     this.Angx                 = angx;
     this.Angy                 = angy;
     this.Head                 = head;
     this.Headfree             = headfree;
     this.Signal               = signal;
     this.Distance             = distance;
     this.BatteryVoltage       = batteryVoltage;
     this.BatteryPercentage    = batteryPercentage;
     this.Timestamp            = DateTime.UtcNow;
     this.TelemetryMessageType = TelemetryMessageType.Generic;
 }
예제 #4
0
 public DistanceTelemetryMessage(double distance)
 {
     this.Distance             = distance;
     this.Timestamp            = DateTime.UtcNow;
     this.TelemetryMessageType = TelemetryMessageType.Distance;
 }
예제 #5
0
 public SignalTelemetryMessage(int signal)
 {
     this.Signal               = signal;
     this.Timestamp            = DateTime.UtcNow;
     this.TelemetryMessageType = TelemetryMessageType.Signal;
 }