Commit Graph

47 Commits

Author SHA1 Message Date
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
Jacob Walser 852374ab4d Sub: Manual control failsafe 2017-02-21 11:26:14 +11:00
Jacob Walser d237887d08 Sub: Require initial contact with GCS before entering failsafe. 2017-02-21 11:26:14 +11:00
Jacob Walser 7b1347da79 Sub: Initialize control mode to flightmode 1 2017-02-21 11:26:14 +11:00
Jacob Walser 45de3b1163 Sub: Disable Avoidance and Proximity by default 2017-02-21 11:26:14 +11:00
Jacob Walser 0d575681de Sub: Remove RTL 2017-02-21 11:26:14 +11:00
Jacob Walser 7e1c63aba3 Sub: Remove sprayer 2017-02-21 11:26:14 +11:00
Jacob Walser 7b5d209aba Sub: Remove parachute 2017-02-21 11:26:14 +11:00
Jacob Walser b6d76912cf Sub: Remove takeoff code 2017-02-21 11:26:14 +11:00
Jacob Walser 456f5e2e93 Sub: Update Sub to match relevant Copter and Library developments 2017-02-21 11:26:14 +11:00
Jacob Walser 579f58e9f2 Sub: hold absolute heading in depth hold and poshold 2017-02-21 11:26:14 +11:00
Rustom Jehangir 814605c461 Sub: Make changes to match Copter changes 2017-02-21 11:26:14 +11:00
Rustom Jehangir 26d0a922c1 Sub: Changes to match recent Copter updates. 2017-02-21 11:26:14 +11:00
Rustom Jehangir 617b439d0e Sub: Match Copter changes 2017-02-21 11:26:14 +11:00
Rustom Jehangir 1252f6c03e Sub: Repair build 2017-02-21 11:26:14 +11:00
Rustom Jehangir 7e7b7c9afb Sub: Add low pass filter (from Copter) 2017-02-21 11:26:14 +11:00
Rustom Jehangir 684bc249b6 Sub: Update to match upstream, part 1 2017-02-21 11:26:14 +11:00
Rustom Jehangir 6cf24c2770 Sub: Remove heli support from sub. 2017-02-21 11:26:14 +11:00
Rustom Jehangir 83ff3931b8 Sub: Refactor "Copter" to "Sub". 2017-02-21 11:26:14 +11:00