Commit Graph

119 Commits

Author SHA1 Message Date
Andrew Tridgell 5cac948ed0 Rover: added EK2_ parameters and EKF2 instance 2015-09-23 11:56:27 +10:00
Randy Mackay bcc87a9a3b Rover: replace SKIP_GYRO_CAL with INS_GYR_CAL
Also calibrate gyros during accel trim
2015-09-21 17:06:45 +09:00
Stewart Loving-Gibbard a315b980bf Rover: Moving to RSSI library for reading various kinds of RSSI, with the possibility of adding more.
* Retains ability to read from Analog Pin
* Adds ability to read RSSI from PWM channel value as is done in OpenLRSng, EazyUHF, and various other LRS.
* Handles any type of RSSI that provides RSSI values inverted - i.e. when the low value is the best signal and the high value is the worst signal.
* Has different key names from all existing RSSI parameters to provide for a clean break and easier distinguishing.
* Existing parameters are marked as obsolete
2015-08-29 08:05:59 +10:00
Gustavo Jose de Sousa 01e05ce743 APMrover2: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-11 16:28:40 +10:00
Grant Morphett a602173c45 Rover: added the PID logging for steering into the mavlink message.
Copter/Plane already have this PID logging in the mavlink stream to
the GCS and now Rover does too.
2015-06-19 09:55:19 +10:00
Randy Mackay 757f388d62 Rover: add support for 4th mavlink channel 2015-05-15 15:07:30 +09:00
Andrew Tridgell b8ab87ea86 Rover: added CLI_ENABLED parameter 2015-03-09 17:58:37 +11:00
Randy Mackay 9f7f1e62df Rover: integrate SerialManager 2015-01-29 14:05:16 +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 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 bfe705a14d Rover: convert to new AP_RangeFinder API 2014-07-08 15:07:50 +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
Emile Castelnuovo c5620dfd39 Rover: added VRBRAIN #defines and #includes 2014-04-08 16:19:20 +10:00
Andrew Tridgell 58cfdebcd0 Rover: added BRAKING_SPEEDERR parameter
this controls how much speed error you need before brakes are used
2014-04-07 08:42:54 +10:00
Andrew Tridgell b8f9b5ad91 Rover: added GPS parameters 2014-04-01 06:38:26 +11:00
Andrew Tridgell 563cf06624 Rover: make log_bitmask 32 bit
this fixes the log before arm
2014-03-31 17:48:28 +11:00
Andrew Tridgell f4f04ead68 Rover: added BRAKING_PERCENT parameter
this allows for reverse throttle to be applied for braking in corners
2014-03-31 08:44:19 +11:00
Andrew Tridgell ce3ed33649 Rover: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Randy Mackay 192286f04d Rover: create Mission object 2014-03-19 12:11:27 +09:00
Andrew Tridgell eac4b1ec96 Rover: fixed EKF usage for rover
added barometer object, and use shared home object from AHRS. This
gives basic EKF operation.
2014-02-24 09:25:50 +11:00
Randy Mackay bb0995f7d8 Rover: add EKF params to full param list 2014-02-21 13:51:34 +09:00
Andrew Tridgell 4e2d5043ba Rover: added PIVOT_TURN_ANGLE parameter
this allows skid steering rovers to turn on the spot for sharp turns
2014-02-17 10:11:40 +11:00
Andrew Tridgell 89c99ce145 Rover: enable AP_BoardConfig 2014-01-20 17:06:28 +11:00
Andrew Tridgell fe0e627304 Rover: changed SERIAL3_BAUD to SERIAL1_BAUD
and add SERIAL2_BAUD for systems that have it
2013-11-26 13:00:03 +11:00
Andrew Tridgell 14a0f8f46d Rover: added support for uartD 2013-11-25 11:21:52 +11:00
Andrew Tridgell c20d0e8152 Rover: added SKIP_GYRO_CAL option 2013-10-21 09:56:00 +11:00
Randy Mackay 121e4932ea Rover: integrate BattMonitor 2013-10-03 11:16:29 +09:00
Andrew Tridgell d000cd2320 Rover: switched to new steering controller
this uses a steering rate controller, based upon the planes roll
controller
2013-09-09 18:04:41 +10:00
Andrew Tridgell ecccc05eed Rover: added STEERING_LEARN parameter
when enabled (set to 1) it will learn TURN_CIRCLE based on the
demanded and actual lateral acceleration
2013-09-09 18:04:40 +10:00
Andrew Tridgell 97ed733ada Rover: use L1 controller for navigation
this uses the AP_L1_Control library for rover navigation
2013-09-09 18:04:40 +10:00
Andrew Tridgell 8c7619a837 Rover: moved camera parameter indexes
this prevents a conflict with some old parameters
2013-07-15 10:25:04 +10:00
Andrew Tridgell 5b88334dbb Rover: added full camera and mount support 2013-07-15 09:57:00 +10:00
Andrew Tridgell 135146c735 Rover: added LEARN_CH parameter
this allows the learning channel to be set, for transmitters where
setting up channel 7 is difficult
2013-07-01 10:10:38 +10:00
Andrew Tridgell a5586ec394 Rover: enable RELAY_* parameters 2013-06-25 12:48:58 +10:00
Andrew Tridgell 2d795ac85a Rover: convert to use AP_Scheduler
this gives us better timing information and scheduling, while also
making the code easier to read
2013-06-04 10:37:05 +10:00
Andrew Tridgell 5a9485a419 Rover: support RCMAP_* mapping for steering/throttle 2013-06-03 19:33:59 +10:00
Andrew Tridgell 3f9ade2b1f Rover: added INITIAL_MODE option
this should be useful for sparkfun comp
2013-05-03 08:08:30 +10:00
Andrew Tridgell ad7e8bd9c4 Rover: added SONAR_DEBOUNCE option
this allows us to debounce the sonar triggering, which will make it
handle noise better
2013-03-29 10:49:08 +11:00
Andrew Tridgell 3bed733f56 Rover: added AUTO_KICKSTART and AUTO_TRIGGER_PIN options 2013-03-22 09:38:25 +11:00
Andrew Tridgell 47890dfa72 Rover: added dual sonar support 2013-03-22 08:49:51 +11:00
Andrew Tridgell 065cac76c0 Rover: use new sonar enabled flag in object 2013-03-22 07:53:16 +11:00
Andrew Tridgell 0dde0b3551 Rover: initial implementation of skid steering for APMrover2
this adds SKID_STEER_IN and SKID_STEER_OUT parameters for controlling
skid skeering control and output
2013-03-15 11:04:33 +11:00
Andrew Tridgell 2294de85ac Rover: removed INPUT_VOLTS parameter
no longer needed
2013-03-08 10:01:51 +11:00
Andrew Tridgell 6dd549dea8 Rover: removed SONAR_TYPE option
now set the values in the object
2013-03-01 12:59:31 +11:00
Andrew Tridgell 12d73a8662 Rover: use new AP_RangeFinder_analog class 2013-03-01 12:00:48 +11:00
Andrew Tridgell be3b2ee9f8 Rover: cleaned up sonar_trigger_cm parameter 2013-03-01 07:47:26 +11:00
Andrew Tridgell 66abee5544 Rover: added more sonar parameters
better control over obstacle avoidance
2013-03-01 07:18:25 +11:00
Andrew Tridgell bf6198be40 Rover: tweaked parameters and added SPEED_TURN_GAIN and SPEED_TURN_DIST 2013-02-22 08:38:13 +11:00
Andrew Tridgell 6cf4d11e33 Rover: cleanup parameter names and remove dead parameters 2013-02-09 20:36:26 +11:00
Andrew Tridgell f1ff27ed08 Rover: major restructuring
this removes a lot of the old arduplane code, and renames a lot of
variables.

