mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Merge pull request #1093 from iNavFlight/sonar-rework
Sonar - refactor the code to use detection and configuration like all other sensors
This commit is contained in:
commit
688f90e2a2
16 changed files with 251 additions and 302 deletions
|
@ -1160,7 +1160,11 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
|
|||
#else
|
||||
sbufWriteU8(dst, 0);
|
||||
#endif
|
||||
sbufWriteU8(dst, 0); // rangefinder hardware
|
||||
#ifdef SONAR
|
||||
sbufWriteU8(dst, rangefinderConfig()->rangefinder_hardware);
|
||||
#else
|
||||
sbufWriteU8(dst, 0);
|
||||
#endif
|
||||
sbufWriteU8(dst, 0); // optical flow hardware
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue