Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@willin willin released this 14 Jun 02:42
· 3 commits to master since this release
syntax = "proto3";

message Message {

    string did = 1;
    google.protobuf.Timestamp timestamp = 2;
    Data data = 3;
}

message Data {

    Gateway gateway = 1;
    Attitude attitude = 21;
    Battery battery = 22;
    Battery battery_controller = 23;
    Dronestatus dronestatus = 24;
    GNSS gnss = 25;
    Signal signal = 26;
    Signal signal_image = 27;
    Velocity velocity = 28;
    Atmosphere atmosphere = 31;
    repeated Custom custom = 99;
}

message Custom {

    string key = 1;
    google.protobuf.Any val = 2;
}

message google {

    message protobuf {

        message Timestamp {

            int64 seconds = 1;
            int32 nanos = 2;
        }

        message Any {

            string type_url = 1;
            bytes value = 2;
        }
    }
}

message Gateway {

    string name = 1;
}

message Attitude {

    float pitch = 1;
    float roll = 2;
    float yaw = 3;
}

message Battery {

    uint32 percent = 1;
    bool charging = 2;
    uint32 voltage = 3;
    int32 current = 4;
    int32 temperature = 5;
}

message Dronestatus {

    bool motors = 1;
    bool flying = 2;
}

message GNSS {

    uint32 satellite = 1;
    double latitude = 2;
    double longitude = 3;
    double amsl = 4;
    double ato = 5;
    google.protobuf.Timestamp timestamp = 6;
}

message Signal {

    uint32 percent = 1;
    Type type = 2;
    string protocal = 3;
    int32 rssi = 4;

    enum Type {

        UNDEFINED = 0;
        OTHER = 1;
        TELE2G = 2;
        TELE3G = 3;
        TELE4G = 4;
        TELE5G = 5;
        BAND24GHZ = 6;
        BAND58GHZ = 7;
    }
}

message Velocity {

    float x = 1;
    float y = 2;
    float z = 3;
}

message Atmosphere {

    uint32 pm25 = 1;
    uint32 co = 2;
    uint32 so2 = 3;
    uint32 no2 = 4;
    uint32 o3 = 5;
    int32 temperature = 6;
    uint32 humidity = 7;
    uint32 pm10 = 8;
}

修改记录

  • 新增大气传感器
  • 信号传感器区分数据/图像