Closed olegantonyan closed 5 years ago
which branch are you on?
I'm using crate https://crates.io/crates/mpu6050
Thanks for the pull request. I'm planning an important version bump towards the end of the week on crates.io, that will make your pull request unnecessary, as I moved everything to nalgebra
, which overloads std::fmt::Display::fmt
Until then, you could use the dev branch in your Cargo.toml with
mpu6050 = { git = "https://github.com/juliangaal/mpu6050/", branch = "dev" }
It should be good to go as is, although my testing isn't completed yet! I just compiled dev on my machine, for ARM, and it works. Don't forget to configure the linker!
If that's not an option (or the dev branch doesn't work quite right), use the crates version and either delete or fix the example (like in your pr).
Important The compilation may still fail because of a dependency, nix. It's fixed on dev, but not master.
Any updates?
I resoled this by using {:?}
formatting
But it compiled for arch? That's strange, because nix
is an old version that doesn't compile for linux...I'll have a look at it. I'll tell you I give the crate a version and dependency version bump.
Yes, it compiles for aarch64 linux and works on jetson nano board
I just updated the crate version to 0.1.3, thanks for your patience. This version doesn't change the API, but moves to nalgebra for all readings on the device.
Any other feedback? Thanks for your help
0.1.3 also seems to work. thanks
great to hear, closing this issue now. Thanks
Trying to build an example (https://github.com/juliangaal/mpu6050/blob/dev/examples/linux.rs) for aarch64-unknown-linux-gnu Cargo.toml
.cargo/config
rustup show
cargo build --release --target aarch64-unknown-linux-gnu