Giter VIP home page Giter VIP logo

Comments (8)

mirkix avatar mirkix commented on June 1, 2024 1

@Thalaivar You can find all the software in the ArduPilot source code.
https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_Linux
https://github.com/ArduPilot/ardupilot/tree/master/Tools/Linux_HAL_Essentials/pru/aiopru

from ardupilotblue.

Thalaivar avatar Thalaivar commented on June 1, 2024

Those libraries are heavily interlinked right? Is there any way I can use them as independent libraries for my own program?

I used arm-linux-gnueabi-g++ to compile GPIOTest.cpp and put the lib directory as ~/ardupilot/libraries

I got these errors:
screen shot 2018-01-29 at 10 24 32 pm

from ardupilotblue.

juvinski avatar juvinski commented on June 1, 2024

How are you configuring and compiling ?

from ardupilotblue.

Thalaivar avatar Thalaivar commented on June 1, 2024

Apologies, but I don't understand what you mean by "configuring". As I mentioned, I simply set the arm-linux-gnueabi-g++ to search for libraries in the ardupilot/libraries folder and compile for C++11. Like this, I tried to compile GPIOTest.cpp in AP_HAL_Linux/examples

Please let me know what the possible problem can be...

from ardupilotblue.

juvinski avatar juvinski commented on June 1, 2024

You need to use the waf utility.
./waf configure --board=bbbmini
You you want to compile using make/gcc you need to include the libraries directory

from ardupilotblue.

Thalaivar avatar Thalaivar commented on June 1, 2024

Yes but suppose I wanted to write a imu_read.cpp using AP libraries, I can't build with waf right? How would I write the wscript for it?

from ardupilotblue.

juvinski avatar juvinski commented on June 1, 2024

Hi, you can use waf.
You need inside the vehicle you want change the wscript file to include your sensor folder.

from ardupilotblue.

Thalaivar avatar Thalaivar commented on June 1, 2024

I do not understand how th HAL is structured. I don't know how the AP_HAL_MAIN() callback works. Hence I just want to use them as normal c libraries without all the HAL call back etc. How can I do that?

from ardupilotblue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.