Skip to content

Commit 295c6bc

Browse files
committed
fix BNO and GPS Baud
1 parent 07ecf08 commit 295c6bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const RFD_BAUD: u32 = 57600;
2424
const MAX_PACKET_BYTES: usize = (RFD_BAUD as usize / 9) / 4;
2525

2626
const GPS_PATH: &str = "/dev/ttyAMA3"; //ToDo Remember to change this to the correct port
27-
const GPS_BAUD: u32 = 57600;
27+
const GPS_BAUD: u32 = (9600);
2828

2929
#[tokio::main]
3030
async fn main() {
@@ -344,7 +344,7 @@ async fn bmp_loop(data: watch::Sender<(Option<f64>, Option<f64>)>, i2c: MutexDev
344344

345345
#[instrument(skip_all)]
346346
async fn bno055_loop(data: watch::Sender<Option<mint::Quaternion<f32>>>, i2c: MutexDevice<'_, I2cdev>) {
347-
let mut bno055 = bno055::Bno055::new(i2c);
347+
let mut bno055 = bno055::Bno055::new(i2c).with_alternative_address();
348348
let mut delay = linux_embedded_hal::Delay;
349349
if let Err(e) = bno055.init(&mut delay) {
350350
error!("Could not initialize BNO055: {}", e);

0 commit comments

Comments
 (0)