You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet when I attempt to call the mpu.all() I get this:
error[E0599]: no method named `all` found for struct `Mpu9250<DEV, MODE>` in the current scope
--> src/imu.rs:40:63
|
40 | let data: ImuMeasurements<[f32; 3]> = mpu.all()?;
| ^^^ method not found in `Mpu9250<DEV, MODE>`
|
= note: the method was found for
- `Mpu9250<DEV, Imu>`
- `Mpu9250<DEV, Marg>`
Any idea on what I'm doing wrong? (I've tried many variations on the signature)
The text was updated successfully, but these errors were encountered:
@liebman "would be nice if there was a trait or set of traits for this" you mean trait for i2c::Read<Error = E> + i2c::Write<Error = E> + i2c::WriteRead<Error = E>? embedded-hal is probably better place for such trait? Maybe rust-embedded/embedded-hal#223 could be used
Maybe I'm missing something as my rust-foo is new. I'm trying to pass ownership to a function. The receiving function is declared as:
Yet when I attempt to call the
mpu.all()
I get this:Any idea on what I'm doing wrong? (I've tried many variations on the signature)
The text was updated successfully, but these errors were encountered: