I have an issue getting my FC to talk to my secondary controller.
My logging controller is connected to a microSD card. Every time I reset or power on the logging controller it makes a LOG_X directory, so I know it's talking to the SD card. When I look through the Arduino serial monitor it repeats "$M< 11$M< ff$M< jj$M< ii" repeatedly while the logging RX LED flashes. If I close the serial monitor then the blinking stops. I have a bluetooth module that plugs into the serial port that works just fine. I remove the bluetooth module when connecting my logging controller so I know my FC serial port is good. I have the logging controller RX to the FC TX and logging TX to FC RX (correct?).
So what am I missing? I'm like 90% there after a week of debugging other things. Any help would be appreciated.
EDIT:
helikalle wrote:... Because the logger prevents the flight controller to initialize correctly i have inserted a 3 second delay in the in the "void Setup ()" section of the code. Now all works perfectly. ...
I've solved it thanks to helikalle! I know I read that post first but it didn't click because my FC was working just fine. I took it one step further and instead of a delay I told it to wait indefinitely until it connects. I changed the code to:
Code: Select all
void setup()
{
Serial.begin(115200);
while (!Serial) {} //wait to establish connection before proceeding
logger.init();
}