dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec
GNU General Public License v3.0
168 stars 41 forks source link

328P, Ibus protocol and GPS #59

Closed erwann56 closed 2 years ago

erwann56 commented 2 years ago

I am on NANO 328p in USB, GPS BN220 and flysky receiver. I noticed 2 problems with the GPS. As soon as I define "GPS true" in config.h, all the sensors are at zero in my telemetry. (In ibus.cpp, when I put // in front of the LAT, LON and ALT lines, the other sensors work again) Could the problem come from the "IBUS_TYPE_S32" format? Moreover when I connect the Tx GPS on the PIND7, my card is blocked. Do you think of a solution? Merci

dgatf commented 2 years ago

There was a similar issue with Jeti #58. I've updated the code to avoid using software serial for sensors as it blocks the Rx protocol. If there is no enough UARTS, software serial will be used for the Rx protocol. Now this is done automatically by code.

Flash latest code and swap IBUS and GPS, connecting IBUS to pins 7 and 12 (with resistor) and GPS to RX

Not tested yet, though

dgatf commented 2 years ago

Tested and working (1 UART, IBUS+GPS). Fixed a bug. Swap connections as suggested. Flash latest code