Lidar auto-tuning: - Implement adaptive binary-search algorithm to find max stable PWM - Start at 100% PWM, ramp down with 20% steps, halve on direction reversal - Converge when step reaches 2% and scans are stable (typically ~75%) - Add settling detection via timeout (250ms) or health packet count (3) - Share scan timestamps and health counts between GD32/Delta2D drivers - Add recovery mode to handle unexpected scan loss - Remove manual PWM configuration (Configure action now ignored) - Document auto-tuning algorithm in COMMANDS.md Binary size optimization: - Disable default features for serde, prost, rand, image, env_logger - Replace toml crate with basic-toml (no toml_edit/winnow) - Disable serialport libudev feature (not needed on embedded Linux) - Add size-optimized release profiles (opt-level=z, LTO, panic=abort) - Remove NEON rustflags from .cargo/config.toml (caused issues)
22 lines
634 B
TOML
22 lines
634 B
TOML
[package]
|
|
name = "protocol_mitm"
|
|
version = "0.1.0"
|
|
authors = ["CodeTiger"]
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/codetiger/VacuumTiger"
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
|
|
libc = "0.2"
|
|
|
|
[profile.release]
|
|
opt-level = "z" # Optimize for size
|
|
lto = true # Link-time optimization
|
|
codegen-units = 1 # Single codegen unit for better optimization
|
|
panic = "abort" # Abort on panic (smaller than unwinding)
|
|
strip = true # Strip symbols from binary
|
|
|
|
[profile.release.build-override]
|
|
opt-level = "z"
|