Commit Graph

68 Commits

Author SHA1 Message Date
Clyde McQueen 5e8fed9d43 Sub: provide script access to joystick buttons 2023-09-27 08:14:36 +10:00
Willian Galvani 9b70ac1286 Sub: big mode refactor 2023-07-13 14:56:40 -03:00
Leonard Hall 76c76a6928 Sub: Support changing update period 2022-12-13 17:10:06 +11:00
Peter Barker 8a9a856de8 ArduSub: move logging of compass ERR flags into AP_Compass 2022-05-10 19:46:40 +10:00
Peter Barker 5a4963e4f8 ArduSub: move error logging of sensor health into AP_Baro 2022-05-03 17:38:09 +10:00
Andrew Tridgell c059f8c044 Sub: fixes for use of longitude_scale() 2021-07-10 07:20:41 +10:00
Willian Galvani 6ef37daaad Sub: use scheduler.get_loop_period_s() instead of MAIN_LOOP_SECONDS 2021-07-08 13:09:34 -04:00
Leonard Hall 266bd22df3 Sub: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Peter Barker 7658c13c69 Sub: let AP_Vehicle handle loop() 2020-02-06 14:41:06 +11:00
Andy Piper 1bd6adec23 Sub: create generic vehicle management and move runcam to it
add OSD and RCMapper to build
2019-12-30 13:02:04 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Peter Barker d8e90ded90 Sub: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker ecd69e4359 Sub: remove pointless zero-initialisation 2018-10-23 16:12:45 +11:00
Patrick José Pereira dcd3f83539 Sub: Remove void as parameter
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-02 11:25:03 -04:00
Peter Barker c17514cf85 Sub: use AP_FWVersion singleton 2018-06-18 19:10:37 +01:00
Peter Barker 133b9930a6 Sub: make scheduler track whether it has called the delay callback 2018-05-09 16:15:38 +10:00
Randy Mackay defdeaed95 Sub: integrate AC_Loiter 2018-04-04 10:45:10 +09:00
Peter Barker 980fbf6cfb Sub: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker 7313d9e7a7 Sub: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker 9bb1224cef Sub: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Randy Mackay 6a701b2412 Sub: move pos-control pids to pos-control library 2018-01-23 12:00:43 +09:00
Randy Mackay cef50d8a30 Sub: velocity pi moved to position control library 2018-01-23 12:00:43 +09:00
Andrew Tridgell 4c9f48244e Sub: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Lucas De Marchi cf6ea9642e global: use static method to construct AP_Terrain 2017-09-26 03:01:21 +01:00
Lucas De Marchi 4f42facefc global: use static method to construct AC_Avoid 2017-09-26 03:01:21 +01:00
Lucas De Marchi b05610870c global: use static method to construct AP_Rally 2017-09-26 03:01:21 +01:00
Lucas De Marchi c6eb48009b global: use static method to construct AC_Fence 2017-09-26 03:01:21 +01:00
Lucas De Marchi 18aa88b329 global: use static method to construct AP_Mount 2017-09-26 03:01:21 +01:00
Lucas De Marchi c3647f0185 global: use static method to construct AP_Camera 2017-09-26 03:01:21 +01:00
Lucas De Marchi cc53e7bc4b global: use static method to construct AP_ServoRelayEvents 2017-09-26 03:01:21 +01:00
Lucas De Marchi b36a5919f5 global: use static method to construct AP_Mission
This also move the initialization to be in the header for those that
weren't already to maintain consistency.
2017-09-26 03:01:21 +01:00
Lucas De Marchi 53c82b4aaf global: use static method to construct DataFlash_Class 2017-09-26 03:01:21 +01:00
Lucas De Marchi 7eba6572ea ArduSub: move version to a static member
We should never include version.h or ap_version.h headers directly
on a header since this will trigger a complete rebuild of the
codebase when we commit to the repository. The ap_version.h header
is auto-generated containing information from the current commit.

If we include it in a header, every other file that ends up including
that header (directly or indirectly) will need to be rebuilt. No
ccache's cache beats having to do nothing when the header is just
not included.

version.h contains information that is kept on a struct inside
each vehicle. Rather than using the macros from each vehicle,
the getter should be preferred, which returns an AP_FWVersion
referente.
2017-09-23 21:37:45 -07:00
Peter Barker 89e3f1dbd8 Sub: move gcs_out_of_time into GCS object 2017-09-12 18:28:07 +01:00
Peter Barker ae9891d291 Sub: add constant structure holding firmware version 2017-08-30 15:54:46 +01:00
Peter Barker b299772a75 Sub: camera is responsible for taking distance-based-images and logging 2017-07-28 14:27:53 +01:00
Peter Barker 4913fc2f2a Sub: move should_log check of log bitmask into DataFlash 2017-06-29 15:26:27 +01:00
Jacob Walser d0171395b8 Sub: Remove baro_alt and baro_climbrate members
We can get this from baro object directly
2017-04-16 14:25:13 -04:00
Jacob Walser b7de1eb88a Sub: failsafe.manual_control -> failsafe.pilot_input
reset pilot input failsafe timer when RC_CHANNELS_OVERRIDE is received
2017-04-16 14:25:13 -04:00
Jacob Walser 3e471e808a Sub: Refactor methods in navigation.cpp 2017-04-07 14:47:48 -04:00
Jacob Walser d629d4ba9e Sub: Change mode button function implementation 2017-04-05 13:29:06 -04:00
Jacob Walser 2fa9d31787 Sub: Remove auto-trim
Sub vehicles usually have some static stability
2017-03-23 01:36:17 -04:00
Jacob Walser 6886952438 Sub: Remove simple mode 2017-03-22 23:39:37 -04:00
Jacob Walser 0ce2896e22 Sub: Remove rc receiver code 2017-03-10 15:46:30 +11:00
Jacob Walser 5acfc164df Sub: Implement crash check 2017-03-10 15:46:30 +11:00
Jacob Walser 97396e65d1 Sub: Disable manual control failsafe for SITL 2017-03-07 09:35:41 +11:00
Jacob Walser 84c3c0d234 Sub: Add support for AP_AHRS_View 2017-02-21 11:26:14 +11:00
Jacob Walser 4112fd1316 Sub: Remove mode header 2017-02-21 11:26:14 +11:00
Jacob Walser 5233b25910 Sub: Format all C++ with Tools/CodeStyle/astylerc 2017-02-21 11:26:14 +11:00
Jacob Walser ed87bd9e59 Sub: fixes from rebase on ArduPilot master 2017-02-21 11:26:14 +11:00