Commit Graph

671 Commits

Author SHA1 Message Date
Andrew Tridgell
254d4219d4 Rover: fixed build 2015-05-27 14:28:48 +10:00
Peter Barker
58f2bcb754 Rover: use 64-bit timestamps in dataflash logs 2015-05-27 11:54:15 +10:00
Andrew Tridgell
7d51817716 Rover: fix for scheduler API change 2015-05-26 14:33:43 +10:00
Lucas De Marchi
2f5314a1a6 APMrover2: use functor macros
Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
2015-05-26 13:46:54 +10:00
Lucas De Marchi
e24c5349c8 APMrover2: cleanup in tabs and trailing whitespace
While doing other changes, fix the coding style of this file so the
commits are more readable.
2015-05-26 13:46:51 +10:00
Andrew Tridgell
8046b1fd5c Rover: fixed path for GCS_MAVLink parameters 2015-05-21 11:42:59 +10:00
Andrew Tridgell
3ae11376a9 Rover: removed NOINLINE define 2015-05-21 09:35:40 +10:00
Andrew Tridgell
daa2c611a9 Rover: fixed APM1 build 2015-05-21 07:48:50 +10:00
Andrew Tridgell
32a5f4c0b5 Rover: added make.inc 2015-05-21 07:48:50 +10:00
Andrew Tridgell
3a28811909 Rover: removed remaining warnings from PX4 build 2015-05-21 07:48:50 +10: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
Andrew Tridgell
b731ebfd9e Rover: coversion to class now complete 2015-05-21 07:48:48 +10:00
Andrew Tridgell
adbf9c362e Rover: automatic substitution for class members 2015-05-21 07:48:47 +10:00
Andrew Tridgell
f99186afbc Rover: added initial Rover class 2015-05-21 07:48:47 +10:00
Andrew Tridgell
fb435fc78e Rover: support setting just accel trim with preflight-cal
use param5==2
2015-05-16 07:56:34 +10:00
Randy Mackay
757f388d62 Rover: add support for 4th mavlink channel 2015-05-15 15:07:30 +09:00
Andrew Tridgell
11a4b757f9 Rover: call Log_Write_POS() 2015-05-15 14:28:16 +10:00
Andrew Tridgell
474ee2a11e Rover: fix for new compass API 2015-05-15 14:25:45 +10:00
Tom Pittenger
9de10f271a Rover: Write new mission to log without telling GCS 2015-05-13 20:25:59 +09:00
Randy Mackay
ab70cb13af Rover: clarify SYSID_MAV parameter description 2015-05-11 09:23:04 +09:00
Grant Morphett
0f13bc6d2a Rover: Updates to guided mode to work correctly on Rover 2015-05-08 21:03:30 +10:00
Tom Pittenger
06796cd994 Rover: if receiving last mission item then log new mission to dataflash 2015-05-08 21:01:51 +10:00
Dario Lindo Andres
4884932280 Rover: Updated AUTO_TRIGGER_PIN value definitions
Mission Planner and parameter.h definitions seem to be outdated. A bit
confusing because when its readed, you think you need to define it
between 0-8 (APM boards) instead of 50-55 (PX4-Pixhawk boards).
2015-05-08 16:30:35 +10:00
Andrew Tridgell
fabee44583 Rover: support raw IMU logging 2015-05-07 12:11:43 +10:00
Andrew Tridgell
686d1e7548 Rover: revert AP_Math class change 2015-05-05 13:27:03 +10:00
Tom Pittenger
b35258efed APMrover2: compile warnings: float to double. print statements require doubles 2015-05-05 13:27:01 +10:00
Tom Pittenger
928a5e0766 APMrover2: compile warnings: float to double. print statements require doubles 2015-05-05 13:26:59 +10:00
Tom Pittenger
bff69de249 APMrover2: compiler warnings: apply is_zero(float) or is_equal(float) 2015-05-05 13:26:58 +10:00
Tom Pittenger
514c83301c APMrover2: compiler warnings: apply is_zero(float) or is_equal(float) 2015-05-05 13:26:57 +10:00
Tom Pittenger
002d664ea0 APMrover2: compiler warnings: apply is_zero(float) or is_equal(float) and float to double 2015-05-05 13:26:53 +10:00
Tom Pittenger
8ddd97c06f APMrover2: compiler warnings: apply is_zero(float) or is_equal(float) 2015-05-05 13:26:53 +10:00
Andrew Tridgell
eda187c75a Rover: fix for HAL_SITL rename 2015-05-05 09:45:57 +10:00
Randy Mackay
609bb0c56a Rover: fix MNT param description 2015-04-29 09:08:06 +09:00
Tom Pittenger
e867b148f5 Rover: fix compile warnings for unused functions 2015-04-24 14:10:12 +09:00
Randy Mackay
d5934343d4 Rover: pass sonar into ahrs constructor 2015-04-24 11:22:16 +09:00
Randy Mackay
245e46205a Rover: replace range finder health with status 2015-04-24 10:57:32 +09:00
Niels Joubert
60c247ed12 Rover: Handle GPS Data Injection 2015-04-24 08:01:32 +10:00
Randy Mackay
dc3fdf76a3 Rover: remove call to empty camera.configure_msg 2015-04-20 13:50:23 +09:00
Jaime Machuca
7330b5e91b Rover: add call to send digicam configure messages from a mission item
Also add log_picture to separate the triggering of a picture
from the dataflash logging and feedback message to the GCS
2015-04-20 13:50:21 +09:00
Andrew Tridgell
4b5a36cc3f Rover: added LOCAL_POSITION_NED message 2015-04-05 09:25:28 -07:00
Randy Mackay
8f49c96b1a Rover: fix serial manager integration 2015-04-01 15:13:31 -07:00
Randy Mackay
ff1d6dea61 APMRover: integrate Serial Manager instance 2015-04-01 14:59:28 -07:00
Randy Mackay
ab542de769 Rover: send invalid batt curr if monitor unhealthy 2015-03-20 11:05:37 +09:00
Andrew Tridgell
e1b998f011 Rover: disable CLI on APM2 by default
saves lots of flash. This is also consistent with plane and copter
2015-03-13 22:52:56 +11:00
Víctor Mayoral Vilches
0795783d37 Rover: Update compass to the new interface 2015-03-13 18:46:17 +11:00
Randy Mackay
c5bbd445cc Rover: send EKF_STATUS_REPORT in extra3 stream 2015-03-12 13:44:01 +09:00
Andrew Tridgell
8b0337ffd0 Rover: removed set_default_filter() call 2015-03-12 12:50:31 +11:00
Andrew Tridgell
29bf3f569e Rover: removed 1D accel calibration 2015-03-12 12:50:29 +11:00
Andrew Tridgell
b8ab87ea86 Rover: added CLI_ENABLED parameter 2015-03-09 17:58:37 +11:00
Andrew Tridgell
d9950ea07f Rover: set gyros disabled when calibrating 2015-03-09 17:58:37 +11:00
Grant Morphett
e0f828f4d2 APMrover2: Creating release 2.49 of Rover. 2015-03-04 11:48:47 +11:00
Marco Walther
339dac18f7 Rover: Fix the yellow binking lights after the AP_Notify updates 2015-03-04 09:03:49 +11:00
Marco Walther
8629637cec Rover: Fix for a minor sonar problem 2015-03-04 09:03:49 +11:00
Grant Morphett
3535574b9d Rover: Created the rover release v2.48 2015-02-20 17:07:59 +11:00
João Fortuna
d7d5b7bb73 Rover: Fixed MAVLINK stream trigger calculation. 2015-02-20 13:13:02 +09:00
Grant Morphett
171c0476b6 APMrover2: Publish Beta Release of version 2.48 2015-02-13 08:34:35 +11:00
Andrew Tridgell
149daf23a6 Rover: implement MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES 2015-02-12 09:04:09 +11:00
Staroselskii Georgii
1670ccf774 Rover: fixed BattMonitor initialisation 2015-02-12 07:51:24 +11:00
Jonathan Challinger
d08aa3edac APMrover2: use hal.util soft_armed state 2015-02-11 20:57:27 +11:00
Andrew Tridgell
529a05256d Rover: support AUTOPILOT_VERSION command 2015-02-11 19:52:38 +11:00
Grant Morphett
4ffb4f6fef APMrover2: Changes to fix the warnings in rover sitl build.
We are starting the process of resolving all the warnings in the
ardupilot builds of all vehicles and platforms.
2015-02-11 18:16:45 +11:00
Andrew Tridgell
c8d140f17b Rover: fixed build warning 2015-02-03 09:49:15 +11:00
Randy Mackay
9f7f1e62df Rover: integrate SerialManager 2015-01-29 14:05:16 +11:00
Randy Mackay
06fcb87755 Rover: move MNT param's underscore to mount lib 2015-01-29 13:57:19 +11:00
Randy Mackay
1ab405bf88 Rover: integrate mount frontend-backend restructure
rename mount.set_roi_cmd to set_roi_target
2015-01-29 13:57:18 +11:00
Matthias Badaire
ff064e12b1 Rover: Frsky telemtry change move parameter to init of the class
Parameter needs to be passed and use at the init of the class frsky telem
2015-01-22 16:49:39 +11:00
Grant Morphett
5b4443a137 Rover: Improved message when AUTO selected but no commands loaded.
I updated the message when you select AUTO mode but you haven't put
any waypoints in.  It now says "No commands so can't set AUTO- setting
HOLD instead"
2015-01-22 15:12:00 +11:00
Robert Lefebvre
f796518695 Rover: Change Compass logging to new DataFlash method that handles instances. 2015-01-21 14:37:56 +09:00
Robert Lefebvre
b3aab67239 Rover: Change Compass logging to use DataFlash library method. 2015-01-21 14:37:47 +09:00
Robert Lefebvre
89fd543f4d Rover: Change Mode logging to use DataFlash library method. 2015-01-21 14:37:45 +09:00
Robert Lefebvre
7254de4e23 Rover: Change Attitude logging to use DataFlash library method. 2015-01-21 14:37:42 +09:00
Robert Lefebvre
8da62107fa Rover: Change Current logging to use DataFlash library method. 2015-01-21 14:37:40 +09:00
Andrew Tridgell
e575bc264e Rover: updates for new AP_Baro API 2015-01-09 11:50:55 +11:00
Andrew Tridgell
f400f39f08 Rover: fixed build warnings 2015-01-09 11:38:21 +11:00
Andrew Tridgell
8a77fef6f8 Rover: added support for 2nd battery 2015-01-09 11:38:18 +11:00
Staroselskii Georgii
9f54c4920e Rover: added AK8963 support 2015-01-07 08:41:13 +11:00
Andrew Tridgell
5193b2b7cf Rover: added OpticalFlow object
needed to keep SITL build happy
2015-01-03 14:16:33 +11:00
Randy Mackay
4521d8169b Rover: BATT param's underscore moved to library 2014-12-31 15:22:56 +09:00
Randy Mackay
fe8730497a Rover: use battery.has_current 2014-12-31 15:22:53 +09:00
Randy Mackay
8960766900 Rover: remove logging dependency on optflow 2014-12-31 13:16:18 +09:00
priseborough
ee75f26edb Rover: Don't log EKF optical flow data if not required 2014-12-31 13:16:12 +09:00
Randy Mackay
4db219e70a Rover: pre_arm_gps_check flag always true 2014-12-26 12:32:41 +09:00
Andrew Tridgell
87df3c3442 Rover: cleanup mavlink_system setup 2014-12-17 11:29:50 +11:00
Andrew Tridgell
76c47f56c5 Rover: removed fwd of unknown msg types 2014-12-11 12:32:54 +09:00
Andrew Tridgell
41a5f79046 Rover: removed use of mavlink_check_target() 2014-12-11 12:32:38 +09:00
Andrew Tridgell
008dc91a15 Rover: setup pwm esc scaling 2014-11-26 11:14:44 +11:00
Andrew Tridgell
1d2d8c903a Rover: make preflight calibration follow plane conventions 2014-11-21 14:47:09 +11:00
Andrew Tridgell
1ed02441a0 Rover: fix build with new mavlink repo 2014-11-18 11:19:53 +11:00
Randy Mackay
48c00728a7 Rover: add MOUNT_STATUS to STREAM_EXTRA3 2014-11-17 15:59:38 -08:00
Grant Morphett
699de81d02 Rover: Prepare for 2.47 release. 2014-11-15 14:24:07 +11:00
Grant Morphett
88fd9a2879 Rover: Update release notes ready for 2.47 release. 2014-11-15 14:24:05 +11:00
Grant
3831a0ed3e Rover: Fix INS test in CLI to quit on enter
The curly brace was in the wrong spot.
2014-11-15 13:37:52 +11:00
Andrew Tridgell
ef62a2c697 Rover: fixed CLI sonartest 2014-11-11 11:33:51 +11:00
Andrew Tridgell
35b558cfc2 Rover: convert to new AP_InertialSensor API 2014-10-24 12:10:38 +11:00
Randy Mackay
08f8fdfabd Rover: report gyro unhealthy if failed calibration 2014-10-09 10:00:19 +09:00
Andrew Tridgell
49fa887773 Rover: prepare 2.47beta1 2014-10-09 09:20:11 +11:00
Andrew Tridgell
1721216019 Rover: fixed skid steering
the main issue was the use of the last throttle in the throttle slew
rate control, but manual skid steering was also broken
2014-10-09 08:59:26 +11:00
Randy Mackay
799f559c1d Rover: only report ahrs unhealthy after initialisation 2014-10-02 14:41:27 +09:00
Andrew Tridgell
9453154b75 Rover: use handle_set_mode() 2014-10-01 14:19:42 +10:00
Randy Mackay
a860d91930 Rover: allow GCS to turn safety switch on/off 2014-10-01 13:12:08 +10:00
Randy Mackay
bab2c17e11 Rover: set sys_status motor outputs bit from safety switch 2014-10-01 13:11:50 +10:00
Randy Mackay
2dbfc6158d Rover: check target of set-mode request from GCS
Issue discovered and fix contributed by Deadolous
2014-09-30 15:19:28 +10:00
Randy Mackay
9de1ae8fbb Rover: individual accel and gyro status to GCS 2014-09-03 11:22:55 +09:00
Andrew Tridgell
3d8f1e03e1 Rover: prepare for 2.46 release 2014-08-26 07:48:55 +10:00
Andrew Tridgell
87f0cb6168 Rover: remove unused variable 2014-08-22 21:13:11 +10:00
Andrew Tridgell
7cda392827 Rover: show firmware version on param list 2014-08-22 21:13:11 +10:00
Andrew Tridgell
06c77c167e Rover: set GPS non-blocking
the new GPS driver only ever needs a non-blocking port
2014-08-19 10:08:17 +10:00
Randy Mackay
d130f0c499 Revert "Rover: use rcmap when sending radio_in to GCS"
This reverts commit fb867f3a06.
2014-08-16 20:31:29 +09:00
Randy Mackay
fb867f3a06 Rover: use rcmap when sending radio_in to GCS 2014-08-16 15:28:01 +09:00
Andrew Tridgell
c150338e53 Rover: convert to using StorageManager 2014-08-13 18:46:44 +10:00
Andrew Tridgell
0588d88435 Rover: fixed build 2014-08-06 17:59:20 +10:00
Andrew Tridgell
30b9c60938 Rover: rename Tele2Protocol to Serial2Protocol 2014-07-30 14:48:41 +10:00
Matthias Badaire
874ef65d74 Plane: Add SERIAL2_PROTOCOL for GCS and FRSky telemtry
This allows selection of protocol type on telem2. The default is MAVLink, but can be selected as FrSky protocol
2014-07-29 17:08:20 -07:00
Andrew Tridgell
bea5c8ae0c Rover: change default throttle slew rate to 100
this will help with NiMH batteries which may brownout with sudden
currents
2014-07-27 22:18:52 +10:00
Andrew Tridgell
7810314f7c Rover: avoid integer underflow in mavlink txspace check 2014-07-27 22:12:08 +10:00
Andrew Tridgell
71132058b4 Rover: need AP_Terrain.h for AP_Mission 2014-07-25 14:36:39 +10:00
akdslr
1083a89b0f Ardurover2 Parameters: Changed the SONAR prefix to RNGFND and renamed the previous SONAR_ parameters 2014-07-24 14:41:54 +10:00
Andrew Tridgell
739edafb42 Rover: use HAL board subtypes 2014-07-14 09:44:35 +10:00
Andrew Tridgell
3143e192d3 Rover: changes for more common mavlink code 2014-07-13 15:37:50 +10:00
Randy Mackay
170ca89a21 Rover: PREFLIGHT_SET_SENSOR_OFFSETS used to set compass offsets
replaces ardupilot specific message SET_MAG_OFFSETS
2014-07-10 20:25:28 +09:00
Randy Mackay
d789735d0d Rover: rename compass set_and_save_offsets 2014-07-10 20:25:26 +09:00
Randy Mackay
9064d7ebca Rover: add support for DO_SET_ROI outside of missions 2014-07-09 21:26:50 +09:00
Randy Mackay
3790b3aa82 Rover: add support for DO_SET_ROI within mission 2014-07-09 21:26:05 +09:00
Andrew Tridgell
bfe705a14d Rover: convert to new AP_RangeFinder API 2014-07-08 15:07:50 +10:00
Andrew Tridgell
fdeedfa173 Rover: support 3 magnetometers 2014-07-04 12:49:36 +10:00
Andrew Tridgell
57685ddf84 Rover: update for AP_Mount change 2014-06-18 12:04:43 +10:00
Randy Mackay
4d93dd47ee Rover: use common Log_Write_Camera
pair programmed with Craig Elder
2014-06-17 14:11:44 +10:00
Andrew Tridgell
a72b362c1f Rover: prepare for new beta 2014-06-04 14:03:23 +10:00
Andrew Tridgell
a1b94bf852 Rover: prevent unsupported command messages
this prevents errors on DO_CHANGE_SPEED
2014-06-04 14:00:31 +10:00
Andrew Tridgell
43059fbff5 Rover: release 2.46beta 2014-06-02 11:20:14 +10:00
Andrew Tridgell
e35c0a578d Rover: fix for HAL_GPIO_* 2014-06-02 10:42:36 +10:00
Andrew Tridgell
c4c912c703 Rover: use new GCS_Common.cpp functions 2014-05-28 09:35:50 +10:00
Andrew Tridgell
57e14f5387 Rover: updates for new GCS_MAVLink API 2014-05-21 12:45:25 +10:00
Andrew Tridgell
ed4068dc90 Rover: update baud rate parameter descriptions 2014-05-21 12:45:25 +10:00
Andrew Tridgell
1118609024 Rover: change baudrates to 16 bit
allows for much higher serial baud rates
2014-05-21 12:45:25 +10:00
Andrew Tridgell
fc0d703b9b Rover: much simpler SPEED_TURN_GAIN implementation
as soon as we hit the SPEED_TURN_DIST we lower target speed to the
specified gain
2014-05-18 21:15:07 +10:00
Andrew Tridgell
35e87fa2ea Rover: use setup_uart() 2014-05-16 11:45:20 +10:00
Andrew Tridgell
482933acd7 Rover: added reporting of AHRS health 2014-05-15 21:14:21 +10:00
Randy Mackay
d7e015db89 Rover: add Pixhawk pin to RSSI_PIN's @Value
Also prepended APM2 to existing values.  Added A2 to list to be
consistent with plane and copter
2014-05-15 17:13:46 +09:00
Randy Mackay
8b92ff4695 Rover: remove unused RELAY_PIN definition
This is now part of the AP_Relay library
2014-05-15 17:13:40 +09:00
Andrew Tridgell
48919b6253 Rover: use EKF velocity for high rate ground_speed updates
this may give smoother throttle response when the EKF is enabled
2014-05-11 21:39:06 +10:00
Andrew Tridgell
cd8fd86565 Rover: use mission.start_or_resume()
this allows the user to setup whether a mission restarts or resumes
2014-05-08 08:36:40 +10:00
Andrew Tridgell
05c59c757c Rover: use get_current_nav_index() 2014-04-22 11:40:18 +10:00
Andrew Tridgell
c413cdc480 Rover: set AHRS vehicle class 2014-04-21 18:13:13 +10:00
Andrew Tridgell
594c5c07b3 Rover: setup failsafe trim values for if FMU firmware dies 2014-04-21 08:37:49 +10:00
Andrew Tridgell
030567854b Rover: ensure we log both GPS at the time we receive a message 2014-04-10 10:30:15 +10:00
Emile Castelnuovo
c5620dfd39 Rover: added VRBRAIN #defines and #includes 2014-04-08 16:19:20 +10:00
Andrew Tridgell
8322525431 Rover: show next wp when not running a mission
this lets the GCS know what wp would be run if auto mode is selected
2014-04-07 11:41:10 +10:00
Andrew Tridgell
ac7f36494b Rover: use the next navigation course to adjust steering gain in turns
this should make waypoints along a straight path not reduce speed
2014-04-07 09:30:39 +10:00