Commit Graph

359 Commits

Author SHA1 Message Date
Andrew Tridgell 582d1c47b3 Rover: added filter to auto steering, and fixed throttle pid 2013-02-08 10:21:30 +11:00
Andrew Tridgell 5ee7abd892 Rover: rename Attitude.pde to Steering.pde 2013-02-08 09:32:23 +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 32d702e912 Rover: fixed logging build errors 2013-01-27 13:04:41 +11:00
Randy Mackay 72414085b2 Rover: logging changes to use new faster packet method 2013-01-26 18:46:16 +09:00
Randy Mackay bb21194fd7 Rover: CUR and CURR renamed to CURRENT in dataflash
Based on user complaint re inconsistency of disabling/enabling and
output in dataflash
2013-01-26 17:41:38 +09:00
Randy Mackay 648caff1c6 Rover: make dataflash output all csv format 2013-01-26 17:37:34 +09:00
Randy Mackay 7bfe659626 Rover: rename RAW dataflash message to IMU 2013-01-26 17:35:18 +09:00
Andrew Tridgell 0b03df4e69 Rover: run serial0 at 57600 on PX4 2013-01-22 09:50:12 +11:00
Andrew Tridgell 6fa5837f71 Rover: fixed mavlink fetch of 16 character parameter 2013-01-21 16:51:50 +11:00
Andrew Tridgell aff5b1559d Rover: added SERIAL0_BAUD parameter 2013-01-20 22:12:57 +11:00
Andrew Tridgell 583ec2b236 Rover: fixed PX4 mag orientation 2013-01-17 17:23:34 +11:00
James Bielman 5631f865b2 Update floating point calculations to use floats instead of doubles.
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
Andrew Tridgell 82004d691f Rover: use common log reading function 2013-01-15 14:03:51 +11:00
Andrew Tridgell ca1070f10e Rover: fixed a build warning 2013-01-13 20:05:14 +11:00
Andrew Tridgell c88766850a Rover: ensure ahrs.init() is called 2013-01-13 17:32:48 +11:00
Pat Hickey ec02aab5d7 Rover Makefile: don't include targets.mk directly (included by apm.mk) 2013-01-09 13:15:53 -08:00
Andrew Tridgell 1104d45a2c Rover: update for new AP_Param API 2013-01-09 13:30:53 +11:00
Andrew Tridgell ef35aa63ce Rover: port rover code to PX4 2013-01-02 22:14:35 +11:00
Andrew Tridgell 374af1cd14 build: change from Arduino.mk to apm.mk 2013-01-02 17:29:37 +11:00
Andrew Tridgell 5a56b845c0 Rover: use GRAVITY_MSS 2013-01-02 14:45:08 +11:00
Andrew Tridgell c97f84864a Rover: removed old file 2013-01-02 10:18:58 +11:00
Craig@3DR 0ed25cf719 Global change all references from
GPS_PROTOCOL_MTK16
to
GPS_PROTOCOL_MTK19
2013-01-02 09:24:31 +11:00
Andrew Tridgell cf8e648558 CLI: fixed accel setup
disable mavlink callback in CLI
2012-12-24 08:51:33 +11:00
Andrew Tridgell fc953588e1 Rover: allow rover to build on APM1-1280 2012-12-22 13:21:34 +11:00
Andrew Tridgell 9931009db2 Math: use pythagorous2() in some more places 2012-12-20 15:16:18 +11:00
Pat Hickey 087bf380c0 APMrover2: fixes for AP_InertialSensor_UserInteract 2012-12-20 14:53:23 +11:00
Andrew Tridgell 3c0440b0b4 Math: use common degrees() and radians() functions 2012-12-20 14:53:22 +11:00
Andrew Tridgell be39ccf02c Rover: use new constrain_int16 function 2012-12-20 14:53:22 +11:00
Pat Hickey 2ad4fed8cd Rover/Copter/Plane: change from vsnprintf to vsnprintf_P 2012-12-20 14:52:38 +11:00
Pat Hickey 2f1846165b ArduRover: use hal's vsnprintf 2012-12-20 14:52:38 +11:00
Andrew Tridgell ba733dcc3e Rover: use targets.mk 2012-12-20 14:52:35 +11:00
Andrew Tridgell 509e801e21 Rover: fixed RC input 2012-12-20 14:52:35 +11:00
Andrew Tridgell 7fbbc388a7 Rover: fixed formatting 2012-12-20 14:52:35 +11:00
Andrew Tridgell 6f757ed457 Rover: fixup parameter loading 2012-12-20 14:52:35 +11:00
Andrew Tridgell 1c2a220888 Rover: more mavlink fixes 2012-12-20 14:52:35 +11:00
Andrew Tridgell 45615e5698 Rover: merge in mavlink updates from ArduPlane 2012-12-20 14:52:35 +11:00
Andrew Tridgell d706f11be9 Rover: added nocore.inoflag 2012-12-20 14:52:35 +11:00
Andrew Tridgell 235369cfbc Rover: cleanup board config 2012-12-20 14:52:35 +11:00
Andrew Tridgell b284d4c21e Rover: first cut at porting rover to AP_HAL 2012-12-20 14:52:34 +11:00
Pat Hickey a4f1f6a5db AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR 2012-12-20 14:51:28 +11:00
Pat Hickey 3f1d9d7f69 AP_Param: #include <AP_Param.h> fixups for libraries & sketches
* I mostly went through with grep and added an #include <AP_Param.h> below
  every #include <AP_Common.h>. Not all of these example sketches might
  strictly need AP_Param.