This will need a lot more testing and fixup before being usable
2013-02-08 09:21:22 +11:00
Andrew Tridgell aff5b1559d Rover: added SERIAL0_BAUD parameter 2013-01-20 22:12:57 +11:00
Andrew Tridgell b284d4c21e Rover: first cut at porting rover to AP_HAL 2012-12-20 14:52:34 +11:00
Andrew Tridgell 1f8a61615c Rover: added more parameter docs 2012-11-28 11:42:51 +11:00
Andrew Tridgell aac088dc5b Rover: removed closed loop nav
use a jump in the mission instead
2012-11-28 10:42:10 +11:00
Andrew Tridgell 691d19dd98 Rover: more cleanup, and fixed navigation code
removed loiter code
2012-11-28 09:35:42 +11:00
Andrew Tridgell a16ba57467 Rover: cleaned up a bunch more plane cruft
removed elevon and flap support
2012-11-28 09:35:42 +11:00
Andrew Tridgell b2899dc9c4 Rover: added in sitl object, needed for throttle control 2012-11-27 23:20:25 +11:00
Andrew Tridgell 16b5b00368 Rover: removed inverted flight support 2012-11-17 18:03:17 +11:00
Andrew Tridgell abc0a1cd38 Rover: major update, fixing lots of bugs
This removes a lot of the ArduPlane specific cruft left over from the
initial Rover import from ArduPlane, plus fixes a bunch of serious
bugs. For example, the rover was unable to use either compass or gps
for heading - it used just gyros!

There is still a lot of cruft left, but this at least gives a bit
better basis for future work
2012-11-17 17:45:30 +11:00
rmackay9 e877a58b60 APMRover: fixes to incorporate accelerometer calibration 2012-11-07 19:21:20 +09:00
Andrew Tridgell 97aa98015d Rover: added TELEM_DELAY to rover code 2012-08-30 09:36:18 +10:00
Andrew Tridgell dfac01e6f1 AP_Param: updated APMrover2 code for new AP_Param syntax 2012-08-08 12:12:29 +10:00
Andrew Tridgell 1b099344a3 Rover: fixed build with new RC_Channel code 2012-08-08 12:11:05 +10:00
Andreas M. Antonopoulos d4a0cb5db1 Added Michael Pursifull's Maxsonar HRLV model support 2012-07-11 18:46:47 -07:00
Jean-Louis Naudin 9355a159fc APMrover v2.20 - use RangeFinder optical SharpGP2Y instead of ultrasonic sonar
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-06-13 08:29:32 +02:00
Jean-Louis Naudin 408d3dfa98 APMrover v2.1.6 - Added Speed Booster between wp and soft start
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-17 18:42:16 +02:00
Robert Lefebvre 10b5d758f8 Changed software ID from 0 to 20 for ArduRover V2 Divergence.
Also changed definition of flight mode 2 from Stabilize to Learning.
2012-05-14 15:21:29 -04:00
Jean-Louis Naudin 4a4402556b APMrover v2.1.3 :
Added option (hold roll to full right + SW7 ON/OFF) to init_home during the wp_list reset
Add ROV_SONAR_TRIG (default = 200 cm) - tested by Franco
Restart_nav() added and heading bug correction, tested OK in the field
RTL then stop update - Tested OK in the field
Added SONAR detection for obstacle avoidance

Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-14 17:47:08 +02:00
Jean-Louis Naudin 77eea3a893 APMrover v2.0 - tested on Traxxas Monster Jam Grinder XL-5 3602
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-04-30 09:17:14 +02:00