Loading provided APM sketches for testing purposes

Apologies for the novice question.

Many of the APM libraries contain an example folder with test sketches.  As an example, library AP_GPS has an /examples/GPS_UBLOX_test/ folder with example sketch.

Is there a straight-forward way to successfully compile this sketch taking into account the many #include libraries of the sketch, such as AP_Common, AP_HAL etc?

Many thanks for bearing with me as a graduate from very simple sketches to a little more involved!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    Oh, there is a new version, using the 4.7.2 version of GCC:

    http://firmware.diydrones.com/Tools/Arduino/

    There is also a detailed guide available.

    I just successfully compiled the UBLOX-GPS example with make on ubuntu so think it should work but could not test it on windows unfortunately.

    hope that helps.

    Regards
    Linus

  • Developer

    Hi Jon-Paul,

    im not sure if it is up to date but maybe this will help you ?

    http://www.diydrones.com/group/ardurover-user-group/forum/topics/lo...

    You also should make sure to get the latest "ArduPilot-Arduino" which can be found here http://ardupilot.com/downloads/

    Regards,

    Linus

  • Admin

    @Jon-Paul,

    You might want to post this question in one of the other discussion forums that deal with the GPS and/or APM programming. It will get lost over here at our forum unless there is a member who is familiar with the APM code.

    Regards,

    TCIII ArduRover2 Developer

  • Just to add further, if I copy the test GPS_UBLOX_test sketch to a folder, and also copy ALL of the AP* folders into the GPS_UBLOX_test sketch folder, I get an error "AP_HAL_BOARD_DRIVER was not declared in this scope" thus I assume I have not included the standard AP* library folders correctly??

This reply was deleted.