Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afe19e7f3e |
54 changed files with 6296 additions and 581305 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -28,6 +28,3 @@ target/
|
||||||
# Ignore KiCad backups and lock files
|
# Ignore KiCad backups and lock files
|
||||||
hardware/c_its-companion/c_its-companion-backups/
|
hardware/c_its-companion/c_its-companion-backups/
|
||||||
*.kicad_pro.lck
|
*.kicad_pro.lck
|
||||||
|
|
||||||
# Ignore FreeCAD backups
|
|
||||||
*.FCBak
|
|
||||||
|
|
|
||||||
194
Cargo.lock
generated
194
Cargo.lock
generated
|
|
@ -166,29 +166,6 @@ dependencies = [
|
||||||
"generic-array",
|
"generic-array",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "bt-hci"
|
|
||||||
version = "0.8.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "211713d2e9fb4793ce4360a712c0764264aff6be48932ccf02ca2a331c0436a9"
|
|
||||||
dependencies = [
|
|
||||||
"btuuid",
|
|
||||||
"embassy-sync 0.8.0",
|
|
||||||
"embedded-io 0.7.1",
|
|
||||||
"embedded-io-async 0.7.0",
|
|
||||||
"futures-intrusive",
|
|
||||||
"heapless 0.9.2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "btuuid"
|
|
||||||
version = "0.1.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f5f48f1e9b0aad0a4f05d17bdeae0fa20ff798e272a03a6940ca27ad9c5a6ae7"
|
|
||||||
dependencies = [
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bumpalo"
|
name = "bumpalo"
|
||||||
version = "3.20.2"
|
version = "3.20.2"
|
||||||
|
|
@ -267,15 +244,6 @@ version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0b396d1f76d455557e1218ec8066ae14bba60b4b36ecd55577ba979f5db7ecaa"
|
checksum = "0b396d1f76d455557e1218ec8066ae14bba60b4b36ecd55577ba979f5db7ecaa"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "convert_case"
|
|
||||||
version = "0.8.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f"
|
|
||||||
dependencies = [
|
|
||||||
"unicode-segmentation",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cordyceps"
|
name = "cordyceps"
|
||||||
version = "0.3.4"
|
version = "0.3.4"
|
||||||
|
|
@ -988,7 +956,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "23fbff98b06a96b6ce3791ecec5c668524052a068e23aacd23afe17ddba844ce"
|
checksum = "23fbff98b06a96b6ce3791ecec5c668524052a068e23aacd23afe17ddba844ce"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"allocator-api2",
|
"allocator-api2",
|
||||||
"bt-hci",
|
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"docsplay",
|
"docsplay",
|
||||||
"document-features",
|
"document-features",
|
||||||
|
|
@ -1185,14 +1152,11 @@ name = "esp32-c_its-companion"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_float_eq",
|
"assert_float_eq",
|
||||||
"bt-hci",
|
|
||||||
"c-its-parser",
|
"c-its-parser",
|
||||||
"chrono",
|
"chrono",
|
||||||
"critical-section",
|
"critical-section",
|
||||||
"crossbeam-queue",
|
"crossbeam-queue",
|
||||||
"embassy-executor",
|
"embassy-executor",
|
||||||
"embassy-futures",
|
|
||||||
"embassy-sync 0.7.2",
|
|
||||||
"embassy-time",
|
"embassy-time",
|
||||||
"embassy_gps",
|
"embassy_gps",
|
||||||
"embedded-graphics",
|
"embedded-graphics",
|
||||||
|
|
@ -1215,9 +1179,6 @@ dependencies = [
|
||||||
"profont",
|
"profont",
|
||||||
"prost",
|
"prost",
|
||||||
"prost-build",
|
"prost-build",
|
||||||
"static_cell",
|
|
||||||
"tinytga",
|
|
||||||
"trouble-host",
|
|
||||||
"ublox",
|
"ublox",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -1359,52 +1320,12 @@ version = "2.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "futures"
|
|
||||||
version = "0.3.32"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
|
|
||||||
dependencies = [
|
|
||||||
"futures-channel",
|
|
||||||
"futures-core",
|
|
||||||
"futures-io",
|
|
||||||
"futures-sink",
|
|
||||||
"futures-task",
|
|
||||||
"futures-util",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "futures-channel"
|
|
||||||
version = "0.3.32"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
|
|
||||||
dependencies = [
|
|
||||||
"futures-core",
|
|
||||||
"futures-sink",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-core"
|
name = "futures-core"
|
||||||
version = "0.3.32"
|
version = "0.3.32"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "futures-intrusive"
|
|
||||||
version = "0.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
|
|
||||||
dependencies = [
|
|
||||||
"futures-core",
|
|
||||||
"lock_api",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "futures-io"
|
|
||||||
version = "0.3.32"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-sink"
|
name = "futures-sink"
|
||||||
version = "0.3.32"
|
version = "0.3.32"
|
||||||
|
|
@ -1424,10 +1345,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-sink",
|
|
||||||
"futures-task",
|
"futures-task",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
"slab",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -1642,18 +1561,6 @@ dependencies = [
|
||||||
"syn 2.0.117",
|
"syn 2.0.117",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "js-sys"
|
|
||||||
version = "0.3.98"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"
|
|
||||||
dependencies = [
|
|
||||||
"cfg-if",
|
|
||||||
"futures-util",
|
|
||||||
"once_cell",
|
|
||||||
"wasm-bindgen",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lazy_static"
|
name = "lazy_static"
|
||||||
version = "1.5.0"
|
version = "1.5.0"
|
||||||
|
|
@ -1696,15 +1603,6 @@ version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
|
checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "lock_api"
|
|
||||||
version = "0.4.14"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
||||||
dependencies = [
|
|
||||||
"scopeguard",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "log"
|
name = "log"
|
||||||
version = "0.4.29"
|
version = "0.4.29"
|
||||||
|
|
@ -2286,12 +2184,6 @@ version = "1.0.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
|
checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "scopeguard"
|
|
||||||
version = "1.2.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "semver"
|
name = "semver"
|
||||||
version = "1.0.28"
|
version = "1.0.28"
|
||||||
|
|
@ -2369,12 +2261,6 @@ version = "1.3.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "slab"
|
|
||||||
version = "0.4.12"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smallvec"
|
name = "smallvec"
|
||||||
version = "1.15.1"
|
version = "1.15.1"
|
||||||
|
|
@ -2423,15 +2309,6 @@ version = "1.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "static_cell"
|
|
||||||
version = "2.1.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0530892bb4fa575ee0da4b86f86c667132a94b74bb72160f58ee5a4afec74c23"
|
|
||||||
dependencies = [
|
|
||||||
"portable-atomic",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "strsim"
|
name = "strsim"
|
||||||
version = "0.11.1"
|
version = "0.11.1"
|
||||||
|
|
@ -2530,16 +2407,6 @@ dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "tinytga"
|
|
||||||
version = "0.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "477839bd612acb4d0551915eaf6eef8cc1b3a9dd58e18e9c2b746c78614a25d5"
|
|
||||||
dependencies = [
|
|
||||||
"embedded-graphics",
|
|
||||||
"nom",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "toml_datetime"
|
name = "toml_datetime"
|
||||||
version = "1.1.1+spec-1.1.0"
|
version = "1.1.1+spec-1.1.0"
|
||||||
|
|
@ -2631,39 +2498,6 @@ dependencies = [
|
||||||
"tracing-log",
|
"tracing-log",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "trouble-host"
|
|
||||||
version = "0.6.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1df7817cead4b83dfbeeaa59736ecbc97c30b21dc3bfc0cc2ce8a6687f70b37a"
|
|
||||||
dependencies = [
|
|
||||||
"bt-hci",
|
|
||||||
"embassy-futures",
|
|
||||||
"embassy-sync 0.7.2",
|
|
||||||
"embassy-time",
|
|
||||||
"embedded-io 0.7.1",
|
|
||||||
"futures",
|
|
||||||
"heapless 0.9.2",
|
|
||||||
"rand_core 0.6.4",
|
|
||||||
"static_cell",
|
|
||||||
"trouble-host-macros",
|
|
||||||
"zerocopy",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "trouble-host-macros"
|
|
||||||
version = "0.4.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "2d809ae05f510cf8f1d863749281eb28e049d9ae4ad52d92ea7a0ac068a0e17c"
|
|
||||||
dependencies = [
|
|
||||||
"convert_case",
|
|
||||||
"darling 0.20.11",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 2.0.117",
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typenum"
|
name = "typenum"
|
||||||
version = "1.20.0"
|
version = "1.20.0"
|
||||||
|
|
@ -2705,12 +2539,6 @@ version = "1.0.24"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "unicode-segmentation"
|
|
||||||
version = "1.13.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-width"
|
name = "unicode-width"
|
||||||
version = "0.1.14"
|
version = "0.1.14"
|
||||||
|
|
@ -2742,8 +2570,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
|
checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getrandom",
|
"getrandom",
|
||||||
"js-sys",
|
|
||||||
"wasm-bindgen",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -3049,26 +2875,6 @@ dependencies = [
|
||||||
"syn 2.0.117",
|
"syn 2.0.117",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerocopy"
|
|
||||||
version = "0.8.49"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "bce33a6288fa3f072a8c2c7d0f2fdbb90e28298f0135c1f99b96c3db2efcc60b"
|
|
||||||
dependencies = [
|
|
||||||
"zerocopy-derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerocopy-derive"
|
|
||||||
version = "0.8.49"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "8fd425244944f4ab65ccff928e7323354c5a018c75838362fdce749dfad2ee1e"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 2.0.117",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zmij"
|
name = "zmij"
|
||||||
version = "1.0.21"
|
version = "1.0.21"
|
||||||
|
|
|
||||||
26
Cargo.toml
26
Cargo.toml
|
|
@ -14,6 +14,12 @@ name = "test"
|
||||||
path = "./src/test.rs"
|
path = "./src/test.rs"
|
||||||
required-features = ["std", "cam"]
|
required-features = ["std", "cam"]
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
## run with cargo run --target host-tuple --bin test-proto --no-default-features -F std,uart,cam
|
||||||
|
name = "test-proto"
|
||||||
|
path = "./src/test-proto.rs"
|
||||||
|
required-features = ["std", "uart", "cam"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["esp", "spat", "gnss_ubx", "screen"]
|
default = ["esp", "spat", "gnss_ubx", "screen"]
|
||||||
|
|
||||||
|
|
@ -23,8 +29,6 @@ esp = [
|
||||||
"dep:esp-rtos",
|
"dep:esp-rtos",
|
||||||
"dep:esp-bootloader-esp-idf",
|
"dep:esp-bootloader-esp-idf",
|
||||||
"dep:embassy-executor",
|
"dep:embassy-executor",
|
||||||
"dep:embassy-futures",
|
|
||||||
"dep:embassy-sync",
|
|
||||||
"dep:embassy-time",
|
"dep:embassy-time",
|
||||||
"dep:embedded-io",
|
"dep:embedded-io",
|
||||||
"dep:embedded-io-async",
|
"dep:embedded-io-async",
|
||||||
|
|
@ -32,7 +36,6 @@ esp = [
|
||||||
"dep:esp-backtrace",
|
"dep:esp-backtrace",
|
||||||
"dep:esp-println",
|
"dep:esp-println",
|
||||||
"dep:esp-radio",
|
"dep:esp-radio",
|
||||||
"dep:bt-hci",
|
|
||||||
"esp32-cits-core/esp32c5",
|
"esp32-cits-core/esp32c5",
|
||||||
"esp32-cits-core/log-04",
|
"esp32-cits-core/log-04",
|
||||||
]
|
]
|
||||||
|
|
@ -53,11 +56,9 @@ spat = ["c-its-parser/spatem", "c-its-parser/mapem"]
|
||||||
# enable some debug printing (without enabling debug logging of the ESP RTOS)
|
# enable some debug printing (without enabling debug logging of the ESP RTOS)
|
||||||
spat_debug = []
|
spat_debug = []
|
||||||
# enable ST7789 based display
|
# enable ST7789 based display
|
||||||
screen = ["dep:mipidsi", "dep:embedded-graphics", "dep:embedded-hal-bus", "dep:profont", "dep:tinytga"]
|
screen = ["dep:mipidsi", "dep:embedded-graphics", "dep:embedded-hal-bus", "dep:profont"]
|
||||||
# enable I/O via UART
|
# enable I/O via UART
|
||||||
uart = ["_uart", "_gnss"]
|
uart = ["_uart", "_gnss", "dep:prost"]
|
||||||
# enable I/O via BLE
|
|
||||||
ble = ["_gnss"]
|
|
||||||
|
|
||||||
# internal feature, that any UART I/O is enabled
|
# internal feature, that any UART I/O is enabled
|
||||||
_uart = []
|
_uart = []
|
||||||
|
|
@ -71,7 +72,6 @@ esp-rtos = { version = "0.3.0", optional = true, features = [
|
||||||
"embassy",
|
"embassy",
|
||||||
"esp-alloc",
|
"esp-alloc",
|
||||||
"esp-radio",
|
"esp-radio",
|
||||||
"embassy",
|
|
||||||
"esp32c5",
|
"esp32c5",
|
||||||
"log-04",
|
"log-04",
|
||||||
] }
|
] }
|
||||||
|
|
@ -80,16 +80,14 @@ esp-bootloader-esp-idf = { version = "0.5.0", optional = true, features = ["esp3
|
||||||
log = "0.4.27"
|
log = "0.4.27"
|
||||||
|
|
||||||
critical-section = "1.2.0"
|
critical-section = "1.2.0"
|
||||||
bt-hci = { version = "0.8.0", optional = true }
|
|
||||||
embassy-executor = { version = "0.10.0", optional = true, features = ["log"] }
|
embassy-executor = { version = "0.10.0", optional = true, features = ["log"] }
|
||||||
embassy-futures = { version = "0.1.2", optional = true }
|
|
||||||
embassy-sync = { version = "0.7", optional = true }
|
|
||||||
embassy-time = { version = "0.5.0", optional = true, features = ["log"] }
|
embassy-time = { version = "0.5.0", optional = true, features = ["log"] }
|
||||||
embedded-io = { version = "0.7.1", optional = true }
|
embedded-io = { version = "0.7.1", optional = true }
|
||||||
embedded-io-async = { version = "0.7.0", optional = true }
|
embedded-io-async = { version = "0.7.0", optional = true }
|
||||||
esp-alloc = { version = "0.10.0", optional = true }
|
esp-alloc = { version = "0.10.0", optional = true }
|
||||||
esp-backtrace = { version = "0.19.0", optional = true, features = [
|
esp-backtrace = { version = "0.19.0", optional = true, features = [
|
||||||
"esp32c5",
|
"esp32c5",
|
||||||
|
"panic-handler",
|
||||||
"println",
|
"println",
|
||||||
] }
|
] }
|
||||||
esp-println = { version = "0.17.0", optional = true, default-features = false, features = ["colors", "critical-section", "jtag-serial", "esp32c5", "log-04"] }
|
esp-println = { version = "0.17.0", optional = true, default-features = false, features = ["colors", "critical-section", "jtag-serial", "esp32c5", "log-04"] }
|
||||||
|
|
@ -100,10 +98,7 @@ esp-radio = { version = "0.18.0", optional = true, features = [
|
||||||
"unstable",
|
"unstable",
|
||||||
"wifi",
|
"wifi",
|
||||||
"sniffer",
|
"sniffer",
|
||||||
"ble",
|
|
||||||
] }
|
] }
|
||||||
trouble-host = { version = "0.6.0", features = ["gatt", "central", "derive", "default-packet-pool"] }
|
|
||||||
static_cell = "2"
|
|
||||||
|
|
||||||
embassy_gps = { version = "0.1.0", optional = true, default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
embassy_gps = { version = "0.1.0", optional = true, default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
||||||
esp32-cits-core = { version = "0.1.0", default-features = false, git = "https://git.hamburg.ccc.de/jtbx/esp32-cits-core", branch = "main" }
|
esp32-cits-core = { version = "0.1.0", default-features = false, git = "https://git.hamburg.ccc.de/jtbx/esp32-cits-core", branch = "main" }
|
||||||
|
|
@ -122,8 +117,7 @@ geo-types = { version = "0.7.19", default-features = false }
|
||||||
mipidsi = { version = "0.10.0", optional = true }
|
mipidsi = { version = "0.10.0", optional = true }
|
||||||
num-traits = { version = "0.2.19", default-features = false, features = ["libm"] }
|
num-traits = { version = "0.2.19", default-features = false, features = ["libm"] }
|
||||||
profont = { version = "0.7.0", optional = true }
|
profont = { version = "0.7.0", optional = true }
|
||||||
prost = { version = "0.14", default-features = false, features = ["derive"] }
|
prost = { version = "0.14", optional = true, default-features = false, features = ["derive"] }
|
||||||
tinytga = { version = "0.5.0", optional = true }
|
|
||||||
ublox = { version = "0.10", optional = true, default-features = false, features = ["alloc", "ubx_proto27"] }
|
ublox = { version = "0.10", optional = true, default-features = false, features = ["alloc", "ubx_proto27"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
||||||
47
Readme.md
47
Readme.md
|
|
@ -8,7 +8,7 @@ The code is currently tailored to:
|
||||||
- U-Blox M10Q GNSS (connected on GPIO12 (RX), GPIO11 (TX), and GPIO25 (reset))
|
- U-Blox M10Q GNSS (connected on GPIO12 (RX), GPIO11 (TX), and GPIO25 (reset))
|
||||||
or Seeed XIAO L67K (connected on GPIO12 (RX), GPIO11 (TX), GPIO1 (wakeup) and GPIO25 (reset))
|
or Seeed XIAO L67K (connected on GPIO12 (RX), GPIO11 (TX), GPIO1 (wakeup) and GPIO25 (reset))
|
||||||
only available with `gnss_ubx` or `gnss_l67k` feature (which is included in `spat` feature)
|
only available with `gnss_ubx` or `gnss_l67k` feature (which is included in `spat` feature)
|
||||||
- Some ST7789 240*280px screen (connected on GPIO8 (SCL/ SCK), GPIO10 (SDA/ MOSI), GPIO7 (reset), GPIO23 (DC), GPIO24 (CS), GPIO0 (BL))
|
- Some ST7789 172*320px screen (connected on GPIO8 (SCL/ SCK), GPIO10 (SDA/ MOSI), GPIO7 (reset), GPIO23 (DC), GPIO24 (CS), TODO GPIO0 (BL))
|
||||||
only available with `screen` feature (which is included in `spat` feature)
|
only available with `screen` feature (which is included in `spat` feature)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
@ -55,13 +55,6 @@ This is **not** implemented in this application!
|
||||||
### UART
|
### UART
|
||||||
Enable UART I/O protocol according to [docs/uart-protocol.md](./docs/uart-protocol.md).
|
Enable UART I/O protocol according to [docs/uart-protocol.md](./docs/uart-protocol.md).
|
||||||
|
|
||||||
### BLE
|
|
||||||
Enable BLE I/O protocol according to [docs/ble-protocol.md](./docs/ble-protocol.md).
|
|
||||||
Enabling `denm` feature or `cam` feature is recommended, otherwise no data will be received.
|
|
||||||
|
|
||||||
Note: When changing the set of supported messages on the BLE interface, you may need to turn bluetooth off and on again on your client device.
|
|
||||||
Otherwise the client may not re-scan the service's characteristics and still use the previous set of characteristics.
|
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
@ -77,7 +70,7 @@ rustup target add riscv32imac-unknown-none-elf
|
||||||
cargo install espflash --locked
|
cargo install espflash --locked
|
||||||
```
|
```
|
||||||
|
|
||||||
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy -o ble-trouble`.)
|
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy`.)
|
||||||
|
|
||||||
To use the proper rustfmt features, enable the nightly toolchain:
|
To use the proper rustfmt features, enable the nightly toolchain:
|
||||||
```shell
|
```shell
|
||||||
|
|
@ -98,11 +91,9 @@ Additional features are available through feature flags:
|
||||||
|
|
||||||
Officially supported feature combinations are:
|
Officially supported feature combinations are:
|
||||||
- `esp,spat,gnss_ubx,screen` (default features, "standalone")
|
- `esp,spat,gnss_ubx,screen` (default features, "standalone")
|
||||||
- `esp,spat,gnss_ubx,screen,ble` ("standalone with BLE")
|
- `esp,spat,gnss_ubx,screen,cam_tx` ("standalone with CAM")
|
||||||
- `esp,spat,gnss_ubx,screen,cam_tx,ble` ("standalone with CAM")
|
|
||||||
- `esp,spat,gnss_ubx,screen,cam_tx,cam,denm`
|
- `esp,spat,gnss_ubx,screen,cam_tx,cam,denm`
|
||||||
- `esp,uart,cam,denm` ("smartphone companion with UART")
|
- `esp,uart,cam,denm` ("smartphone companion")
|
||||||
- `esp,ble,cam,denm,cam_tx` ("smartphone companion with BLE")
|
|
||||||
|
|
||||||
Connect your ESP32-C5 and run:
|
Connect your ESP32-C5 and run:
|
||||||
|
|
||||||
|
|
@ -120,33 +111,3 @@ The unit tests in this project are meant to be run on the host:
|
||||||
```
|
```
|
||||||
cargo test --target host-tuple --bin test --no-default-features -F std,spat
|
cargo test --target host-tuple --bin test --no-default-features -F std,spat
|
||||||
```
|
```
|
||||||
|
|
||||||
## PCB and Housing
|
|
||||||
A simple PCB to combine the u-blox SAM-M10Q, a XIAO ESP32-C5 and the screen can be found in [hardware/c_its-companion/](./hardware/c_its-companion/) including finished gerber files.
|
|
||||||
Additional hardware:
|
|
||||||
|
|
||||||
- SMD Pin-Header 8 pos.: Amphenol 10129380-908001BLF
|
|
||||||
- Snap-in stand-off 8mm: WE 702910000
|
|
||||||
|
|
||||||
(You may try to put the display lower with header Samtech TSM-108-04-T-SV and stand-off WE 702917000, but antenna needs to be plugged in before putting the display on then.)
|
|
||||||
|
|
||||||
The housing is a FreeCAD model at [hardware/housing/c_its-companion-housing.FCStd](./hardware/housing/c_its-companion-housing.FCStd), but the same folder also contains finished 3mf models that can be loaded into a 3D printer slicer.
|
|
||||||
Exports are available for:
|
|
||||||
|
|
||||||
- 7mm: EREMIT 654060 (6.5x40x60 mm) LiPo battery
|
|
||||||
- 9mm: Some 9x40x60 mm LiPo battery, e.g. LP803860 (2000 mAh)
|
|
||||||
|
|
||||||
The display is expected to be soldered to the pin header directly to save height.
|
|
||||||
|
|
||||||
## Tips and Tricks
|
|
||||||
|
|
||||||
### Create TGA Assets
|
|
||||||
|
|
||||||
Images are loaded as TGA assets, but shall not have an alpha channel.
|
|
||||||
You can convert them using [ImageMagick](https://imagemagick.org) like this:
|
|
||||||
```shell
|
|
||||||
# resize to 25px height, adding a black background to the white symbol and vice versa
|
|
||||||
magick Sinnbild_Radfahrer_StVO_1992-200px-white.png -resize x25 -background black -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-white.tga
|
|
||||||
magick Sinnbild_Radfahrer_StVO_1992-200px-black.png -resize x25 -background white -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-black.tga
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
|
||||||
22
build.rs
22
build.rs
|
|
@ -9,7 +9,6 @@ fn main() -> std::io::Result<()> {
|
||||||
println!("cargo:rustc-link-arg=-Tlinkall.x");
|
println!("cargo:rustc-link-arg=-Tlinkall.x");
|
||||||
}
|
}
|
||||||
|
|
||||||
// compile protobuf definition to rust code
|
|
||||||
let descriptor_path =
|
let descriptor_path =
|
||||||
std::path::PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto_descriptor.bin");
|
std::path::PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto_descriptor.bin");
|
||||||
|
|
||||||
|
|
@ -18,27 +17,6 @@ fn main() -> std::io::Result<()> {
|
||||||
.compile_well_known_types()
|
.compile_well_known_types()
|
||||||
.compile_protos(&["docs/c_its-messages.proto"], &["docs/"])?;
|
.compile_protos(&["docs/c_its-messages.proto"], &["docs/"])?;
|
||||||
|
|
||||||
// get git revision
|
|
||||||
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
|
|
||||||
|
|
||||||
// length:
|
|
||||||
// - tag name: 6-8 chars (v0.1.0 to v1.23.42)
|
|
||||||
// - offset+hash: 0-12 chars (up to 99 commits from tag + 8 char hash)
|
|
||||||
// - SUM: 6-20
|
|
||||||
let git_output = std::process::Command::new("git")
|
|
||||||
.args(["describe", "--tags", "--match", "v*", "--always"])
|
|
||||||
.output()
|
|
||||||
.unwrap();
|
|
||||||
assert!(
|
|
||||||
git_output.stderr.is_empty(),
|
|
||||||
"{}",
|
|
||||||
String::from_utf8(git_output.stderr).unwrap()
|
|
||||||
);
|
|
||||||
println!(
|
|
||||||
"cargo:rustc-env=GIT_REVISION={}",
|
|
||||||
String::from_utf8(git_output.stdout).unwrap()
|
|
||||||
);
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,12 @@ V2X data is exposed via the service UUID `c0b70000-d4f4-4000-ada8-f99a02ee315c`
|
||||||
UUID | Type | Description
|
UUID | Type | Description
|
||||||
------------------------------------- | --------------- | -----------
|
------------------------------------- | --------------- | -----------
|
||||||
c0b70001-d4f4-4001-ada8-f99a02ee315c | `PositionState` | Set position from external source
|
c0b70001-d4f4-4001-ada8-f99a02ee315c | `PositionState` | Set position from external source
|
||||||
c0b70001-d4f4-4002-ada8-f99a02ee315c | `RawNotify` | Raw message notification
|
c0b70001-d4f4-4001-ada8-f99a02ee315c | `RawMsgRx` | Raw CAM message (de-duplicated/ rate-limited)
|
||||||
c0b70001-d4f4-4003-ada8-f99a02ee315c | `RawMsgRx` | Raw CAM message (de-duplicated/ rate-limited)
|
c0b70001-d4f4-4002-ada8-f99a02ee315c | `CamEvent` | Latest received CAM
|
||||||
c0b70001-d4f4-4004-ada8-f99a02ee315c | `CamEvent` | Latest received CAM
|
c0b70001-d4f4-4003-ada8-f99a02ee315c | `RawMsgRx` | Raw DENM message (de-duplicated/ rate-limited)
|
||||||
c0b70001-d4f4-4005-ada8-f99a02ee315c | `RawMsgRx` | Raw DENM message (de-duplicated/ rate-limited)
|
c0b70001-d4f4-4004-ada8-f99a02ee315c | `DenmEvent` | Latest received DENM
|
||||||
c0b70001-d4f4-4006-ada8-f99a02ee315c | `DenmEvent` | Latest received DENM
|
c0b70001-d4f4-4005-ada8-f99a02ee315c | `RawMsgRx` | Raw MAPEM message (de-duplicated/ rate-limited)
|
||||||
c0b70001-d4f4-4007-ada8-f99a02ee315c | `RawMsgRx` | Raw MAPEM message (de-duplicated/ rate-limited)
|
c0b70001-d4f4-4006-ada8-f99a02ee315c | `RawMsgRx` | Raw SPATEM message (de-duplicated/ rate-limited)
|
||||||
c0b70001-d4f4-4008-ada8-f99a02ee315c | `RawMsgRx` | Raw SPATEM message (de-duplicated/ rate-limited)
|
|
||||||
|
|
||||||
Since a modern BLE notification can only fit up tp 251 bytes of payload, the raw messages can only be polled.
|
|
||||||
Please subscribe to `c0b70001-d4f4-4002-ada8-f99a02ee315c` and use the message ID to determine from which service to read the incoming value.
|
|
||||||
|
|
||||||
## Message Format
|
## Message Format
|
||||||
|
|
||||||
|
|
@ -39,65 +35,15 @@ All data types are defined in one `.proto` file: [c_its-messages.proto](./c_its-
|
||||||
|
|
||||||
When there's no GNSS receiver connected to the ESP, position, heading and speed information can be set using a `PositionState` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
When there's no GNSS receiver connected to the ESP, position, heading and speed information can be set using a `PositionState` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
----------------- | -------- | ---------
|
|
||||||
timestamp_ms | 1 | 8 (I64)
|
|
||||||
position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
heading | 1 | 2 (VARINT(3600))
|
|
||||||
speed | 1 | 2 (VARINT(~163 m/s))
|
|
||||||
**SUM** | 6 + | 21 = 27 byte
|
|
||||||
|
|
||||||
|
|
||||||
### DENM Event
|
### DENM Event
|
||||||
|
|
||||||
Each received DENM will be "published" as a `DenmEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
Each received DENM will be "published" as a `DenmEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
||||||
Repetitions of the same message (e.g. no changes to the validity timeframe and location) may be dropped by the BLE server.
|
Repetitions of the same message (e.g. no changes to the validity timeframe and location) may be dropped by the BLE server.
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
----------------- | -------- | ---------
|
|
||||||
timestamp | 1 | 8 (I64)
|
|
||||||
validity_end_ts | 1 | 8 (I64)
|
|
||||||
station_id | 1 | 8 (I64)
|
|
||||||
seq_num | 1 | 3 (VARINT(65535))
|
|
||||||
event_position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
event_heading_deg | 1 | 1 (VARINT(360))
|
|
||||||
direction | 1 | 1 (VARINT(3))
|
|
||||||
cause_code | 1 | 1 (VARINT(127))
|
|
||||||
sub_cause_code | 1 | 1 (VARINT(127))
|
|
||||||
**SUM** | 11 + | 40 = 51 byte
|
|
||||||
|
|
||||||
Note: Cause code and sub-cause code are technically 0..255 in the ASN.1 spec, but that's mainly to ensure backwards-compatibility of the CHOICE with the old wire format.
|
|
||||||
Realistically only cause codes up to 100 are defined and common sub-cause codes use values up to 22.
|
|
||||||
|
|
||||||
### CAM Event
|
### CAM Event
|
||||||
|
|
||||||
Each received (low-frequency) CAM will be "published" as a `CamEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
Each received (low-frequency) CAM will be "published" as a `CamEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
station_id | 1 | 8 (I64)
|
|
||||||
station_type | 1 | 1 (VARINT(15))
|
|
||||||
position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
vehicle_role | 1 | 1 (VARINT(15))
|
|
||||||
vehicle_data | 1 | 1 (LEN(11)) + sub-fields below
|
|
||||||
\+ heading_deg | 1 | 2 (VARINT(360))
|
|
||||||
\+ speed | 1 | 2 (VARINT(~163 m/s))
|
|
||||||
\+ vehicle_length_dm | 1 | 2 (VARINT(1023))
|
|
||||||
\+ vehicle_width_dm | 1 | 1 (VARINT(62))
|
|
||||||
**SUM** | 11 + | 27 = 38 byte
|
|
||||||
|
|
||||||
### Raw Received Message
|
### Raw Received Message
|
||||||
|
|
||||||
Received V2X messages will be "published" as a `RawMsgRx` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
Received V2X messages will be "published" as a `RawMsgRx` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
||||||
|
|
@ -105,20 +51,3 @@ Repetitions of the same message should be dropped by the BLE server.
|
||||||
Consecutive messages with no relevant changes may be dropped by the BLE server while keeping some minimal publishing rate, e.g.:
|
Consecutive messages with no relevant changes may be dropped by the BLE server while keeping some minimal publishing rate, e.g.:
|
||||||
- only publish MAPEMs every 10 seconds (since content doesn't change, but client may be restarted after first MAPEM from an intersection was received)
|
- only publish MAPEMs every 10 seconds (since content doesn't change, but client may be restarted after first MAPEM from an intersection was received)
|
||||||
- drop high-frequency CAMs (only publish "full" CAMs which include the low-frequency container)
|
- drop high-frequency CAMs (only publish "full" CAMs which include the low-frequency container)
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
msg_type | 1 | 1 (VARINT(21))
|
|
||||||
payload | 1 | 2+1394 (LEN(1394) + payload)
|
|
||||||
**SUM** | 2 + | 1397 = 1399 byte
|
|
||||||
|
|
||||||
### Raw Message Notification
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
msg_type | 1 | 1 (VARINT(21))
|
|
||||||
**SUM** | 1 + | 1 = 2 byte
|
|
||||||
|
|
|
||||||
|
|
@ -71,10 +71,6 @@ message RawMsgTx {
|
||||||
optional uint32 stationType = 6; // for source position vector
|
optional uint32 stationType = 6; // for source position vector
|
||||||
}
|
}
|
||||||
|
|
||||||
message RawNotify {
|
|
||||||
required uint32 message_type = 1; // ITS `MessageId` integer value
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------
|
// ------------------------------
|
||||||
// Messages
|
// Messages
|
||||||
// ------------------------------
|
// ------------------------------
|
||||||
|
|
@ -87,7 +83,7 @@ message PositionState {
|
||||||
}
|
}
|
||||||
|
|
||||||
message DenmEvent {
|
message DenmEvent {
|
||||||
required fixed64 timestamp = 1; // DENM reference time as UNIX time (in seconds)
|
required fixed64 timestamp = 1; // DENM reference time as UNIX time
|
||||||
required fixed64 validity_end_ts = 2; // UNIX time when event validity ends (from denm.management.validityDuration)
|
required fixed64 validity_end_ts = 2; // UNIX time when event validity ends (from denm.management.validityDuration)
|
||||||
required fixed32 station_id = 3; // unique ID of the event when combined with `seq_num`
|
required fixed32 station_id = 3; // unique ID of the event when combined with `seq_num`
|
||||||
required uint32 seq_num = 4; // unique ID of the event when combined with `station_id`
|
required uint32 seq_num = 4; // unique ID of the event when combined with `station_id`
|
||||||
|
|
|
||||||
|
|
@ -3,23 +3,18 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mode=${1:-help}
|
mode=${1:-help}
|
||||||
|
wasm_target="--chrome --headless"
|
||||||
extended=${2:-false}
|
extended=${2:-false}
|
||||||
|
|
||||||
|
|
||||||
features_base=(
|
features_base=(
|
||||||
spat,gnss_ubx,screen # "standalone" simple
|
uart,cam,denm
|
||||||
spat,gnss_ubx,screen,ble # "standalone" with BLE
|
spat,gnss_ubx,screen
|
||||||
spat,gnss_ubx,screen,ble,cam_tx # "standalone" with CAM
|
spat,gnss_ubx,screen,cam_tx
|
||||||
spat,gnss_ubx,screen,cam_tx,cam,denm
|
|
||||||
uart,cam,denm # "smartphone companion with UART"
|
|
||||||
ble,cam,denm,cam_tx # "smartphone companion with BLE"
|
|
||||||
)
|
)
|
||||||
features_more=(
|
features_more=(
|
||||||
uart,ble,cam,denm
|
|
||||||
spat,gnss_ubx,screen,cam_tx
|
|
||||||
spat,gnss_ubx,screen,cam,denm
|
spat,gnss_ubx,screen,cam,denm
|
||||||
spat,gnss_ubx,screen,cam_tx,cam,denm
|
spat,gnss_ubx,screen,cam_tx,cam,denm
|
||||||
gnss_ubx,screen,cam_tx,cam,denm
|
|
||||||
)
|
)
|
||||||
features_test=(
|
features_test=(
|
||||||
spat,cam,denm,uart
|
spat,cam,denm,uart
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 117 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 147 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 122 KiB |
File diff suppressed because it is too large
Load diff
|
|
@ -38,25 +38,6 @@
|
||||||
"zx": -2.1759660739917308e-08,
|
"zx": -2.1759660739917308e-08,
|
||||||
"zy": 0.6427874565124512,
|
"zy": 0.6427874565124512,
|
||||||
"zz": 0.7660446763038635
|
"zz": 0.7660446763038635
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ISO-front-sideways",
|
|
||||||
"ww": 1.0,
|
|
||||||
"wx": 12.766021728515625,
|
|
||||||
"wy": 18.745622634887695,
|
|
||||||
"wz": -19.07516098022461,
|
|
||||||
"xw": 0.0,
|
|
||||||
"xx": 0.3144621253013611,
|
|
||||||
"xy": -0.9000988006591797,
|
|
||||||
"xz": 0.30155274271965027,
|
|
||||||
"yw": 0.0,
|
|
||||||
"yx": 0.9491636157035828,
|
|
||||||
"yy": 0.29337260127067566,
|
|
||||||
"yz": -0.11412015557289124,
|
|
||||||
"zw": 0.0,
|
|
||||||
"zx": 0.014252186752855778,
|
|
||||||
"zy": 0.32210931181907654,
|
|
||||||
"zz": 0.9465939402580261
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"design_settings": {
|
"design_settings": {
|
||||||
|
|
@ -236,7 +217,6 @@
|
||||||
{
|
{
|
||||||
"td_allow_use_two_tracks": true,
|
"td_allow_use_two_tracks": true,
|
||||||
"td_curve_segcount": 0,
|
"td_curve_segcount": 0,
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
"td_height_ratio": 1.0,
|
||||||
"td_length_ratio": 0.5,
|
"td_length_ratio": 0.5,
|
||||||
"td_maxheight": 2.0,
|
"td_maxheight": 2.0,
|
||||||
|
|
@ -248,7 +228,6 @@
|
||||||
{
|
{
|
||||||
"td_allow_use_two_tracks": true,
|
"td_allow_use_two_tracks": true,
|
||||||
"td_curve_segcount": 0,
|
"td_curve_segcount": 0,
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
"td_height_ratio": 1.0,
|
||||||
"td_length_ratio": 0.5,
|
"td_length_ratio": 0.5,
|
||||||
"td_maxheight": 2.0,
|
"td_maxheight": 2.0,
|
||||||
|
|
@ -260,7 +239,6 @@
|
||||||
{
|
{
|
||||||
"td_allow_use_two_tracks": true,
|
"td_allow_use_two_tracks": true,
|
||||||
"td_curve_segcount": 0,
|
"td_curve_segcount": 0,
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
"td_height_ratio": 1.0,
|
||||||
"td_length_ratio": 0.5,
|
"td_length_ratio": 0.5,
|
||||||
"td_maxheight": 2.0,
|
"td_maxheight": 2.0,
|
||||||
|
|
@ -314,7 +292,7 @@
|
||||||
"internal_id": "",
|
"internal_id": "",
|
||||||
"mfg": "",
|
"mfg": "",
|
||||||
"mpn": "",
|
"mpn": "",
|
||||||
"sch_revision": "v1.1"
|
"sch_revision": "v0.1"
|
||||||
},
|
},
|
||||||
"layer_pairs": [],
|
"layer_pairs": [],
|
||||||
"layer_presets": [],
|
"layer_presets": [],
|
||||||
|
|
@ -543,7 +521,6 @@
|
||||||
"pin_to_pin": "warning",
|
"pin_to_pin": "warning",
|
||||||
"power_pin_not_driven": "error",
|
"power_pin_not_driven": "error",
|
||||||
"same_local_global_label": "warning",
|
"same_local_global_label": "warning",
|
||||||
"same_local_global_power": "warning",
|
|
||||||
"similar_label_and_power": "warning",
|
"similar_label_and_power": "warning",
|
||||||
"similar_labels": "warning",
|
"similar_labels": "warning",
|
||||||
"similar_power": "warning",
|
"similar_power": "warning",
|
||||||
|
|
@ -599,8 +576,8 @@
|
||||||
"meta": {
|
"meta": {
|
||||||
"version": 5
|
"version": 5
|
||||||
},
|
},
|
||||||
"net_colors": {},
|
"net_colors": null,
|
||||||
"netclass_assignments": {},
|
"netclass_assignments": null,
|
||||||
"netclass_patterns": [
|
"netclass_patterns": [
|
||||||
{
|
{
|
||||||
"netclass": "Power",
|
"netclass": "Power",
|
||||||
|
|
@ -626,7 +603,6 @@
|
||||||
"netlist": "",
|
"netlist": "",
|
||||||
"plot": "",
|
"plot": "",
|
||||||
"specctra_dsn": "",
|
"specctra_dsn": "",
|
||||||
"step": "../housing/c_its-companion-v1.1.step",
|
|
||||||
"vrml": ""
|
"vrml": ""
|
||||||
},
|
},
|
||||||
"page_layout_descr_file": ""
|
"page_layout_descr_file": ""
|
||||||
|
|
@ -699,24 +675,12 @@
|
||||||
"label": "Datasheet",
|
"label": "Datasheet",
|
||||||
"name": "Datasheet",
|
"name": "Datasheet",
|
||||||
"show": true
|
"show": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "Description",
|
|
||||||
"name": "Description",
|
|
||||||
"show": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "#",
|
|
||||||
"name": "${ITEM_NUMBER}",
|
|
||||||
"show": false
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"filter_string": "",
|
"filter_string": "",
|
||||||
"group_symbols": true,
|
"group_symbols": true,
|
||||||
"include_excluded_from_bom": true,
|
"include_excluded_from_bom": true,
|
||||||
"name": "",
|
"name": "Default Editing",
|
||||||
"sort_asc": true,
|
"sort_asc": true,
|
||||||
"sort_field": "Reference"
|
"sort_field": "Reference"
|
||||||
},
|
},
|
||||||
|
|
@ -761,7 +725,7 @@
|
||||||
"uuid": "9ad468b0-d7e4-4d4a-b652-c4a81a952e30"
|
"uuid": "9ad468b0-d7e4-4d4a-b652-c4a81a952e30"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"used_designators": "#FLG1-3,#PWR1-11,C1,H1-4,J1-2,SW1,TP1-5,U1-2",
|
"used_designators": "C1,#PWR1-10,J1-2,SW1,TP1,U1-2,#FLG1-3",
|
||||||
"variants": []
|
"variants": []
|
||||||
},
|
},
|
||||||
"sheets": [
|
"sheets": [
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,118 +0,0 @@
|
||||||
(footprint "Mounting_Wuerth_WA-SNSN-2.0mm_H8mm_709653000"
|
|
||||||
(version 20260206)
|
|
||||||
(generator "pcbnew")
|
|
||||||
(generator_version "10.0")
|
|
||||||
(layer "F.Cu")
|
|
||||||
(descr "Mounting Hardware, drill hole 2.0mm, height 8, Wuerth electronics 709653000 (https://www.we-online.com/components/products/datasheet/709653000.pdf)")
|
|
||||||
(tags "Mounting 2.0mm 709653000")
|
|
||||||
(property "Reference" "REF**"
|
|
||||||
(at 0 -3.95 0)
|
|
||||||
(layer "F.SilkS")
|
|
||||||
(uuid "276ecaff-3259-4bdb-a318-4e4bcec61921")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Value" "Mounting_Wuerth_WA-SNSN-2.0mm_H8mm_709653000"
|
|
||||||
(at 0 3.95 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "c83307ee-1780-4e7c-ba49-6db91bf6d85c")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Datasheet" ""
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "76a81e5b-f76a-4297-b483-e56d634ec233")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1.27 1.27)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Description" ""
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "e8a2abe1-8c02-4d58-a78a-5aafa491e78a")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1.27 1.27)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "KiLib_Generator" "mounting_hardware/Wuerth_SMT_spacer"
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.SilkS")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "7b7b4b98-57da-4b83-8a3a-d56209527a94")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(attr smd allow_soldermask_bridges)
|
|
||||||
(duplicate_pad_numbers_are_jumpers no)
|
|
||||||
(fp_circle
|
|
||||||
(center 0 0)
|
|
||||||
(end 1.75 0)
|
|
||||||
(stroke
|
|
||||||
(width 0.05)
|
|
||||||
(type solid)
|
|
||||||
)
|
|
||||||
(fill no)
|
|
||||||
(layer "F.CrtYd")
|
|
||||||
(uuid "03f6d4cc-b111-4551-92b5-a505d52ec32e")
|
|
||||||
)
|
|
||||||
(fp_circle
|
|
||||||
(center 0 0)
|
|
||||||
(end 1 0)
|
|
||||||
(stroke
|
|
||||||
(width 0.1)
|
|
||||||
(type solid)
|
|
||||||
)
|
|
||||||
(fill no)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "51af9f8e-3050-418a-8fce-682c9308e104")
|
|
||||||
)
|
|
||||||
(fp_text user "${REFERENCE}"
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "25803184-0736-480c-b1a8-58343859c491")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(pad "" np_thru_hole circle
|
|
||||||
(at 0 0)
|
|
||||||
(size 2 2)
|
|
||||||
(drill 2)
|
|
||||||
(layers "*.Cu" "*.Mask")
|
|
||||||
(uuid "3cc834fb-6d81-4fd9-b1d5-2b09965b58a5")
|
|
||||||
)
|
|
||||||
(embedded_fonts no)
|
|
||||||
(model "${KIPRJMOD}/library/Mounting_Wuerth_WA-SNSN-2.0mm_H8mm_709653000.stp"
|
|
||||||
(offset
|
|
||||||
(xyz 0 0 4)
|
|
||||||
)
|
|
||||||
(scale
|
|
||||||
(xyz 1 1 1)
|
|
||||||
)
|
|
||||||
(rotate
|
|
||||||
(xyz -0 -0 -0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,118 +0,0 @@
|
||||||
(footprint "Mounting_Wuerth_WA-SNSR-3.0mm_H8mm_702910000"
|
|
||||||
(version 20260206)
|
|
||||||
(generator "pcbnew")
|
|
||||||
(generator_version "10.0")
|
|
||||||
(layer "F.Cu")
|
|
||||||
(descr "Mounting Hardware, drill hole 3.0mm, height 8, Wuerth electronics 702910000 (https://www.we-online.com/components/products/datasheet/702910000.pdf)")
|
|
||||||
(tags "Mounting 3.0mm 702910000")
|
|
||||||
(property "Reference" "REF**"
|
|
||||||
(at 0 -3.95 0)
|
|
||||||
(layer "F.SilkS")
|
|
||||||
(uuid "519123da-9027-4dc9-983e-c1af92c74bca")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Value" "Mounting_Wuerth_WA-SNSR-3.0mm_H8mm_709653000"
|
|
||||||
(at 0 3.95 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "657f373c-6469-4c2a-8d0a-45c1248a0096")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Datasheet" ""
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "4824841d-86d1-4c9e-82c6-3320ce9c3bc5")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1.27 1.27)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "Description" ""
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "0b9c08cb-3ab2-4558-b34e-9ca94d9161ee")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1.27 1.27)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(property "KiLib_Generator" "mounting_hardware/Wuerth_SMT_spacer"
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.SilkS")
|
|
||||||
(hide yes)
|
|
||||||
(uuid "87f455aa-fb50-4a44-92ee-bcc8e5cdbb49")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(attr smd allow_soldermask_bridges)
|
|
||||||
(duplicate_pad_numbers_are_jumpers no)
|
|
||||||
(fp_circle
|
|
||||||
(center 0 0)
|
|
||||||
(end 2.05 0)
|
|
||||||
(stroke
|
|
||||||
(width 0.05)
|
|
||||||
(type solid)
|
|
||||||
)
|
|
||||||
(fill no)
|
|
||||||
(layer "F.CrtYd")
|
|
||||||
(uuid "23751fc5-61f6-4371-b602-56236ab6fac9")
|
|
||||||
)
|
|
||||||
(fp_circle
|
|
||||||
(center 0 0)
|
|
||||||
(end 1.5 0)
|
|
||||||
(stroke
|
|
||||||
(width 0.1)
|
|
||||||
(type solid)
|
|
||||||
)
|
|
||||||
(fill no)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "c9ae63b4-7ec4-4016-9343-cf80bfc3df37")
|
|
||||||
)
|
|
||||||
(fp_text user "${REFERENCE}"
|
|
||||||
(at 0 0 0)
|
|
||||||
(layer "F.Fab")
|
|
||||||
(uuid "b42331e0-1e08-435a-b246-24a914b45f86")
|
|
||||||
(effects
|
|
||||||
(font
|
|
||||||
(size 1 1)
|
|
||||||
(thickness 0.15)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
(pad "" np_thru_hole circle
|
|
||||||
(at 0 0)
|
|
||||||
(size 3 3)
|
|
||||||
(drill 3)
|
|
||||||
(layers "*.Cu" "*.Mask")
|
|
||||||
(uuid "e8b39436-1604-4ea9-bc81-e168da01c5eb")
|
|
||||||
)
|
|
||||||
(embedded_fonts no)
|
|
||||||
(model "${KIPRJMOD}/library/Mounting_Wuerth_WA-SNSR-3.0mm_H8mm_702910000.stp"
|
|
||||||
(offset
|
|
||||||
(xyz 0 0 8)
|
|
||||||
)
|
|
||||||
(scale
|
|
||||||
(xyz 1 1 1)
|
|
||||||
)
|
|
||||||
(rotate
|
|
||||||
(xyz -180 -0 -0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue