Michael du Breuil
a98c8427dd
Rover: Expose the AFS instance to MAVLink
2017-08-15 15:14:56 +01:00
Randy Mackay
d99108f3bc
Rover: use AR_AttitudeControl for throttle control
...
also direct throttle nudge replaced with speed nudge
calc_speed_max estimates vehicle's top speed based on cruise-speed and
cruise-throttle
steering mode now provides total target speed instead of using speed plug
throttle nudge
motor limits provided to attitude control to stop i-term buildup
uses negative desired speed instead of reversed flag
reporting to GCS uses new throttle controller
braking is simply enabled and allows a reverse motor output regardless of vehicle
speed
2017-08-15 20:47:19 +09:00
Randy Mackay
9097269d6d
Rover: use AR_AttitudeControl for steering control
2017-08-15 20:47:19 +09:00
Peter Barker
edab526b01
Rover: send gps messages as separate queued messages
2017-08-09 16:18:22 +01:00
Peter Barker
f7fd663f45
Rover: move sending of gps_raw up
2017-08-09 16:18:22 +01:00
Peter Barker
89a5272ab5
Rover: move sending of system_time up
2017-08-09 16:18:22 +01:00
Peter Barker
341a9ae032
Rover: move sending of camera_feedback up
2017-08-09 16:18:22 +01:00
Peter Barker
ece800ba90
Rover: move sending of meminfo up
2017-08-09 16:18:22 +01:00
Peter Barker
c642dc616a
Rover: use new retry_deferred method
2017-08-05 23:14:18 +01:00
Randy Mackay
3863542194
Rover: adjust set-position-target-local-ned handling
...
add support for just yaw or yaw-rate
remove support for simultaneous position and velocity
2017-08-05 11:20:58 +09:00
Randy Mackay
46faece76b
Rover: set-attitude-target accepts quaternions for target heading
2017-08-05 11:20:58 +09:00
Randy Mackay
d56d222971
Rover: set-attitude-target consumes thrust in -1 to +1 range
...
This makes the processing consistent with the mavlink spec
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
Randy Mackay
783f8243df
Rover: use mode class's get_distance_to_destination and speed_error
...
used for reporting to GCS and logging
2017-08-05 11:20:58 +09:00
Peter Barker
137d513fdc
Rover: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
dbac7447d6
Rover: move try_send_message send_hwstatus up
2017-08-03 14:34:33 +01:00
Peter Barker
4da89a948a
Rover: move try_send_message mission handling up
2017-08-03 14:33:37 +01:00
Peter Barker
dbdfce570a
Rover: move try_send_message compass message handling up
2017-08-03 14:24:47 +01:00
Peter Barker
d44c7f0886
Rover: base SYS_STATUS load average on variable loop rate
2017-08-01 19:39:27 +01:00
khancyr
23532bf45c
Rover: add reason to set_mode
2017-07-31 18:01:17 +09:00
Peter Barker
2014eb0def
Rover: move common mavlink camera handling up
2017-07-28 14:32:58 +01:00
Peter Barker
81d52c282c
Rover: camera is responsible for taking distance-based-images and logging
2017-07-28 14:27:53 +01:00
Peter Barker
160831d4ca
Rover: move gps inject handling up to GCS_MAVLINK
2017-07-27 12:03:25 +01:00
Randy Mackay
ddc70058d5
Rover: reporting wheel encoder rpm
2017-07-27 16:52:29 +09:00
Peter Barker
fec152385c
Rover: handle common GPS messages in base GCS_MAVLINK class
2017-07-25 14:00:45 +01:00
Peter Barker
07f4603533
Rover: integrate mode class
2017-07-21 10:13:20 +09:00
Peter Barker
f1c3e16354
Rover: remove MSG_STATUSTEXT entirely
2017-07-18 16:12:59 +01:00
Randy Mackay
8a86b64776
Rover: motor test accepts negative percentages
2017-07-18 10:15:44 +09:00
khancyr
5208466629
Rover: add motor test
2017-07-18 10:15:44 +09:00
Peter Barker
cee7ce0571
Rover: move handling of PREFLIGHT_SET_SENSOR_OFFSETS up
2017-07-17 14:17:19 +01:00
Peter Barker
3586f0e8fb
Rover: move handling of MAG_CAL command longs up
2017-07-17 14:17:19 +01:00
Peter Barker
a963a80b91
Rover: move MAV_CMD_START_RX_PAIR handling to base class
2017-07-17 14:17:19 +01:00
Peter Barker
bcf7c6e6b6
Rover: move mavlink support for servo/relay up
2017-07-16 23:56:00 +01:00
Peter Barker
40eb07f472
Rover: add common handling of mavlink command messages
2017-07-16 23:56:00 +01:00
khancyr
40b860e240
Rover: rename sonar to rangefinder
2017-07-14 17:40:05 +01:00
Peter Barker
adb89c5ca6
Rover: remove unneeded telemetry_delayed parameter
2017-07-12 17:01:36 +01:00
Peter Barker
7aff4c6ab9
Rover: move handling of incoming statutext messages up
2017-07-12 16:52:24 +01:00
Peter Barker
901045b029
Rover: move common mission handling up to GCS_MAVLINK
2017-07-11 23:45:17 +01:00
Peter Barker
2692ee22d3
Rover: eliminate gcs_send_mission_item_reached wrapper
2017-07-11 23:45:16 +01:00
Peter Barker
130ad52a22
Rover: eliminate gcs_send_message wrapper
2017-07-11 23:45:16 +01:00
Peter Barker
9509f7f1bf
Rover: use send_text method on the GCS singleton
2017-07-09 17:17:29 -04:00
Peter Barker
7ad003a211
APMrover2: use Notify singleton for sending statustext
2017-07-09 17:17:29 -04:00
Pierre Kancir
267a1532b9
Rover: integrate motors library
...
move throttle_slew_limit and THR_SLEWRATE parameter
move have_skid_steering to library
move mix_skid_steering to library's output_skid_steering method
move radio.cpp's output channel initialisation to motor's init method
use motors.get_throttle and get_steering instead of getting from Servo objects
use motors.set_throttle and set_steering instead of setting to Servo object
AP_Arming::arming_required is replaced with SAFE_DISARM parameter
2017-07-08 16:07:13 +09:00
Peter Barker
cfeb449979
Rover: create GCS subclass, use inheritted methods
2017-07-07 16:18:37 +01:00
Randy Mackay
351b37fc31
Rover: only report system status after init has completed
...
This reduces errors reported to the GCS during startup
2017-06-28 11:32:01 +09:00
Peter Barker
3a85d8ed39
Rover: handle knowledge of in_log_download in DataFlash
2017-06-27 03:10:43 +01:00
Peter Barker
689a5cb238
Rover: move send-logs-via-mavlink code into DataFlash
2017-06-27 03:10:43 +01:00
Andrew Tridgell
d060fd2826
Rover: replace get_output_norm*100 for throttle with get_output_scaled
...
No functional change
2017-06-21 10:30:39 +09:00
Michael du Breuil
57c9afb77e
Rover: Handle NAV_CONTROLLER_OUTPUT.wp_dist overflowing
2017-06-20 15:41:50 +01:00
Peter Barker
900f0cc774
Rover: move MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS handling up
2017-06-17 15:07:48 +01:00
Peter Barker
aeacc11573
APMrover2: stop using in_mavlink_delay as a proxy for disabling logging
2017-06-16 17:07:48 +01:00
Randy Mackay
584974fd74
Rover: set home from ekf position
2017-06-14 09:12:20 +09:00
Randy Mackay
0da6e73d76
Rover: add support for visual odometry
2017-06-14 09:12:20 +09:00
Pierre Kancir
a26710d769
APMRover2: add support for DISTANCE_SENSOR
2017-06-08 01:31:57 +01:00
Paulo Neves
74d67f8d05
Rover: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support.
2017-05-25 09:35:22 +09:00
Michael du Breuil
379a4fbfab
Rover: Ignore landing message
2017-05-24 15:22:27 -07:00
Grant Morphett
5ac1293a52
Rover: Make base_mode armed status depend upon the arming library, not
...
soft armed
This change brings it in line with Plane.
2017-05-23 14:51:22 +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
d6b55b2d09
Rover: set_guided_WP accepts location
2017-05-04 19:53:21 +10:00
Andrew Tridgell
37585f213a
Rover: use common send_queued_parameters()
2017-05-01 14:36:10 +10:00
Pierre Kancir
2eb0ed6242
APMRover2: Remove, correct some cast
2017-04-26 08:43:09 +10:00
Pierre Kancir
20cc336885
APMRover2: const correctness
2017-04-26 08:43:09 +10:00
Pierre Kancir
c41e695c98
APMRover2: correct some style
2017-04-26 08:43:09 +10:00
Pierre Kancir
b634fe548d
APMRover2: Use c++ cast
2017-04-26 08:43:09 +10:00
Andrew Tridgell
7cc1009dab
Rover: ignore MSG_AOA_SSA
2017-04-19 20:48:42 +10:00
Michael du Breuil
7328a8ad41
Rover: Send BATTERY_STATUS
2017-04-12 10:21:49 +09:00
Peter Barker
82ac46e0ed
Rover: not in log download upon log erase
...
erase is a synchronous operation
2017-02-13 11:36:16 +11:00
Peter Barker
45e0765b97
Rover: Support for a GCS singleton
2017-02-13 09:32:01 +11:00
Peter Barker
407e251e1d
Rover: rename gcs[] to gcs_chan[]
...
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
7f5ef7cf3a
Rover: rename MSG_RADIO_OUT to MSG_SERVO_OUTPUT_RAW to better describe what it is
2017-02-07 11:41:12 +11:00
Randy Mackay
c701d6a715
Rover: send text to notify
2017-01-23 15:07:21 -08:00
Andrew Tridgell
93d6b012c2
Rover: convert to new SRV_Channel API
2017-01-12 17:39:37 +11:00
Pierre Kancir
d33f67e0c4
Rover: gcs_mavlink.cpp correct whitespace, remove tabs
2016-12-30 09:20:24 +09:00
murata
490571ba44
Rover: Changed if statements to switch statement.
...
Rover: Changed if statements to switch statement.
2016-12-24 08:53:20 +11:00
Randy Mackay
75aaf33d58
Rover: pass HIL_GPS to gps driver
2016-12-08 15:52:26 +09:00
Pierre Kancir
5ed9d22bf6
Rover: correct indentation and style on GCS_Mavlink
...
Remove trailling whitespace, tabs, limit single line if-statement scope, add missing space
2016-11-24 09:34:48 +11:00
Pierre Kancir
326e0f224f
Rover: added SYSID_ENFORCE parameter
2016-11-24 09:34:48 +11:00
Francisco Ferreira
e870c4bf99
Rover: support MAV_CMD_ACCELCAL_VEHICLE_POS
2016-11-15 11:42:54 -08:00
Andrew Tridgell
84179588a9
Rover: use handle_common_message()
2016-11-09 17:08:09 +11:00
murata
a71e889f51
Rover: To nullptr from NULL.
2016-10-28 16:22:44 -03:00
floaledm
629af84ca1
Rover: update sensor status error flags independently of sending a sys_status message
2016-10-28 15:11:44 +11:00
Michael du Breuil
b5684e7eb4
Rover: Allow compass to manage buffer space for MAG_CAL
2016-10-27 14:04:34 +11:00
Grant Morphett
2d09db4ecb
Rover: added a new form of GUIDED mode
...
Rover now accepts a new message MAV_CMD_NAV_SET_YAW_SPEED
which has an angle in centidegrees and a speed scale and the rover
will drive based on these inputs.
2016-10-25 08:04:01 +11: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
Andrew Tridgell
8b7c60dcd7
Rover: use handle_rc_bind
2016-10-15 21:42:38 +11:00
Andrew Tridgell
412dca1615
Rover: deprecate RC_CHANNELS_RAW
2016-10-13 21:24:13 +11:00
Michael du Breuil
8358809a02
Rover: Support GPS_RTCM_DATA
2016-10-11 11:00:36 +11:00
Lucas De Marchi
b4a3e8a9c9
APMrover2: Fix use of logical op instead of bitwise op
...
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Tom Pittenger
72da58960c
Rover: log to dataflash statustext messages from my_gcs
2016-09-26 00:13:39 -07:00
floaledm
93f2de6780
Rover: change sensor health check to prevent false positive
2016-09-22 13:56:41 -05:00
Michael du Breuil
f1f8233220
Rover: Return RESULT_FAILED for GET_CMD_HOME if home is unset
2016-09-03 16:54:18 +09:00
Grant Morphett
df99941fc8
Rover: Added support for COMMAND_INT
...
And also made DO_SET_ROI available as a COMMAND_INT as this gives us
cm accuracy rather then 1.5m when a float is used.
2016-08-26 11:31:35 +10:00
Randy Mackay
1181acc4e4
Rover: add support for SET_POSITION_TARGET_GLOBAL_INT
...
Also supports SET_POSITION_TARGET_LOCAL_NED but for both messages only the position fields are consumed. Support for velocity, acceleration and yaw fields are not included.
2016-08-25 13:08:26 +09:00
Andrew Tridgell
203e0c7472
Rover: fixes for Frsky_Telem API changes
2016-08-25 10:16:19 +10:00
Peter Barker
6d98dd5233
Rover: add dataflash as a bit for the mavlink SYS_STATUS message
2016-08-11 17:48:44 -03:00
Lucas De Marchi
3223a1a542
APMrover2: Remove i2c lockup count
...
This was returned only for a single bus and on all supported platforms
this is hardcoded to 0.
2016-07-28 18:03:09 -03:00
Andrew Tridgell
a4270b1bb6
APMrover2: adjust for 16 channels in SERVO_OUTPUT_RAW
2016-07-25 10:06:02 +10:00
Andrew Tridgell
c3d39e9906
Rover: added PLAY_TUNE and LED_CONTROL
2016-07-22 15:00:17 +10:00