Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / auto / protocol / src / main / proto / gal / navigation.proto
navigation.proto34 lines · 1.5 KiBRaw
| 1 | // Google Automotive Link navigation-status channel (service 10, |
| 2 | // NAVIGATION_STATUS): phone -> head unit turn guidance for the cluster and |
| 3 | // head-unit display. The head unit sends nothing normative back; inbound |
| 4 | // ch10 traffic is observed and ignored. |
| 5 | // |
| 6 | // Provenance: MA sender-defined throughout -- the teardown recovered the |
| 7 | // service descriptor slot (`Service.navigation_status`, control.proto field |
| 8 | // 8) but never the channel message IDs. STATUS (0x8001) mirrors the |
| 9 | // aasdk/openauto phone-to-HU navigation status message; if the teardown ever |
| 10 | // recovers the real IDs they replace `GalMessage.NavigationStatus`. This is |
| 11 | // a DHU-tolerated stub by construction: an unknown ch10 payload earns at |
| 12 | // worst a bare MessageError (0xff) on ch10 while video and the bring-up |
| 13 | // carry on. |
| 14 | // |
| 15 | // Stub phase (Phase 5): the phone posts one well-formed inactive status on |
| 16 | // the grant ("no guidance") and stays quiet. Live turn updates land with |
| 17 | // Phase 6 maps-dev through NavStatusCodec.encodeStatus. |
| 18 | |
| 19 | syntax = "proto2"; |
| 20 | |
| 21 | package gal; |
| 22 | |
| 23 | option java_package = "com.vayunmathur.auto.protocol.gal"; |
| 24 | option java_multiple_files = true; |
| 25 | |
| 26 | // 0x8001, phone -> HU. All fields optional: the stub posts guidance_active |
| 27 | // explicitly false (08 00 on the wire) rather than an empty payload, so the |
| 28 | // "no guidance" state is stated, not implied. |
| 29 | message NavigationStatus { |
| 30 | optional bool guidance_active = 1; |
| 31 | optional string next_road = 2; |
| 32 | optional int32 next_turn_distance_m = 3; |
| 33 | optional string maneuver = 4; |
| 34 | } |