SmartAudio UART doesn't send anything #10662
-
Cheers! I did write some code to communicate with FC via SmartAudio. I assume it's some kind of different approach between betaflight and iNav, I faced similar issue when was writing handler for MSP Displayport: iNav doesn't send you any data until you send heartbit to it. My FC target is FURYF4OSD. If someone can point to the spot in code that I can start digging into - would be awesome. Tnhx in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Here's the VTX task: Line 163 in 03efa41 What are you actually doing trying to accomplish? |
Beta Was this translation helpful? Give feedback.
-
Okay, so I debugged a bit and found out that vtxSmartAudio device was overwritten by vtxMsp because USE_VTX_MSP was defined and vtxMspInit() was called AFTER vtxSmartAudioInit(), which basically substituted SmartAudio handler: vtxCommonSetDevice(&vtxMsp); For now I disabled USE_VTX_MSP define, and it now sends requests via supposed UART, but I'm not sure if it's the best way to do it. I assume there is some kind of configuration that can do this better? |
Beta Was this translation helpful? Give feedback.
-
What is your use case, where you want to use MSP DisplayPort OSD but not MSP VTX? |
Beta Was this translation helpful? Give feedback.
the reason why it will rewrite vtx device from smartaudio to msp is because I also use MSP Display port to get osd through UART, iNav expects I will use MSP VTX as well in this case, so no smartaudio for me with MSP Display port active =(