AP_Parachute_test.cpp 820 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Example of AP_Parachute library.
  3. * DIYDrones.com
  4. */
  5. #include <AP_Common/AP_Common.h>
  6. #include <AP_Math/AP_Math.h> // ArduPilot Mega Vector/Matrix math Library
  7. #include <AP_Param/AP_Param.h>
  8. #include <AP_HAL/AP_HAL.h>
  9. #include <RC_Channel/RC_Channel.h>
  10. #include <AP_Relay/AP_Relay.h>
  11. #include <AP_Parachute/AP_Parachute.h>
  12. #include <AP_Notify/AP_Notify.h>
  13. #include <StorageManager/StorageManager.h>
  14. void setup();
  15. void loop();
  16. const AP_HAL::HAL& hal = AP_HAL::get_HAL();
  17. // Relay
  18. static AP_Relay relay;
  19. // Parachute
  20. static AP_Parachute parachute{relay};
  21. void setup()
  22. {
  23. hal.console->printf("AP_Parachute library test\n");
  24. }
  25. void loop()
  26. {
  27. // print message to user
  28. hal.console->printf("this example tests compilation only");
  29. hal.scheduler->delay(5000);
  30. }
  31. AP_HAL_MAIN();