-
|
@qqqlab Been trying to convert Plane example to the new code structure (with goal to later try adding VTAIL output mixer or something alike - no plans?), however got stuck with these linking issues... seems compile but madflight code not linkable - e.g. any clue? bug? CPP standard, toolchain (it seems I've update all VSCode extentions/dependencies)? P.S. nothing changes if I use ; PlatformIO Project Configuration File for madflight
[env]
lib_extra_dirs =
/Users/vidma/flyuav/px4_rpi/madflight/madflight
[env:madflight_pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
;board = rpipico2
board = pimoroni_tiny2350
framework = arduino
board_build.core = earlephilhowerLogs: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
No idea, I'm not an PlatformIO expert, I use the Arduino IDE. If you find a solution, please post it and I'll update the docs. |
Beta Was this translation helpful? Give feedback.
-
|
@vidma It appears that none of the lib's cpp files get compiled/linked. Arduino automatically creates a makelist upon compile. PlatformIO doesn't AFAIK, you probably need to import any madflight example in PIO to create the makelist, see http://madflight.com/Board-RP2040/ |
Beta Was this translation helpful? Give feedback.
-
|
@qqqlab this is weird, however, what seem to have helped is using a git repo directly, instead of a directory for [env]
; this one do not work anymore
; lib_extra_dirs = /Users/vidma/flyuav/px4_rpi/madflight/madflight
; this one works
lib_deps =
https://github.com/qqqlab/madflight.git
[env:pimoroni_tiny2350]
#platform = raspberrypi
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pimoroni_tiny2350
framework = arduino
board_build.core = earlephilhowerFYI, I still had to comment this line out: madflight/src/madflight/alt/alt_cpp.h Line 57 in 8b41cbc and FYI in void led_Blink();
void control_FBWA(bool zero_integrators);
void control_ROLL(bool zero_integrators);
void out_KillSwitchAndFailsafe();
void out_Mixer();
void control_MANUAL();now plenty of madflight .c/.cpp files are compiled and linking succeeds: |
Beta Was this translation helpful? Give feedback.
-
|
FYI importing the Arduino project didn't help, using |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. I'm moving this to discussions, maybe it will help somebody else. (Supporting PlatformIO is not a priority for me.) |
Beta Was this translation helpful? Give feedback.
-
|
madflight v2.1.1 has |
Beta Was this translation helpful? Give feedback.
madflight v2.1.1 has
examples/platformio.ini