2012-12-20 14:51:19 +11:00
Andrew Tridgell 33e47e2036 Rover: set throttle range from -100 to 100
this allows for reverse
2012-12-18 15:42:11 +11:00
Andrew Tridgell 898aa0b260 Plane: fixed spelling error 2012-12-04 11:38:29 +11:00
Andrew Tridgell 4484144228 Rover: removed INS print code
its all in parameters now
2012-12-04 09:11:55 +11:00
Andrew Tridgell cd5ad49417 Rover: switch to IMU driven timing, same as ArduPlane 2012-11-30 07:15:19 +11:00
Andrew Tridgell d89c213d42 Rover: update for new ins interface 2012-11-30 07:15:18 +11:00
Andrew Tridgell ff9628accf Rover: removed some more plane specific variables 2012-11-29 20:53:21 +11:00
Andrew Tridgell 5768244671 Rover: more cleanups
get rid of flight_mode_strings and cleanup unused code

switch to using ahrs for have_position
2012-11-29 20:53:20 +11:00
Andrew Tridgell a9efe839d6 Rover: copy slew limit code from ArduPlane 2012-11-28 12:13:39 +11:00
Andrew Tridgell 1f8a61615c Rover: added more parameter docs 2012-11-28 11:42:51 +11:00
Andrew Tridgell 92026be9d6 Rover: use slewrate code from ArduPlane 2012-11-28 11:42:22 +11:00
Andrew Tridgell f9c5c94cc6 Rover: removed accel cal CLI command
not really needed for a rover
2012-11-28 10:42:34 +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 2bca51ed0f Rover: changed default WP radius to 2m 2012-11-28 09:35:42 +11:00
Andrew Tridgell ff41e057d9 Rover: added partial update of waypoints 2012-11-28 09:35:42 +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 f3c077b76d Rover: fixed SITL build 2012-11-27 21:49:45 +11:00
Andrew Tridgell 54a722158a Rover: fixed cliSerial and clean out more gunk 2012-11-27 21:47:30 +11:00
Andrew Tridgell 24adc1aaa3 Rover: make it possible to run the CLI over a radio link 2012-11-21 21:41:34 +11:00
Andrew Tridgell 704da2a5d9 MAVLink: make it possible to enter the CLI over the radio
this only works on the APM2, where UART0 is also the radio port
2012-11-21 14:11:05 +11:00
Andrew Tridgell 39836eabb2 Rover: support 16 character parameter names 2012-11-20 21:39:11 +11:00
Andrew Tridgell 69fbcc8683 MAVLink: fixed accel and gyro sensor offsets in MAVLink 2012-11-20 18:32:26 +11:00
Andrew Tridgell 283fb7e606 Rover: added support for finish line waypoints
this ensures waypoints complete, even with bad yaw from mag
interference
2012-11-19 07:16:47 +11:00
Andrew Tridgell 16b5b00368 Rover: removed inverted flight support 2012-11-17 18:03:17 +11:00
Andrew Tridgell ebaf1a1ae9 Rover: fixed the sonar
We were not initialising the analog source timer
2012-11-17 18:02:28 +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
Pat Hickey 72fb54e619 APMrover2: fixed build from AP_Menu changes 2012-10-20 11:57:48 -07:00
rmackay9 9c12adba4b ArduRover: fixed compile error related to AP_Semaphore and Dataflash 2012-10-11 16:33:02 +09:00
rmackay9 fcb2ff19bc APMrover2: fixed build
Needed to remove references to MPU6000's CS pin in constructor
2012-09-29 13:55:29 +09:00
Andrew Tridgell e04de04cbd Rover: fixed type of payload size 2012-09-25 07:20:54 +10:00
Michael Oborne 1ea946b2b4 modify ardurover name to match others 2012-09-24 18:31:47 +08:00
Andrew Tridgell 4939d67a1b Rover: updates for new GPS detection 2012-09-17 14:45:47 +10:00
Andrew Tridgell 6e15aa68b8 Rover: updated for new RC_Channel_aux API 2012-09-08 15:14:41 +10:00
Andrew Tridgell 97aa98015d Rover: added TELEM_DELAY to rover code 2012-08-30 09:36:18 +10:00
Craig Elder 4ad516c445 Arducopter: increased MAVLINK delay to 6s to reduce the chance of xBee bricking
Arduplane:  increased MAVLINK delay to 6s to reduce the chance of xBee bricking
Ardurover:  increased MAVLINK delay to 6s to reduce the chance of xBee bricking
2012-08-28 20:09:10 -07:00
Andrew Tridgell 6d11940ada AHRS: removed Quaternion build support from APM/ACM/rover 2012-08-22 10:42:21 +10:00
Andrew Tridgell 81440a1b09 AHRS: fixed build
AP_Airspeed.h is now needed to build AHRS
2012-08-11 12:22:55 +10:00
Andrew Tridgell dc47074dbd MAVLink: removed the need for Mavlink_compat.h
we have now fully transitioned to MAVLink 1.0, so we no longer need
the compatibility layer and the old names in the code
2012-08-09 12:22:46 +10:00
Andrew Tridgell 2a7b298bbc MAVLink: moved mavlink variables back to library
these were moved to the main sketches to allow for compile time
selection of MAVLink 0.9 vs 1.0. We no longer support 0.9, so we can
move it back, which simplifies some test sketches
2012-08-09 12:06:21 +10:00
Andrew Tridgell a5b5546e2a Rover: change to use get_bearing_cd() 2012-08-08 12:12:30 +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
Jonathan Challinger fc4f111d15 Changed mavlink GLOBAL_POSITION_INT.relative_alt message to correctly return altitude above ground. 2012-07-17 16:15:11 +10:00
Andreas M. Antonopoulos d4a0cb5db1 Added Michael Pursifull's Maxsonar HRLV model support 2012-07-11 18:46:47 -07:00
Andrew Tridgell b1fb2eb71c Rover: changed to auto deltat in Rover code as well 2012-07-06 19:59:18 +10:00
Andrew Tridgell 60caaa4b04 MAVLink: remove MAVLink 0.9 protocol support
this simplifies the code a lot. We're not going back to 1.0
2012-07-05 13:00:46 +10:00
Andrew Tridgell 82ede937e7 AnalogSource: convert analogRead() calls to the new API
this should give us much better analog values, plus save a bunch of
CPU time
2012-07-01 15:01:05 +10:00
Andrew Tridgell 09db935874 Rover: a rover moves along its X axis
this allows a rover to work without a compass for yaw control
2012-06-27 16:01:50 +10:00
Andrew Tridgell 2e951647c4 Rover: updates for new compass interface 2012-06-27 16:01:50 +10:00
Jean-Louis Naudin d8be428428 APMrover 2.20b: minor update for HIL mode with the new lib
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-06-21 08:10:33 +02:00
Jean-Louis Naudin 846b128075 APMrover 2.0a - improving obstacles detection and tuning
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-06-13 20:43:35 +02: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
Andrew Tridgell 93de111837 Rover: fixed the build for MAVLink 1.0
I have no idea if it will actually work, but at least it builds
2012-06-10 19:34:11 +10:00
Andrew Tridgell 940d994efb GPS: Use appropiate GPS_ENGINE settings in APM, ACM and rover 2012-06-10 16:36:18 +10:00
Jean-Louis Naudin 84c5a392da APMrover v2.1.6a - small update for LITE version
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-20 17:45:07 +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
Michael Oborne 6a6c8eb708 change rover id to mav_ground 2012-05-16 18:06:40 +08:00
Jean-Louis Naudin 01c4f6105b APMrover 2.1.4 - cosmetic changes
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-15 08:00:36 +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 5cece403a5 APMrover v2.1.4: compatibility with the latest version of mavlink library...
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-14 20:33:03 +02: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 899e6e66b0 APMrover v2.0c - tested with APM v2 full kit (Oilpan) - dualversion (IMUless + IMUfull)
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-09 07:12:26 +02:00
Jean-Louis Naudin 602fe6e55a APMrover v2.0b - Special update for rover heading calculation if compass is enabled
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-03 13:47:35 +10:00
Jean-Louis Naudin 53cbbfaaa4 APMrover V2.0b - updates about Save_WP
Signed-off-by: Jean-Louis Naudin <jlnaudin@gmail.com>
2012-05-03 13:47:32 +10: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