Rust library to communicate with a comma.ai panda.
```rust let context = libusb::Context::new().unwrap(); let panda = Panda::new(&context, Duration::frommillis(100)); panda.setsafety_model(SafetyModel::AllOutput, 0).expect("Error setting safety mode");
loop { if let Ok(h) = panda.health() { println!("{:?}", h); } if let Ok(c) = panda.canreceive() { for msg in c { println!("{:?}", msg); } } thread::sleep(Duration::frommillis(500)); } ```
The examples folder contains a small helper binary to print all traffic on a certain bus:
cargo run --example can_printer -- --bus=0