Hi all ,
what is the best way to include ardupilot librarys in anther different project?
For example how can stm32 read GPS\imu via GPS\imu Ardupilot library.
Following are the steps that i went through:
1) I used c++ compiler to compile chibios with stm32 .
2) I copied the AP_HAL, AP_HAL_CHIBIOS and AP_Common that are existed in Ardupilot library to project in step 1.
3) I created make file to compile the files in step 2 on the project, however, I faced some problems as following:
a).....target 'build/obj/sumd.cpp' doesn't match the target patterned
b).....target 'build/obj/Device.o' given more than once in the same rule
c) arm-none-eabi-gcc:fetal error :no input files
or :
I should use waf to build like Ardupilot.
Best regards
ASD ASD
use Ardupilot library in chibios project
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: use Ardupilot library in chibios project
Make sure to put .cpp files in the section for cpp files in the Makefile, do not mix with .c.
Giovanni
Giovanni
Re: use Ardupilot library in chibios project
Giovanni wrote:Make sure to put .cpp files in the section for cpp files in the Makefile, do not mix with .c.
Giovanni
this is the project i think i performed your note, however it does not work. could you please have a look at the project?
- Attachments
-
- RT-STM32F407-DISCOVERY-G++.part2.rar
- part2
- (4.8 MiB) Downloaded 161 times
-
- RT-STM32F407-DISCOVERY-G++.part1.rar
- part1
- (5.5 MiB) Downloaded 175 times
Who is online
Users browsing this forum: No registered users and 8 guests