Dr.-Ing. Amilcar do Carmo Lucas
36d755a48a
Rover: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Peter Barker
1977123362
Rover: remove redundant home-setting sanity checks
2019-02-15 08:28:45 +11:00
Peter Barker
a722fd1323
Rover: make setting of home boolean in preparation for sanity checks
2019-02-15 08:28:45 +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
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
2019-01-18 18:08:20 +11:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Peter Barker
29782c3d2e
Rover: move AP_Mission object into ModeAuto class
...
This mirrors what we did for Copter
2018-12-13 13:44:46 +09:00
Peter Barker
50cb391dea
Rover: leave AHRS to log and notify home changes
2018-10-16 10:55:13 +11:00
Peter Barker
9b269b1b56
Rover: use AP_RTC
...
Rover: AP_GPS now sets the system time directly
2018-06-15 08:01:22 +10:00
Peter Barker
c99cc465e6
Rover: split home-set and home-locked state
2018-05-29 14:38:45 +10:00
Peter Barker
0e8f01021d
Rover: remove arguments to send_home and send_ekf_origin
2018-05-17 20:42:36 +10:00
Peter Barker
0d3051e46a
Rover: handle setting of ekf origin in GCS_MAVLink
2018-05-17 10:13:42 +10:00
Peter Barker
a52f3d8f70
Rover: move Log_Write_Home_And_Origin into AP_AHRS
2018-05-17 10:13:42 +10:00
Peter Barker
9d0da4a71f
Rover: move home state into AP_AHRS
2018-03-19 10:32:37 +09:00
Dylan Herman
3edaff0309
Rover: sets SmartRTL home after ahrs home is set
...
Now uses AP_SmartRTL::set_home. It is called when arming and when GCS
requests home to be set to the current location
2018-01-17 11:03:56 +09:00
Randy Mackay
de406da254
Rover: set home using EKF position
...
previously the home position could be set from DCM
This makes the setting of home slower but more accurate
2017-09-19 10:30:15 +09:00
Randy Mackay
894bf2a23f
Rover: support SET_GPS_GLOBAL_ORIGIN message
2017-09-19 10:30:15 +09:00
Randy Mackay
fe6465b748
Rover: remove next_WP, wp_distance, navigate
...
Also remove prev_WP, wp_totalDistance which are all handled within mode class
2017-08-05 11:20:58 +09:00
Randy Mackay
1b19ee865d
Rover: remove active-loiter and set-auto-wp
...
these are now handled by auto mode
2017-08-05 11:20:58 +09:00
Randy Mackay
b9db9229d9
Rover: replace vehicle code guided methods with calls to guided mode class
...
set_guided_WP replaced by mode_guided.set_desired_location
nav_set_yaw_speed replaced with mode_guided.set_desired_heading_and_speed
set_guided_velocity replaced with mode_guided.set_desired_turn_rate_and_speed
guided_control structure replaced with mode_guided members
use_pivot_steering accepts yaw-error argument instead of calculating it itself internally
2017-08-05 11:20:58 +09:00
Peter Barker
07f4603533
Rover: integrate mode class
2017-07-21 10:13:20 +09:00
Peter Barker
aeed1f0ff4
Rover: eliminate global static GCS_MAVLINK::send_home_all
2017-07-11 23:48:39 +01:00
Peter Barker
9509f7f1bf
Rover: use send_text method on the GCS singleton
2017-07-09 17:17:29 -04:00
Randy Mackay
eb2aa80fca
Rover: compass set-initial-location uses ahrs location
...
Previously it could attempt to use a gps location even if gps was not being used
Also compass-accumulate moved to sensors.cpp
2017-06-14 09:12:20 +09:00
Randy Mackay
584974fd74
Rover: set home from ekf position
2017-06-14 09:12:20 +09:00
Pierre Kancir
00204367fc
APMRover2: Reduce the home position reset when disarm
2017-05-04 21:57:45 +10:00
Pierre Kancir
f725e9f2b5
APMRover2: correct some style after addition of velocity controler
2017-05-04 19:53:21 +10:00
Pierre Kancir
670e7b7914
ROVER: put all guided param in one structure
2017-05-04 19:53:21 +10:00
Pierre Kancir
045d171ab9
Rover: add Guided velocity controller
2017-05-04 19:53:21 +10:00
Randy Mackay
c1d3384835
Rover: rename set_next_WP to set_auto_WP to clarify usage
2017-05-04 19:53:21 +10:00
Randy Mackay
d6b55b2d09
Rover: set_guided_WP accepts location
2017-05-04 19:53:21 +10:00
Michael du Breuil
51c97af5b5
Rover: Reset home to AHRS location rather then snapshotting GPS
...
Also corrects rover locking home altitude to EKF origin altitude
2017-02-28 11:33:53 +11:00
Pierre Kancir
d68c7f935b
Rover: commands.cpp correct whitespace, remove tabs
2016-12-30 09:20:24 +09:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Grant Morphett
777af546e0
Rover: ensure height calcs are using the same origin.
2016-08-25 12:50:20 +10:00
Luis Vale Gonçalves
999e99c6f3
Rover: revise text messages
...
Text revisions on Rover. Uniformization on messages severity.
2015-11-25 20:50:00 +09:00
Grant Morphett
2d1745ab6a
Rover: Implemented the HOME state update from Plane
2015-11-11 13:39:38 +11:00
lvale
a64689600f
Rover: text message severity uniformization
...
Global revision of message severity values.
Required also change to the low priority function gcs_send_text_fmt()
on GCS_Mavlink.cpp to disable the automatic setting of priority on
messages sent by this function
2015-11-05 12:33:56 +09:00
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
2015-10-30 14:35:07 +09:00
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Randy Mackay
836fff2119
Rover: send home position when home is set or get-home msg received
2015-10-03 12:56:21 +09:00
squilter
b4cf0ce2bb
Rover: update severity values
2015-08-25 14:04:40 +09:00
Randy Mackay
5ef4f8e90a
Rover: log ahrs home and ekf origin
2015-07-06 13:28:10 +09:00
Andrew Tridgell
b47a09b709
Rover: fixed build of .cpp files
2015-05-21 07:48:49 +10:00
Andrew Tridgell
2b6835d187
Rover: rename all .pde files to .cpp files
2015-05-21 07:48:49 +10:00