proto/PositionState: Add time for geonetworking
This commit is contained in:
parent
6604670490
commit
ba71e718df
1 changed files with 5 additions and 7 deletions
|
|
@ -35,18 +35,17 @@ enum GNAreaShape {
|
||||||
ETSI_AREASHAPE_CIRCLE = 0;
|
ETSI_AREASHAPE_CIRCLE = 0;
|
||||||
ETSI_AREASHAPE_RECTANGLE = 1;
|
ETSI_AREASHAPE_RECTANGLE = 1;
|
||||||
ETSI_AREASHAPE_ELLIPSIS = 2;
|
ETSI_AREASHAPE_ELLIPSIS = 2;
|
||||||
ETSI_AREASHAPE_UNKNOWN = 15;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GeoNetworking Destination Area/ Source Position
|
// GeoNetworking Destination Area/ Source Position
|
||||||
message ITSPosition {
|
message ITSPosition {
|
||||||
optional int32 latitude = 1; // Latitude in 1/10th of micro degrees
|
required int32 latitude = 1; // Latitude in 1/10th of micro degrees
|
||||||
optional int32 longitude = 2; // Longitude in 1/10th of micro degrees
|
required int32 longitude = 2; // Longitude in 1/10th of micro degrees
|
||||||
}
|
}
|
||||||
|
|
||||||
// GeoNetworking Destination Area
|
// GeoNetworking Destination Area
|
||||||
message GNArea {
|
message GNArea {
|
||||||
optional GNAreaShape area = 1 [default = ETSI_AREASHAPE_UNKNOWN];
|
optional GNAreaShape area = 1;
|
||||||
optional ITSPosition position = 2;
|
optional ITSPosition position = 2;
|
||||||
optional int32 distA = 3; // Distance A of the geometric shape in meters
|
optional int32 distA = 3; // Distance A of the geometric shape in meters
|
||||||
optional int32 distB = 4; // Distance B of the geometric shape in meters, mandatory for rectangle and ellipsis
|
optional int32 distB = 4; // Distance B of the geometric shape in meters, mandatory for rectangle and ellipsis
|
||||||
|
|
@ -55,8 +54,6 @@ message GNArea {
|
||||||
|
|
||||||
// GeoNetworking Transport
|
// GeoNetworking Transport
|
||||||
enum GNTransport {
|
enum GNTransport {
|
||||||
GN_TRANSPORT_DEFAULT = 0;
|
|
||||||
GN_TRANSPORT_GUC = 2; // GeoUnicast
|
|
||||||
GN_TRANSPORT_GAC = 3; // Geographically-Scoped Anycast
|
GN_TRANSPORT_GAC = 3; // Geographically-Scoped Anycast
|
||||||
GN_TRANSPORT_GBC = 4; // Geographically-Scoped broadcast
|
GN_TRANSPORT_GBC = 4; // Geographically-Scoped broadcast
|
||||||
GN_TRANSPORT_TSB = 5; // Topologically-scoped broadcast
|
GN_TRANSPORT_TSB = 5; // Topologically-scoped broadcast
|
||||||
|
|
@ -79,7 +76,8 @@ message RawMsgTx {
|
||||||
// ------------------------------
|
// ------------------------------
|
||||||
|
|
||||||
message PositionState {
|
message PositionState {
|
||||||
required Position position = 1;
|
required sfixed64 timestamp_ms = 1; // current UNIX time in milliseconds
|
||||||
|
required Position position = 2;
|
||||||
optional uint32 heading = 3; // heading in 1/10 deg
|
optional uint32 heading = 3; // heading in 1/10 deg
|
||||||
optional uint32 speed = 4; // speed in 1/100 m/s
|
optional uint32 speed = 4; // speed in 1/100 m/s
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue