-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLHeli: fixed build without BLHeli with sim on hw #26122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is correct, would need to look more closely
libraries/AP_IOMCU/AP_IOMCU.cpp
Outdated
@@ -117,7 +118,7 @@ void AP_IOMCU::thread_main(void) | |||
uart.begin(1500*1000, 128, 128); | |||
uart.set_unbuffered_writes(true); | |||
|
|||
#if HAL_WITH_IO_MCU_BIDIR_DSHOT | |||
#if HAVE_AP_BLHELI_SUPPORT && HAL_WITH_IO_MCU_BIDIR_DSHOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have to look more closely but I don't think this is correct - I don't think we compile blheli into iomcu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AP_IOMCU does use AP_BLHeli, and that is the issue. It doesn't build with sim-on-hw
@@ -33,9 +33,7 @@ | |||
#include <AP_Baro/AP_Baro.h> | |||
#include <AP_RTC/AP_RTC.h> | |||
#include <AP_SerialManager/AP_SerialManager.h> | |||
#ifdef HAVE_AP_BLHELI_SUPPORT | |||
#include <AP_BLheli/AP_BLHeli.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you need a define guard in the header if you do this?
@andyp1per AP_BLHeli::telem_data doesn't exist in AP_Spektrum_Telem::calc_esc() |
Can't push - here is a fixup - #26554 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my fixup branch
98cec29
to
e973fea
Compare
@andyp1per thanks! |
this build was failing:
Tools/scripts/sitl-on-hardware/sitl-on-hw.py --board Pixhawk6X --vehicle plane --frame QuadPlane --simclass QuadPlane