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
6 years ago
Peter Barker
1977123362
Rover: remove redundant home-setting sanity checks
6 years ago
Peter Barker
a722fd1323
Rover: make setting of home boolean in preparation for sanity checks
6 years ago
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
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
29782c3d2e
Rover: move AP_Mission object into ModeAuto class
...
This mirrors what we did for Copter
6 years ago
Peter Barker
50cb391dea
Rover: leave AHRS to log and notify home changes
6 years ago
Peter Barker
9b269b1b56
Rover: use AP_RTC
...
Rover: AP_GPS now sets the system time directly
7 years ago
Peter Barker
c99cc465e6
Rover: split home-set and home-locked state
7 years ago
Peter Barker
0e8f01021d
Rover: remove arguments to send_home and send_ekf_origin
7 years ago
Peter Barker
0d3051e46a
Rover: handle setting of ekf origin in GCS_MAVLink
7 years ago
Peter Barker
a52f3d8f70
Rover: move Log_Write_Home_And_Origin into AP_AHRS
7 years ago
Peter Barker
9d0da4a71f
Rover: move home state into AP_AHRS
7 years ago
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
7 years ago
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
7 years ago
Randy Mackay
894bf2a23f
Rover: support SET_GPS_GLOBAL_ORIGIN message
7 years ago
Randy Mackay
fe6465b748
Rover: remove next_WP, wp_distance, navigate
...
Also remove prev_WP, wp_totalDistance which are all handled within mode class
8 years ago
Randy Mackay
1b19ee865d
Rover: remove active-loiter and set-auto-wp
...
these are now handled by auto mode
8 years ago
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
8 years ago
Peter Barker
07f4603533
Rover: integrate mode class
8 years ago
Peter Barker
aeed1f0ff4
Rover: eliminate global static GCS_MAVLINK::send_home_all
8 years ago
Peter Barker
9509f7f1bf
Rover: use send_text method on the GCS singleton
8 years ago
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
8 years ago
Randy Mackay
584974fd74
Rover: set home from ekf position
8 years ago
Pierre Kancir
00204367fc
APMRover2: Reduce the home position reset when disarm
8 years ago
Pierre Kancir
f725e9f2b5
APMRover2: correct some style after addition of velocity controler
8 years ago
Pierre Kancir
670e7b7914
ROVER: put all guided param in one structure
8 years ago
Pierre Kancir
045d171ab9
Rover: add Guided velocity controller
8 years ago
Randy Mackay
c1d3384835
Rover: rename set_next_WP to set_auto_WP to clarify usage
8 years ago
Randy Mackay
d6b55b2d09
Rover: set_guided_WP accepts location
8 years ago
Michael du Breuil
51c97af5b5
Rover: Reset home to AHRS location rather then snapshotting GPS
...
Also corrects rover locking home altitude to EKF origin altitude
8 years ago
Pierre Kancir
d68c7f935b
Rover: commands.cpp correct whitespace, remove tabs
8 years ago
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.
8 years ago
Grant Morphett
777af546e0
Rover: ensure height calcs are using the same origin.
9 years ago
Luis Vale Gonçalves
999e99c6f3
Rover: revise text messages
...
Text revisions on Rover. Uniformization on messages severity.
9 years ago
Grant Morphett
2d1745ab6a
Rover: Implemented the HOME state update from Plane
9 years ago
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
9 years ago
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
9 years ago
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.
9 years ago
Randy Mackay
836fff2119
Rover: send home position when home is set or get-home msg received
9 years ago
squilter
b4cf0ce2bb
Rover: update severity values
10 years ago
Randy Mackay
5ef4f8e90a
Rover: log ahrs home and ekf origin
10 years ago
Andrew Tridgell
b47a09b709
Rover: fixed build of .cpp files
10 years ago
Andrew Tridgell
2b6835d187
Rover: rename all .pde files to .cpp files
10 years ago
Andrew Tridgell
b731ebfd9e
Rover: coversion to class now complete
10 years ago
Andrew Tridgell
adbf9c362e
Rover: automatic substitution for class members
10 years ago
Andrew Tridgell
cd8fd86565
Rover: use mission.start_or_resume()
...
this allows the user to setup whether a mission restarts or resumes
11 years ago
Andrew Tridgell
f4079f57b2
Rover: convert to new GPS API
11 years ago
Randy Mackay
59555e8364
Rover: revert next_WP, prev_WP to location structures
11 years ago