Commit Graph

36180 Commits

Author SHA1 Message Date
Peter Barker
6d914f8af3 Tools: autotest: add test for moving sub in guided mode 2019-02-13 10:06:49 +11:00
Peter Barker
6fcdfbbe32 Rover: attempt to set home position regardless of GPS lock
The AHRS may be supplying as a home position through mechanisms other
than a GPS lock.  Don't assume in the caller to update_home().

Rover: fold update_home_from_EKF back into sole caller

This method is confusingly similarly named to update_home - and they do
pretty much the opposite thing.

Rover: remove incorrect and misleading comments on set_home_to_current_location

Rover: rewrite update_home to not set home if no origin set

Also checks that home is set before using values from it

Rover: zero stack variables when updating home

If these are a problem we have significant problems through the code
2019-02-13 09:42:26 +11:00
Peter Barker
44b7763caf Sub: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker
bf5eae3f72 Tracker: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker
4cdbcab723 Rover: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker
30671a6743 Plane: move handling of command-int MAV_CMD_DO_SET_HOME up
Plane: eliminate set_home shim around AP_AHRS::set_home
2019-02-13 09:42:26 +11:00
Peter Barker
270fa2dfb9 Copter: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker
d8847a6192 GCS_MAVLink: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker
957f637043 Tools: autotest: add autotest for setting home position with command-int 2019-02-13 09:42:26 +11:00
Willian Galvani
fd328f1e13 README: Add Autotest badge 2019-02-13 09:28:19 +11:00
Willian Galvani
963905f812 Autotest: Add badge to index.html 2019-02-13 09:28:19 +11:00
Peter Barker
cfb3dfc4e5 Plane: AP_Frsky_Telem uses singletons 2019-02-12 17:53:23 +00:00
Peter Barker
dab23b817c Rover: AP_Frsky_Telem uses singletons 2019-02-12 17:53:23 +00:00
Peter Barker
a0189d6060 Copter: AP_Frsky_Telem uses singletons 2019-02-12 17:53:23 +00:00
Peter Barker
9023e6eb7d AP_Frsky_Telem: use rangefinder singleton 2019-02-12 17:53:23 +00:00
Peter Barker
4776183554 AP_Frsky_Telem: use battery singleton 2019-02-12 17:53:23 +00:00
Peter Barker
53111129f2 AP_Frsky_Telem: use AHRS singleton 2019-02-12 17:53:23 +00:00
Peter Barker
db4b1aa7aa AP_Frsky_Telem: use serialmanager singleton 2019-02-12 17:53:23 +00:00
Andrew Tridgell
54ffeef20e HAL_ChibiOS: fixed pixhawk4 i2c bus numbers 2019-02-12 15:20:36 +11:00
Andrew Tridgell
5ab75b5ccb HAL_ChibiOS: updated Pixhawk4 pinout 2019-02-12 15:17:27 +11:00
Peter Barker
e06d9e65b2 AP_Rally: use AP::rally() to get singleton 2019-02-12 13:08:03 +09:00
Peter Barker
cf2c0ec334 Tools: autotest: print time taken for each test 2019-02-12 13:30:28 +11:00
Andrew Tridgell
bf4dc2d3b7 AP_RangeFinder: probe all I2C buses for rangefinders
we now have flight boards with up to 4 I2C buses, and probing only 2
of them causes user confusion
2019-02-12 13:07:24 +11:00
Andrew Tridgell
0089e98bb6 Plane: call AHRS resetHeightDatum() on baro reset
this prevents the AMSL estimate from the EKF going off badly if we
disarm at a high altitude
2019-02-12 12:17:02 +11:00
Peter Barker
542aa4c9e0 AP_Rally: log any changes or additions to rally points 2019-02-12 11:48:55 +11:00
Peter Barker
9108eeb8f5 AP_Logger: log rally points into dataflash on upload 2019-02-12 11:48:55 +11:00
Peter Barker
3bba981a00 Plane: dataflash always emits rally points at startup 2019-02-12 11:48:55 +11:00
Peter Barker
5f152378fd Copter: dataflash always emits rally points at startup 2019-02-12 11:48:55 +11:00
Peter Barker
9a04ae5cf7 AP_Logger: use a MessageWriter to emit rally points 2019-02-12 11:48:55 +11:00
Peter Barker
3765bae5e0 Copter: remove checking for coordinate frames
This is very much NFC.  This change uncovers previous dead code in the
case that we are not ignoring yaw.
2019-02-12 09:07:50 +09:00
Peter Barker
243cf690da Copter: use altitude frame mapping function 2019-02-12 09:07:50 +09:00
Peter Barker
64b4e69e34 GCS_MAVLink: break out an altitude enumeration mapping function 2019-02-12 09:07:50 +09:00
Peter Barker
9105284a7d Rover: remove rc out initialisation wrappers 2019-02-12 08:21:30 +09:00
Pierre Kancir
b1a03a3567 gitignore: ignore Jetbrains files and cmake build 2019-02-12 08:03:36 +09:00
Mark Whitehorn
b9f3118374 Plane: allow changing Q_TRIM_PITCH in flight
change float comparison to is_equal
2019-02-12 09:42:19 +11:00
Mark Whitehorn
0e2e077d96 AP_AHRS: add method to set pitch trim 2019-02-12 09:42:19 +11:00
Tom Pittenger
1648a6544b AP_OSD: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
8ef4616bc2 AP_BattMonitor: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
548a579f18 AP_HAL_ChibiOS: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
b8ee535fb4 Copter: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
3415d309ea AC_AutoTune: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
edc8ccace6 AC_Sprayer: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
c10fd9cafb AP_AHRS: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
0c32453505 AP_Airspeed: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
13f0ad8a1c AP_Arming: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
52887e1c45 AP_Baro: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
0f311ba04f AP_BLHeli: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
ab95c8e5ee AP_BoardConfig: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
7fc4003c69 AP_Camera: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Tom Pittenger
2cd485e7ae AP_Compass: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00