Commit Graph

1413 Commits

Author SHA1 Message Date
Randy Mackay 30cba1a59c Rover: remove unused definitions 2016-06-18 11:55:49 +09:00
Grant Morphett 95e9c1fd97 Rover: Fixing version number typo in release notes. 2016-06-17 13:56:28 +10:00
Grant Morphett 2279c20ed7 Rover: Rover Release 3.0.1 2016-06-17 13:11:04 +10:00
Tom Pittenger 098e531d53 Rover: do not log CURR.Throttle because it's already logged elsewhere 2016-06-02 16:59:08 -07:00
Tom Pittenger 698017d0b1 APMrover2: sanity check gps latlng 2016-06-01 17:38:49 -07:00
Grant Morphett 27ae46dfda Rover: Creating v3.0.1 beta release. 2016-06-01 10:45:51 +10:00
Grant Morphett a00edcbbb6 Rover: sonar_trigger_cm of 0 will now only log
This will enable users of Rover to plug their sonar's in (or any other
device into the 3.3v ADC) and log the data but not use the data in
navigation and obstacle avoidance.
2016-06-01 10:19:40 +10:00
Grant Morphett 094d571196 Rover: Skid steering disarming fixes
I have disabled steering disarming for skid steering rovers.  Its
perfectly reasonable for a skid steering rover to go hard left on the
spot without any throttle and the user wouldn't want the rover to
disarm during this procedure.
If you disarm from the GCS for a skid steering rover we also ensure
the steering channel is disabled.
2016-06-01 10:12:02 +10:00
Andrew Tridgell cfaacf031b Rover: use ahrs.groundspeed() in more places 2016-05-31 21:23:01 +10:00
Peter Barker 87a7907a63 Rover: move telemetry_delayed up into base class 2016-05-31 08:46:10 +10:00
Grant Morphett 35a132f74e Rover: Added throttle PID logging 2016-05-31 08:44:52 +10:00
Peter Barker de452eb760 Rover: move adjust_rate_for_stream up 2016-05-29 19:38:50 +10:00
Peter Barker a1c97f4585 Rover: subclass GCS_MAVLink in place of defining its functions for it 2016-05-29 16:21:21 +10:00
Pierre Kancir ee168bee8d APMrover2 : correct arming and failsafe in skid steer mode
Commit 3636b53#diff-e22a85a55f71f1b9b2d3f293dea61368 introduce arming for rover. But in skid steering mode it was only applied on throttle and the rover still pivot.
The patch also correct rover behaviour in case of failsafe or loitering.
2016-05-28 14:34:43 +10:00
Andrew Tridgell bb9783e3f4 Rover: moved EKF2 to a new parameter index
the meanings of many of the parameters have changed. Best to use a new
index to prevent old parameters from causing crashes
2016-05-25 19:35:17 +10:00
Andrew Tridgell f61ba903dd Rover: don't stall EKF during baro cal 2016-05-24 17:00:55 +10:00
Lucas De Marchi d773d68025 APMrover2: remove support for flymaple 2016-05-23 21:49:45 -03:00
Andrew Tridgell 01caa7388a Rover: use send_heartbeat() wrapper 2016-05-21 15:25:17 +10:00
Andrew Tridgell 99cc737693 Rover: simplify UART setup 2016-05-21 15:25:16 +10:00
Andrew Tridgell ad7fe48991 Rover: always build with MAVLink2 headers 2016-05-21 15:25:15 +10:00
Andrew Tridgell b8fa1bc9f7 APMrover2: update signing timestamp on GPS lock 2016-05-21 15:25:13 +10:00
Andrew Tridgell 7c27e0dbec APMrover2: handle SETUP_SIGNING message 2016-05-21 15:25:12 +10:00
Don Gagne 4743a34cf7 APMrover2: SET_SENSORS_OFFSETS support for third compass 2016-05-19 18:51:17 -03:00
Allan Matthew 1f4ba62456 Rover: handle new MAVLink rangefinder input 2016-05-19 16:21:28 +09:00
Andrew Tridgell 7957f25f32 Rover: cleanup unnecessarily complex gcs[] usage 2016-05-17 08:27:28 +10:00
Lucas De Marchi 368a72044c APMrover2: fix indentation leading to compiler warning
GCC 6 has a new warning about misleading indentation:

../../APMrover2/system.cpp: In member function ‘void Rover::set_mode(mode)’:
../../APMrover2/system.cpp:272:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (control_mode == AUTO)
     ^~
../../APMrover2/system.cpp:275:2: note: ...this statement, but the^Bn latter is misleadingly indented as if it is guarded by the ‘if’
  control_mode = mode;
  ^~~~~~~~~~~~

The issue here is that we are mixing tabs and spaces. Remove tabs and re-indent
the code.
2016-05-16 17:35:58 -03:00
Ricardo de Almeida Gonzaga 63f2ab38dd APMrover2: Fix typos 2016-05-13 19:20:07 -03:00
dgrat 41661f815f AP_Math: Replace the pythagorous* functions with a variadic template
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
2016-05-10 11:41:26 -03:00
dgrat 76362caee0 AP_Math: Replace wrap_* functions with template versions 2016-05-10 11:41:26 -03:00
skyscraper 8c9e55edfa APMRover2: Fix up after refactoring RC_Channel class
Further to refactor of RC_Channel class which included
adding get_xx set_xx methods, change reads and writes to the public members
to calls to  get and set functionsss

old public member(int16_t)   get function -> int16_t     set function (int16_t)
(expression where c is an object of type RC_Channel)
c.radio_in                     c.get_radio_in()           c.set_radio_in(v)
c.control_in                   c.get_control_in()         c.set_control_in(v)
c.servo_out                    c.get_servo_out()          c.set_servo_out(v)
c.pwm_out                      c.get_pwm_out()            // use existing
c.radio_out                    c.get_radio_out()          c.set_radio_out(v)
c.radio_max                    c.get_radio_max()          c.set_radio_max(v)
c.radio_min                    c.get_radio_min()          c.set_radio_min(v)
c.radio_trim                   c.get_radio_trim()         c.set_radio_trim(v);

c.min_max_configured() // return true if min and max are configured

Because data members of RC_Channels are now private and so cannot be written directly
 some overloads are provided in the Plane classes to provide the old functionality

new overload Plane::stick_mix_channel(RC_Channel *channel)
which forwards to the previously existing
void stick_mix_channel(RC_Channel *channel, int16_t &servo_out);

new overload Plane::channel_output_mixer(Rc_Channel* , RC_Channel*)const
which forwards to
(uint8_t mixing_type, int16_t & chan1, int16_t & chan2)const;

Rename functions

 RC_Channel_aux::set_radio_trim(Aux_servo_function_t function)
    to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function)

 RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value)
    to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value)

 Rationale:

        RC_Channel is a complicated class, which combines
        several functionalities dealing with stick inputs
        in pwm and logical units, logical and actual actuator
        outputs, unit conversion etc, etc
        The intent of this PR is to clarify existing use of
        the class. At the basic level it should now be possible
        to grep all places where private variable is set by
        searching for the set_xx function.

        (The wider purpose is to provide a more generic and
        logically simpler method of output mixing. This is a small step)
2016-05-10 16:21:16 +10:00
Andrew Tridgell c0172516af Rover: use DataFlash::log_while_disarmed() 2016-05-09 12:06:00 +10:00
Leandro Pereira f23bd7e09d GCS_MAVLink: Use a single stream_trigger() implementation
This has no side effects, but since all implementations were basically
the same, move the implementation to GCS_Common and the only part that
adjusts the rate based on which which stream to each individual
GCS_MAVLINK implementation.
2016-05-07 23:49:35 -03:00
Lucas De Marchi 668ebf160e APMrover2: remove mention to .pde files
We don't support them anymore.
2016-05-07 22:55:48 -03:00
Andrew Tridgell efe3e19a51 Rover: fixed for changed API 2016-05-07 18:27:22 +10:00
Andrew Tridgell ac4da762d1 Rover: adjust for changed logging APIs 2016-05-07 18:27:18 +10:00
Lucas De Marchi fea084a596 Global: use ap_version.h
This header is used by waf to contain the generated version macros,
particularly using the git hash. For waf it's better to be in a separate
header since it then can keep track of changes on it a trigger
recompilation.

For the make build system, a dummy ap_version.h file has been added in
the missing/ folder so both implementations can co-exist.
2016-05-06 13:11:28 -03:00
Lucas De Marchi d3ee998fa6 APMrover2: use separate header for version macro
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.

Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
2016-05-06 13:11:28 -03:00
Grant Morphett 384ad94e73 Rover: Fixing the 3.0.0 release notes.
You can always disarm in Rover - there is no ARMING_RUDDER parameter.
2016-05-02 10:58:38 +09:00
Michael du Breuil b327ed671b Rover: Ignore MSG_POSITION_TARGET_GLOBAL_INT for now 2016-05-01 07:38:23 +10:00
Michael Oborne 8816c5c681 ArduRover: support MAVLINK_MSG_ID_MISSION_ITEM_INT 2016-05-01 07:13:46 +10:00
Niti Rohilla 409a7e1c97 APMRover : Updated handle_guided_request() to report error. 2016-04-29 12:39:28 -03:00
Tom Pittenger 64315bfed8 Revert "APMRover2: clipped param cmd float to zero"
This reverts commit cbbee1149d.
2016-04-23 23:51:33 -07:00
Tom Pittenger cbbee1149d APMRover2: clipped param cmd float to zero 2016-04-23 23:45:48 -07:00
Randy Mackay 381b5c8f5d Rover: remove unnecessary abs 2016-04-23 23:06:19 -07:00
Luis Vale Gonçalves b8a1dfa066 Revising ardupilot.com to .org
Revising ardupilot.com to .org
2016-04-23 22:49:42 -07:00
Luis Vale Gonçalves 75ffc0618a Revising ardupilot.com to .org
Revising ardupilot.com to .org
2016-04-23 22:49:38 -07:00
Randy Mackay a5ed3c9b12 Rover: ack DO_MOUNT_CONTROL messages 2016-04-22 21:30:47 +09:00
Grant Morphett bd24dd79a8 Rover: Fixing up some of the outdated parameter comments/doco
I noticed the doco on the Rover discourse page for LOG_BITMASK was
incorrect so I have fixed up a number of doco/comments so they
auto-generate the doco correctly for the wiki.  There is no actual
code changes in this commit.
2016-04-21 14:12:00 +09:00
Ricardo de Almeida Gonzaga 5bd034a5a8 Global: start using cmath instead of math.h 2016-04-05 21:06:19 -07:00
Grant Morphett 2c4aaf7cb3 Rover: Commit for Rover release 3.0.0 2016-04-05 15:45:18 +10:00
Grant Morphett 801ced34a5 Rover: added the VIBRATION message which is sent to the GCS. 2016-04-05 15:41:53 +10:00
Grant Morphett 8e69b66cf0 Rover: added the VIBE logging to the Dataflash logs. 2016-04-05 15:41:53 +10:00
Saloni Jain ff74792fd4 Rover: MAV_CMD_DO_SET_HOME support in APMRover2 2016-04-05 15:40:33 +10:00
Gustavo Jose de Sousa a4c099feaa waf: create program groups for main products
Currently we need to build a different binary for each type of copter frame.
This is a preparation for setting all those binaries to a group called
"copter". We create the groups for the rest of the main products for
consistency.
2016-03-26 15:43:08 -03:00
Lucas De Marchi 56eccd6e41 APMrover2: Update path locations for parameters
Thanks to Francisco Ferreira for noticing that.
2016-03-23 17:50:38 -03:00
Don Gagne cae7ea0d13 Add @Volatile, @ReadOnly support 2016-03-17 10:58:05 +11:00
Lucas De Marchi dd8014dd2f APMrover2: replace header guard with pragma once 2016-03-16 18:40:44 +11:00
Michael du Breuil b6378e2827 Rover: Use arming voltage 2016-03-14 09:07:34 -07:00
Michael du Breuil 8ae6e0d613 Rover: remove "Command received" statustext 2016-03-10 15:36:05 +11:00
Randy Mackay 62435d3a11 Rover: use ahrs.get_origin instead of ekf.getOriginLLH
This ensures we get the origin from the active EKF
2016-03-03 16:20:56 +09:00
Lucas De Marchi e770cf059d APMRover2: initialize variable to fix build
Fix the following build error on clang:

../../APMrover2/test.cpp:164:4: fatal error: variable 'fail_test' is uninitialized when used here [-Wuninitialized]
   fail_test++;
   ^~~~~~~~~
../../APMrover2/test.cpp:139:19: note: initialize the variable 'fail_test' to silence this warning
 uint8_t fail_test;
                  ^
2016-03-01 10:25:28 -03:00
Tom Pittenger 0372b52378 Rover: convert to using static send_statustext
- no more MSG_STATUSTEXT
- TODO: replace calls to gcs_send_text and gcs_send_text_fmt to GCS_MAVLINK::send_statustext()
2016-02-24 09:18:05 +11:00
Tom Pittenger c38bec6385 Rover: use set_dataflash() for static logging 2016-02-24 09:18:05 +11:00
Tom Pittenger 92fea608f3 Rover: add item_reached_msg to GUIDED 2016-02-14 16:12:56 -08:00
Andrew Tridgell 39b9ae7e91 APMrover2: log a picture if AP_Camera::control() returns true 2016-01-29 10:01:51 +11:00
Andrew Tridgell eed575886c APMrover2: update for changed AP_Camera API 2016-01-29 09:19:43 +11:00
Dario Lindo Andres f731a0dc53 APMrover2: Added precise camera trigger logging
included update_trigger function
added camera trigger precise time mark
detect camera feedback pin status
added support for TRIGGER MSG
corrected according to defines.h
2016-01-29 09:19:43 +11:00
Jonathan Challinger f1db10c337 APMrover2: reflect changes to AP_Mount 2016-01-23 10:35:45 +09:00
Gustavo Jose de Sousa c2e3f05dbf waf: ardupilotwaf: prefix build context methods with ap_
It helps to distinguish between things from waf and things from ardupilotwaf.
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa e9d3dc9e72 waf: vehicles and antennatracker: use methods from bld
Instead of from ardupilotwaf.
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa cf432e8b3e waf: ardupilotwaf: rename vehicle_stlib to ap_stlib
That function is not only for vehicles.
2016-01-22 20:10:28 -02:00
Gustavo Jose de Sousa a35c0d48b0 waf: ardupilotwaf: rename program to ap_program
Make the rename so that there is no name clashes when defining it as a taskgen
method.
2016-01-22 20:10:28 -02:00
Lucas De Marchi 7f04e0106e waf: change binary names
APMrover2 -> ardurover
AntennaTracker -> antennatracker
ArduCopter -> arducopter
ArduPlane -> arduplane
2016-01-18 16:56:08 -02:00
Gustavo Jose de Sousa 17e5d99509 waf: allow partial builds with new mavlink as submodule
The task generator for the mavlink headers is given a name 'mavlink' and is
added as a dependency to all local static libraries, because all of them use
sources that include mavlink headers. It would be nice to have a good way to
detect sources that use mavlink headers or to declare list of libraries that
use the headers, so that the dependency could be added automatically.

Additionally, there's a minor change in syntax for the task generator: using
strings directly instead of lists.
2016-01-15 07:28:48 +11:00
Tom Pittenger 4280dacced Rover: add xtrack_error to DF log 2016-01-08 20:16:25 +11:00
Andrew Tridgell be456fc33d Rover: always call load_all
this ensures defaults file works on first start after erase
2016-01-07 09:33:04 +11:00
Andrew Tridgell bd272390bc Rover: support up to 14 input channels on all boards 2016-01-04 08:23:04 +11:00
pepevalbe b4c02d8cd7 Rover: added group parameter for AP_Notify library 2015-12-31 11:33:11 +09:00
Siddharth Bharat Purohit 53d3e7dc61 Rover: wire up accel calibrator for Rover 2015-12-29 10:46:35 -08:00
Lucas De Marchi a096703b06 Global: don't link with AP_Progmem
AP_Progmem is not used anymore.
2015-12-27 15:58:12 -02:00
Andrew Tridgell 7daab1ee62 Rover: convert to Hz based task table 2015-12-27 14:57:24 +09:00
Andrew Tridgell c94b30b7bc Rover: fixed flymaple build 2015-12-22 11:35:31 +11:00
Andre Kjellstrup 80f19aefc7 APMrover2: Camera options for better camera control
All on one because they would not pass autotest if split up.
2015-12-18 18:16:11 +11:00
Jonathan Challinger 6c4f070685 Rover: reflect renamed function in AP_AHRS 2015-12-18 18:08:37 +11:00
Julien BERAUD c28a71ec63 Rover: Update Optical Flow declaration
Pass ahrs as param
2015-12-18 17:56:06 +11:00
Gustavo Jose de Sousa dc81a2410e waf: use single entry point for make wrappers 2015-12-10 10:40:34 +09:00
Tom Pittenger e6cf86801d APMrover2: compiler warning - float to double promotion for print 2015-12-07 15:50:05 +09:00
DonLakeFlyer 0950c97866 Rover: return success or failure of get home position 2015-12-07 12:33:18 +09:00
Lucas De Marchi 767f126eaa APMrover2: remove unused AP_ADC_AnalogSource 2015-12-03 13:32:44 +11:00
Peter Barker fb197c9255 Rover: DataFlash-over-MAVLink support 2015-12-03 13:21:52 +11:00
Peter Barker 5d46a9add0 Rover: support multiple simultaneous backends 2015-12-03 13:21:51 +11:00
Gustavo Jose de Sousa 7837bbfd81 waf: add a make wrappers 2015-12-03 07:54:32 +11:00
Gustavo Jose de Sousa bf7b08f9fa waf: add missing AP_Arming library to APMrover2 2015-12-03 07:54:32 +11:00
Caio Marcelo de Oliveira Filho 6e7b73610d waf: add waf support 2015-12-03 07:54:30 +11:00
Lucas De Marchi 2591261af6 Global: rename min and max macros to uppercase
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.

Changes generated with:

	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
2015-12-01 16:28:09 -02:00
Luis Vale Gonçalves 999e99c6f3 Rover: revise text messages
Text revisions on Rover. Uniformization on messages severity.
2015-11-25 20:50:00 +09:00
Caio Marcelo de Oliveira Filho ee073787c8 Rover: use millis/micros/panic functions
Instead of going through 'hal' then 'scheduler', use directly the AP_HAL
functions. Besides removing indirection that is not necessary for such
functions, this patch ends up reducing the code size in the call sites.

For example, building ArduCopter for PX4 with this change (compared to
before introduction of the functions) yields almost 3k bytes of code
size.

    # ArduCopter build before the functions (1b29a1af46)
       text	   data	    bss	    dec	    hex	filename
     895264	   2812	  62732	 960808	  ea928	/.../px4fmu-v2_APM.build/firmware.elf

    # ArduCopter build after this patch
       text	   data	    bss	    dec	    hex	filename
     892264	   2812	  62732	 957808	  e9d70	/.../px4fmu-v2_APM.build/firmware.elf

A later patch will remove the unused functions in the Schedulers.
2015-11-20 12:26:14 +09:00
Andrew Tridgell 8f4ce7f20b build: removed all nocore.inoflag files
these were APM2 specific
2015-11-16 08:05:17 +11:00
Grant Morphett 039ea59d7e Rover: Whitespace/formatting change ONLY for Steering.cpp 2015-11-11 13:39:39 +11:00
Grant Morphett bbbbd07935 Rover: GPS fix to ensure we only look at new GPS messages 2015-11-11 13:39:39 +11:00
Grant Morphett e81973cd29 Rover: motor_active method similar to the plane is_flying but simpler 2015-11-11 13:39:39 +11:00
Grant Morphett 3636b53313 Rover: Implementation of the ARMING functionality 2015-11-11 13:39:38 +11:00
Grant Morphett 2d1745ab6a Rover: Implemented the HOME state update from Plane 2015-11-11 13:39:38 +11:00
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
2015-11-05 12:33:56 +09:00
Lucas De Marchi b76f498799 APMrover2: don't use avr include dir for tags 2015-11-04 12:14:16 +11:00
Lucas De Marchi 91dbfce5f9 APMrover2: remove check for MAVLINK_COMM_NUM_BUFFERS 2015-11-04 12:14:15 +11:00
Lucas De Marchi 1a084e5dcd APMrover2: remove check for AVR CPUs
Remove the checks for HAL_CPU_CLASS > HAL_CPU_CLASS_16 and
HAL_CPU_CLASS >= HAL_CPU_CLASS_75. Corresponding dead code will be
removed on separate commits.
2015-11-04 12:14:14 +11:00
Lucas De Marchi 45ba94343d APMrover2: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 2015-11-04 12:14:13 +11:00
Lucas De Marchi 79230bc68d APMrover2: fix passing AP_Float to printf
Call get() to return the contained float value.
2015-10-30 14:35:46 +09:00
Lucas De Marchi c3fe71a0d5 APMrover2: fix wrong printf format for printf
"%S" is used for wide string, but we are passing a char*. Use lowercase
in this case to remove warnings like this:

libraries/AP_InertialSensor/AP_InertialSensor.cpp: In member function
'bool AP_InertialSensor::calibrate_accel(AP_InertialSensor_UserInteract*, float&, float&)':
libraries/AP_InertialSensor/AP_InertialSensor.cpp:620:61: warning:
format '%S' expects argument of type 'wchar_t*', but argument 3 has type 'const char*' [-Wformat=]
                 "Place vehicle %S and press any key.\n", msg);
                                                             ^
2015-10-30 14:35:44 +09:00
Lucas De Marchi b02661b478 APMrover2: fix wrong printf format for 32 bits
Heading is a 32 bits value, so use %d.
2015-10-30 14:35:39 +09:00
Lucas De Marchi 5244559010 Minimize AP_Progmem.h includes
Most of AP_Progmem is already gone so we can stop including it in most
of the places. The only places that need it are the ones using
pgm_read_*() APIs.

In some cases the header needed to be added in the .cpp since it was
removed from the .h to reduce scope. In those cases the headers were
also reordered.
2015-10-30 14:35:32 +09:00
Lucas De Marchi 1b07dabeb7 Replace prog_char and prog_char_t with char
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.

AVR-specific places were not changed.
2015-10-30 14:35:30 +09:00
Lucas De Marchi 4ab9821624 Replace use of Log_Write_Message_P() with Log_Write_Message() 2015-10-30 14:35:28 +09:00
Lucas De Marchi 20c6ffc5e3 Replace use of UARTDriver::printf_P() with UARTDriver::printf()
This also starts to show warnings on places that were already using
wrong printf format strings.
2015-10-30 14:35:25 +09:00
Lucas De Marchi 6f4904189b Replace use of println_P() with println() 2015-10-30 14:35:22 +09:00
Lucas De Marchi a964ac38ec Replace use of print_P() with print() 2015-10-30 14:35:21 +09:00
Lucas De Marchi ee72254ff9 APMrover2: remove undefined function from header 2015-10-30 14:35:20 +09:00
Lucas De Marchi 89fc4f4b62 Replace use of send_text_P() with send_text() 2015-10-30 14:35:17 +09:00
Lucas De Marchi 831d8acca5 Remove use of PROGMEM
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:

    git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
    git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'

The 2 commands were done so we don't leave behind spurious spaces.

AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Lucas De Marchi 6f0db45b57 Replace use of strcasecmp_P() with strcasecmp() 2015-10-30 14:35:08 +09:00
Lucas De Marchi 84da1f5039 Rename gcs_send_text_P to gcs_send_text 2015-10-30 14:35:07 +09:00
Lucas De Marchi 84d5fb006f Remove use of Util::{v,}snprintf_P()
These are now the same function as Util::snprintf().
2015-10-30 14:35:05 +09:00
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.
2015-10-30 14:35:04 +09:00
Caio Marcelo de Oliveira Filho bad68829ae APMrover2: include SITL only for SITL board
Include board-specific files only when the board is used. Since these
should be exceptional cases, let the includer handle the ifdef instead
of putting ifdefs in every platform-specific header.

In the future we should evaluate whether the HAL for the board should
instantiate this.
2015-10-22 13:36:14 -02:00
Caio Marcelo de Oliveira Filho 49a42dc985 SITL: use a SITL namespace 2015-10-22 11:04:42 -02:00
Peter Barker 5db4549d79 Rover: use simple log entry numbers to download logs 2015-10-21 10:50:32 +11:00
Caio Marcelo de Oliveira Filho 06b2c966c1 APMrover2: implement HAL::Callbacks
Also removes includes for each board since they are not necessary
anymore.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho ec52df991c build: compile only the HAL files needed by the board
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho 2e464a53c2 AP_HAL: make code not depend on concrete HAL implementations
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.

A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.

The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.

Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.

The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Gustavo Jose de Sousa 7c725bb59e APMrover2: use compass get_{field,offsets}() functions
Both functions are equivalent, so we're going to simply use
get_{field,offsets}() instead of get_{field,offsets}_milligauss().
2015-10-15 19:56:04 +09:00
Grant Morphett 461eff25d5 Rover: Fixed a build issue on Windows with the new RPM library
The AP_RPM library needed to be added to make.inc for the sitl build
to work correctly on Windows.  Thanks to Zach for solving the issue
in this discussion
http://diydrones.com/group/ardurover-user-group/forum/topics/rover-sitl-build-failed?commentId=705844%3AComment%3A2109049&xg_source=msg_com_gr_forum
2015-10-11 16:00:58 +09:00
Randy Mackay 93b0dd4d61 Rover: add no break comment to avoid compiler warning 2015-10-03 12:56:26 +09:00
Randy Mackay 836fff2119 Rover: send home position when home is set or get-home msg received 2015-10-03 12:56:21 +09:00
Andrew Tridgell 64410b10fb Rover: use ahrs.send_ekf_status_report() 2015-09-29 10:59:28 +10:00
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
Andrew Tridgell 42ed989da0 Rover: log mode in dataflash callback
this ensures every log has the initial mode
2015-09-17 20:14:35 +10:00
Stewart Loving-Gibbard 2c62a3a1c5 Rover: Adding Logging of RSSI data. 2015-09-16 16:41:48 +09:00
squilter 97b901a5fb Rover: Support do_digicam_x via command_long 2015-09-16 13:06:55 +09:00
Peter Barker d6e380496c Rover: ensure 10% free space when initialising logging 2015-09-09 12:22:36 +10:00
Staroselskii Georgii 8bb7e2d4b0 Rover: make Rover use milligauss 2015-09-09 10:38:16 +10:00
Grant Morphett 571b4478fd Rover: Using a new method to check for throttle failsafe
This method checks for throttle reversal.
2015-09-09 10:28:02 +10:00
Grant Morphett f5c7ac7a00 Rover: Fixing issue 302
Using the configured FS_THR_VALUE to check for failsafe instead of
just checking against 50 below throttle min.
2015-09-09 10:28:01 +10:00
Andrew Tridgell b87ed96825 Rover: fix for changed AP_RangeFinder API 2015-09-08 16:46:52 +10:00
Grant Morphett 90b48fe46a Rover: Fixing issue 327 - reporting Baro alt instead of GPS 2015-09-08 09:40:39 +10:00
Randy Mackay 958d279b7c Rover: support do-mount-control via command-long 2015-09-06 16:01:28 +09:00
Siddharth Bharat Purohit b8a9f9ebc5 APMrover2: implement on-board compass calibration for APMrover 2015-09-03 16:59:14 +10:00
Peter Barker 6e3687f8af Rover: DFMessageWriter; ability to trickle messages out to DF 2015-09-03 15:20:20 +10:00
Gustavo Jose de Sousa d6778fbf53 APMrover2: use function name for AP_Scheduler task name
That makes it easier to identify tasks when debug is enabled in AP_Scheduler.
2015-09-01 20:22:18 +10:00
Gustavo Jose de Sousa 30ffd0cbd2 APMrover2: use designated initializers for tasks structs
Makes code less prone to break build and semantics (e.g., when a new field is
added).
2015-09-01 20:22:18 +10: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
Randy Mackay 84252405c3 Rover: sanity check ROI target 2015-08-27 15:15:59 +09:00
Randy Mackay 536311744d Rover: fix link to BATT param descriptions 2015-08-26 11:17:53 +09:00
squilter b4cf0ce2bb Rover: update severity values 2015-08-25 14:04:40 +09:00
squilter 06eb53402f Rover: define and send FIRMWARE_VERSION 2015-08-23 09:21:53 +09:00
Tom Pittenger 2319bdb068 Rover: queue MISSION_ITEM_REACHED
clean up unreachable code
2015-08-19 15:42:08 +10:00
Tom Pittenger 545d926d20 Rover: bring rover mission callback inline with copter and plane 2015-08-19 15:26:32 +10:00
Stewart Loving-Gibbard c55e4e275d Rover: fix spelling errors in Parameters.cpp 2015-08-18 09:54:04 +09:00
Grant Morphett f4d319ba83 Rover: Including the sonar/rangefinder status in SYS_STATUS message 2015-08-12 06:34:26 -07:00
Andrew Tridgell 3ce5f62420 Rover: prevent build error with MSG_RPM 2015-08-12 15:03:51 +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 92a7a3e6ff Rover: Lets put Rover into BETA - v2.2.51
I also made myself the maintainer - ssshhh - don't tell Tridge.
2015-08-06 17:13:30 +10:00
Grant Morphett 103119fe9a Rover: fixed bug when reverse throttle would increase speed in AUTO
Fixed this bug
https://github.com/diydrones/ardupilot/issues/840
If a Rover was in AUTO and the user moved the throttle stick into
reverse past 50% the rover would increase.  Basically the throttle
nudge behaviour was the same regardless of whether you moved the
throttle forward or backward.
2015-08-06 17:11:53 +10:00
Grant Morphett 5044189ac9 Rover: scheduler remaining time loop calc made common
Just making the improved scheduler loop remaining time calculation in line with
Plane and Copter.
2015-08-05 15:31:44 +09:00
squilter aa4a7a0b28 Rover: init vehicle capabilities 2015-08-01 09:35:46 +09:00
Grant Morphett 224d45000b Rover: fixed a bug going into guided and rover still moving
When the rover goes into guided mode it sets the current location as
the guided point to goto.  If the rover is stationary when this
happens no problem.  If however the rover is still rolling (say going
from AUTO to GUIDED) then the rover would go past its guided position
and get confused and begin to circle it.  This change resolves that issue.
2015-07-30 12:41:02 +10:00
Grant Morphett a2e9d0488c Rover: Implemented loitering at a waypoint if Param1 is non-zero
Rover now honours the Param1 setting of a time in seconds for a
NAV_WAYPOINT and the Rover will loiter at that waypoint for that
period of time.
Note that as soon as the Rover reaches that waypoint the loiter timer
will start. If you enter a different mode during this time (HOLD for
instance) the timer resets. If you then switch back to AUTO
mode and the Rover returns to that waypoint it will wait for the
loiter time configured in param1.
2015-07-29 10:08:04 +10:00
Grant Morphett 9a79baef59 Rover: Merged a bug fix from Plane.
Merged a bug fix where mode would not revert on geo-fence disable.
The mode would not revert if the switch was in position 0.
Geofencing will soon be in Rover and I didn't want to forget this bug
and chase it later so committing it now.  It works fine in Rover now
even though the geofencing code isn't in yet.
2015-07-22 21:27:36 +10:00
Grant Morphett 873e6c8e29 Rover: Doubled the rate at which read_control_switch is called.
As the previous commit as doubled the number of reads required to
confirm that the mode change switch has been changed this means it
will halve the speed it changes at.  So we double the rate at which we
read it to keep things consistent.
2015-07-22 21:26:37 +10:00
Grant Morphett 4f6259f374 Rover: Added mode switch debouncing from Plane. 2015-07-22 21:26:37 +10:00
Grant Morphett 1fb81777f1 Rover: deleted the old command_description.txt file which isn't used. 2015-07-21 16:31:26 +09:00
Randy Mackay 14561f04b0 Rover: log IMUDT 2015-07-14 13:31:58 +09:00
Lucas De Marchi 8f74d7d982 APMrover2: use ARRAY_SIZE macro 2015-07-07 07:56:29 +10:00
Randy Mackay 5ef4f8e90a Rover: log ahrs home and ekf origin 2015-07-06 13:28:10 +09:00
Peter Barker 4b0495bb15 Rover: use common mission logging code 2015-06-30 16:23:35 +10:00
Peter Barker b0c6a1fde7 Rover: use common system information logging 2015-06-30 16:23:35 +10:00
Peter Barker e9e59e6c38 Rover: DataFlash frontend/backend split 2015-06-26 16:02:51 +10:00
Grant Morphett 3da78052a1 Rover: Release 2.50! 2015-06-19 14:24:05 +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
Grant Morphett 268afc9d5a Rover: Added dataflash logging of the steering PID. 2015-06-19 09:55:19 +10:00
Dario Lindo Andres 39c0879dac Rover: added CLI_ENABLED parameter
Same parameter have been included with Copter and Plane, so Rover was
deprecated. Now we can decide on Rover if CLI is used or not with
Pixhawk/PX4.
2015-06-18 16:23:11 +09:00
Randy Mackay fe1da458a7 Rover: avoid compiler warning re to new VIBRATION msg 2015-06-12 21:36:53 +09:00
Eugene Shamaev 3ecead9d3c Rover: added DSM bind support 2015-06-10 17:19:09 +10:00
Grant Morphett f314b243ee Rover: Make guided operate the same way as Plane/Copter.
This is a safety change.  Lets say you have a GCS which is in
followme mode which is really GUIDED mode with continually updated
waypoints.  If the user then changes mode with the RC transmitter to
HOLD or anything else then the Rover should STOP listening to the
updated guided mode waypoints.  This is how Plane/Copter work.
2015-06-05 21:07:00 +10:00
Lucas De Marchi b9b921fc38 Rover: stop using alias FUNCTOR_BIND_VOID 2015-06-04 13:37:37 +09:00
Randy Mackay 31aae1f019 Rover: Log_Write_Startup writes parameters 2015-06-01 20:22:46 +09:00
Grant Morphett e86a89e5bd Rover: Moving parameter logging to be after all systems have started 2015-06-01 20:22:35 +09:00
Grant Morphett bd92febe77 Rover: Removed superfluous speed-type parameter
Unlike Plane, Rover only understands ground speed so there is no need
to specify the speed type parameter for Rover.
2015-06-01 20:22:33 +09:00
Andrew Tridgell 530c9c988f Rover: removed unused pragmas 2015-06-01 18:05:59 +10:00
Andrew Tridgell e449b3c4a1 Rover: changes for new AHRS API 2015-06-01 16:17:15 +10:00
Andrew Tridgell 5dfa2783e0 Rover: added blank Parameters.pde for MissionPlanner 2015-05-30 15:21:29 +09:00
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
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 87c77dc07f Rover: added SERIAL_CONTROL support 2014-04-05 07:34:34 +11:00
Andrew Tridgell c6f9627782 Rover: use new channel output API 2014-04-03 12:19:25 +11:00
Andrew Tridgell 337ca31b79 Rover: update for gps.setHIL() API 2014-04-02 07:55:28 +11:00
Andrew Tridgell b8f9b5ad91 Rover: added GPS parameters 2014-04-01 06:38:26 +11:00
Andrew Tridgell f4079f57b2 Rover: convert to new GPS API 2014-04-01 06:38:24 +11:00
Andrew Tridgell 747948692a Rover: use AP_GPS_Auto for 2nd GPS 2014-04-01 06:38:23 +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 4ac529a0dd Rover: support 18 input channels in MAVLink 2014-03-25 14:47:43 +11:00
Andrew Tridgell ce3ed33649 Rover: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Andrew Tridgell 843318f58c Rover: updates for new RCInput API 2014-03-25 14:47:02 +11:00
Andrew Tridgell d1a650a527 Rover: updates for GPS changes 2014-03-24 12:04:58 +11:00
Andrew Tridgell bf4566095a Rover: report unhealthy compass if primary compass unhealthy 2014-03-24 07:03:35 +11:00
Andrew Tridgell 552674389d Rover: enable logging of RADIO_STATUS 2014-03-20 09:56:37 +11:00
Andrew Tridgell 3d167b5420 Rover: use should_log() for more log msgs 2014-03-19 14:18:12 +11:00
Randy Mackay 9ff5ba3c3f Rover: integrate Mission cmd field changes 2014-03-19 12:14:27 +09:00
Andrew Tridgell 8da72fccba Rover: use common deferred message handling 2014-03-19 12:14:18 +09:00
Andrew Tridgell c8eafc4d42 Rover: use common MISSION_ITEM handling 2014-03-19 12:14:14 +09:00
Andrew Tridgell 0aafef9f69 Rover: use new common MAVLink message handlers 2014-03-19 12:13:41 +09:00
Randy Mackay a90a10b0ca Rover: use common GCS_MAVLink handle_mission methods 2014-03-19 12:13:24 +09:00
Andrew Tridgell c7c8a36620 Rover: use new handle_mission_request() function
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:13:13 +09:00
Randy Mackay de119e07bb Rover: remove do_takeoff, do_change_alt support 2014-03-19 12:13:07 +09:00
Randy Mackay 59555e8364 Rover: revert next_WP, prev_WP to location structures 2014-03-19 12:13:04 +09:00
Randy Mackay 204eb8b7d3 Rover: use mission command specific structure 2014-03-19 12:13:00 +09:00
Randy Mackay df5c874f73 Rover: fix to support uploading partial missions 2014-03-19 12:12:58 +09:00
Randy Mackay 954e10b26f Rover: integrate dataflash Log_Write_MavCmd 2014-03-19 12:12:48 +09:00
Randy Mackay 9b0ae2fcff Rover: use Dataflash lib's Log_Write_Cmd 2014-03-19 12:12:13 +09:00
Randy Mackay 7ff379850c Rover: integrate variable max num commands 2014-03-19 12:12:05 +09:00
Randy Mackay fdec917607 Rover: pass eeprom start to Mission constructor 2014-03-19 12:12:04 +09:00
Randy Mackay 7b9c3bf707 Rover: call mission.init during startup 2014-03-19 12:11:50 +09:00
Randy Mackay 923dca0cb8 Rover: Log_Write_Startup checks success of cmd read before logging 2014-03-19 12:11:44 +09:00
Randy Mackay 0a7d33a1da Rover: cli test checks read_cmd success before printing 2014-03-19 12:11:43 +09:00
Randy Mackay 5ccfa247ac Rover: remove unused definitions 2014-03-19 12:11:36 +09:00
Randy Mackay 29340c68bd Rover: Mission integration for cli test 2014-03-19 12:11:34 +09:00
Randy Mackay 1a70ffdeee Rover: Mission integration for ch7 save waypoint 2014-03-19 12:11:33 +09:00
Randy Mackay c83733048f Rover: Mission integration into dataflash Logging 2014-03-19 12:11:31 +09:00
Randy Mackay 4ca3a92655 Rover: Mission integration into command execution 2014-03-19 12:11:30 +09:00
Randy Mackay df1b2e1192 Rover: Mission integration with GCS_Mavlink.pde 2014-03-19 12:11:28 +09:00
Randy Mackay 192286f04d Rover: create Mission object 2014-03-19 12:11:27 +09:00
Randy Mackay 26b82cf0a3 Rover: use common location options masks 2014-03-19 12:10:23 +09:00
Andrew Tridgell 18686ab671 Rover: fixed comment 2014-03-13 16:26:14 +11:00
Andrew Tridgell e7b0e32bfe Rover: set 2nd GPS as secondary 2014-03-08 21:48:23 +11:00
Andrew Tridgell 148fd889bc Rover: fix for X8R receiver on SBUS in failsafe
the X8R briefly gives PWM of 874 on all channels when the receiver is
setup as "no pulses" failsafe handling. This was interpreted as switch
position 0, which was AUTO for me.

This change rejects pulse widths below 900 for mode changes
2014-03-08 19:27:50 +11:00
Andrew Tridgell 7104bdf855 Rover: support k_steering channel 2014-03-05 12:57:51 +11:00
Andrew Tridgell 989b26899f Rover: enable EKF detailed logging 2014-03-03 09:03:48 +11:00
Andrew Tridgell 8740ccfc61 Rover: only send GPS2_RAW when we have a 2nd GPS 2014-03-03 07:05:42 +11:00
Andrew Tridgell 87ea98fe2c Rover: disable GPS2 in HIL 2014-02-27 08:16:11 +11:00
Andrew Tridgell 82ffc0ff2b Rover: support a 2nd GPS 2014-02-26 09:24:23 +11:00
Andrew Tridgell 50f89d0aa6 Rover: pass fix type to gps->setHIL() 2014-02-25 21:11:06 +11:00
Andrew Tridgell 11028c665d Rover: removed unused variables
thanks to Mike McCauley
2014-02-24 18:48:55 +11: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
Andrew Tridgell 203073e3ba Rover: only use pivot steering in AUTO modes 2014-02-24 08:23:20 +11:00
Andrew Tridgell 4ed2630f4f Rover: fix for HIL API change 2014-02-23 08:18:15 +11:00
Randy Mackay bb0995f7d8 Rover: add EKF params to full param list 2014-02-21 13:51:34 +09:00
Andrew Tridgell 532f06073a Rover: set the ahrs.set_armed() flag 2014-02-19 10:54:04 +11:00
Andrew Tridgell 2ba994b040 Rover: allow for a wider range of values on the control switch 2014-02-17 13:58:11 +11: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 aeb7578e5d Rover: change to Compass::learn_offsets 2014-02-16 13:22:20 +11:00
Andrew Tridgell 155d751e80 Rover: fixed build 2014-02-15 05:29:48 +11:00
Andrew Tridgell e315c5f28e Rover: enable use of AHRS_NavEKF 2014-02-15 05:29:46 +11:00
Andrew Tridgell ec913df7a9 Rover: cleanup HIL defines 2014-02-15 05:29:46 +11:00
Andrew Tridgell 6029ec53ae Rover: changed LOG_WHEN_DISARMED to 1<<16
this makes it possible to set via mavlink float interface
2014-02-15 05:12:48 +11:00
Andrew Tridgell 9d6005edd8 Rover: log power status on Pixhawk 2014-02-15 05:00:09 +11:00
Andrew Tridgell 4e2dbb4a4b Rover: change to new board_voltage() API 2014-02-14 21:50:59 +11:00
Andrew Tridgell 871777fa57 Rover: use new RC_Channels API 2014-02-06 10:17:16 +11:00
Andrew Tridgell 37b8686f76 Rover: removed unused code
thanks to Mike for noticing this
2014-02-04 21:43:47 +11:00
Andrew Tridgell 7a2a431fc6 Rover: check param table on startup 2014-01-31 13:10:15 +11:00
Andrew Tridgell 5b1ac474d1 Rover: update to 2.45 2014-01-27 10:59:32 +11:00
Andrew Tridgell 7aef90a1f3 Rover: consider GPS unhealthy if it doesn't have GPS lock 2014-01-27 09:02:39 +11:00
Andrew Tridgell 2fa8592f7a Rover: 2nd try at fixing rover RC_* docs 2014-01-20 20:11:08 +11:00
Andrew Tridgell e1fea48bc7 Rover: fixed docs for aux channels 2014-01-20 20:09:06 +11:00
Andrew Tridgell 0828c40870 Rover: converted to AP_ServoRelayEvents 2014-01-20 17:06:29 +11:00
Andrew Tridgell a595272e38 Rover: fixes for AP_Relay API change 2014-01-20 17:06:29 +11:00
Andrew Tridgell 89c99ce145 Rover: enable AP_BoardConfig 2014-01-20 17:06:28 +11:00
Randy Mackay 3e8e02e9e8 Rover: typo in mode stearing should be steering 2014-01-20 11:22:34 +09:00
Andrew Tridgell ef57306311 Rover: log PX4 and NuttX versions in logs 2014-01-14 15:38:42 +11:00
Andrew Tridgell 72ce7f5827 Rover: only log when armed 2014-01-14 15:10:13 +11:00
Andrew Tridgell 33acce71c8 Rover: prevent log corruption during log creation 2014-01-14 14:40:10 +11:00
Andrew Tridgell 8d4f89b77e Rover: use uppercase names on SD card where possible 2014-01-14 12:46:26 +11:00
Bill Bonney 2bfcb93cb1 Rover: Fix SYSID ranges to support GCS display of param correctly 2014-01-14 10:32:40 +09:00
Andrew Tridgell 9b7a837553 Rover: try changing GPS setting to AIRBORNE_4G
this may reduce the GPS latency and improve chicane performance
2014-01-13 10:20:40 +11:00
Andrew Tridgell d7d6ae97de Rover: prepare for 2.44 release 2013-12-30 10:33:48 +11:00
Andrew Tridgell 7578839667 Rover: split up GPS update into 10Hz and 50Hz parts 2013-12-30 10:33:48 +11:00
Andrew Tridgell 870ec8a9bb Rover: added RC in/out logging 2013-12-30 10:24:01 +11:00
Andrew Tridgell 90e4b16462 Rover: use file based logs in SITL 2013-12-29 07:14:11 +11:00
Andrew Tridgell 3b2ef31cc0 Rover: use common available_memory() 2013-12-28 16:02:45 +11:00
Randy Mackay 4fd2d2885e Rover: replace APM with board in cli 2013-12-28 10:42:22 +09:00
Andrew Tridgell e926f11ec3 Rover: initialise scheduler callback after logging
prevents possible log corruption
2013-12-28 10:25:45 +11:00
Andrew Tridgell 647cc84e00 Rover: fixed logs directory 2013-12-28 10:17:47 +11:00
Andrew Tridgell ac2f3da5ca Rover: ensure fly_forward is set in AUTO 2013-12-21 23:30:21 +11:00
Andrew Tridgell b72ea5435b Rover: check for failed RC input
loss of RC for 2s is considered a throttle failsafe
2013-12-20 09:48:36 +11:00
Andrew Tridgell daa0a7346e Rover: removed common functions 2013-12-17 12:00:46 +11:00
Andrew Tridgell 8054843e73 Rover: updates for DataFlash API changes 2013-12-17 11:51:36 +11:00
Andrew Tridgell fbd2f7f880 Rover: support log download over MAVLink 2013-12-17 11:51:36 +11:00
Andrew Tridgell 774e4c8885 Rover: moved ap_message into GCS.h 2013-12-17 11:51:35 +11:00
Andrew Tridgell e80308882e Rover: use common GCS.h 2013-12-17 11:51:34 +11:00
Andrew Tridgell 24cf0a55ea Rover: added timestamps to logging and new STER logging
much more accurate logging for better analysis
2013-12-16 11:17:26 +11:00
Andrew Tridgell beb9bffcf2 Rover: added logging of 2nd compass 2013-12-10 13:34:53 +11:00
Andrew Tridgell 563e5f71ff Rover: changes for compass API 2013-12-09 17:46:57 +11:00
Andrew Tridgell 562c353bd7 Rover: report both sets of sensors in MAVLink 2013-12-09 17:34:07 +11:00
Andrew Tridgell 615e718524 Rover: updates for compass API change 2013-12-09 17:34:06 +11:00
Andrew Tridgell d2abf3d170 Rover: release new beta 2013-12-02 10:19:50 +11:00
Randy Mackay 0b00f4d065 Rover: disable external leds 2013-11-30 22:54:05 +09:00
Andrew Tridgell a5b0dcc6d9 Rover: log system ID if available 2013-11-26 13:00:03 +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 41cf8d91c3 Rover: fixed VFR_HUD.throttle for reverse 2013-11-25 11:50:50 +11:00
Andrew Tridgell 14a0f8f46d Rover: added support for uartD 2013-11-25 11:21:52 +11:00
Andrew Tridgell 2c840547fa Rover: fixed throttle control in reverse
throttle nudge was being miscalculated
2013-11-25 11:21:52 +11:00
Randy Mackay e7d5d9a2b7 Rover: log INS errors in PM message 2013-11-18 13:08:53 +09:00
Andrew Tridgell 7046f44443 Rover: added basic support for reverse in STEERING mode
this will allow for reverse in steering mode, while also fixing a
problem with AHRS yaw when reversing, and a problem with initial
throttle in steering mode
2013-11-18 10:58:22 +11:00
Andrew Tridgell cae3d3b378 Rover: show git and firmware version in tlog 2013-11-09 10:09:20 +11:00
Andrew Tridgell 9748e72b3e Rover: report INS health 2013-11-07 12:48:17 +11:00
Andrew Tridgell 7546ae9ab5 Rover: update for AHRS API changes 2013-11-04 21:21:42 +11:00
Andrew Tridgell 023957967c Rover: fixed PM message 2013-11-02 21:41:33 +11:00
Andrew Tridgell 787fd018b5 Rover: fixed performance monitoring
now the same as plane
2013-10-28 17:21:35 +11:00
Andrew Tridgell 54ab96fe16 Rover: removed fast_loop() and use scheduler for all tasks
this also fixes a parameter download speed issue
2013-10-28 10:34:32 +11:00
Andrew Tridgell c8e21c194d Rover: set system time on GPS lock 2013-10-24 14:22:48 +11:00
Andrew Tridgell 7a9048f225 Rover: added MAVLink SYSTEM_TIME message 2013-10-24 14:22:48 +11:00
Andrew Tridgell 20ae1b7bc3 Rover: removed demo_servos()
doesn't do much good on rovers, and just slows boot
2013-10-23 09:40:41 +11:00
Andrew Tridgell cd5b24bf02 Rover: slow parameter send check to 5Hz
this solves an issue with current MP
2013-10-21 09:56:01 +11:00
Andrew Tridgell 8f9315f047 Rover: bring MAVLink stream handling inline with plane 2013-10-21 09:56:00 +11:00
Andrew Tridgell c20d0e8152 Rover: added SKIP_GYRO_CAL option 2013-10-21 09:56:00 +11:00
Andrew Tridgell f62c53502d Rover: fixes for AP_Mount API 2013-10-13 11:03:28 +09:00
Andrew Tridgell 5acc372f40 Rover: support MAV_CMD_DO_SET_CAM_TRIGG_DIST 2013-10-11 21:42:13 +11:00
Andrew Tridgell 6a93e0cae4 Rover: remove some unused functions 2013-10-11 21:36:50 +11:00
Andrew Tridgell 2a4e11a572 Rover: prepare for 2.43 release 2013-10-10 15:53:28 +11:00
Andrew Tridgell bf5aef7119 Rover: enable logging on Linux 2013-10-08 19:20:34 +11:00
Andrew Tridgell eef966c5fb Rover: use ins.wait_for_sample() 2013-10-08 19:20:34 +11:00
Andrew Tridgell 6304be1f5a Rover: avoid delay_microseconds until fixed on PX4 2013-10-08 14:55:26 +11:00
Andrew Tridgell 42255ebbc6 Rover: improved loop() latency 2013-10-08 11:50:54 +11:00
Andrew Tridgell 1e7af3e101 Rover: switched to L3G4200D driver for Linux 2013-10-08 11:50:54 +11:00
Andrew Tridgell 752d1503b9 Rover: release beta7 2013-10-07 09:32:23 +11:00
Andrew Tridgell 44eedd4abd Rover: update for new AP_SteerController API 2013-10-05 07:42:48 +10:00
Andrew Tridgell 03aca1bd8d Rover: allow throttle nudging in STEERING mode
this better matches what AUTO does
2013-10-05 07:42:48 +10:00
Randy Mackay ed7f831c18 Rover: mavlink ext status to use SYS_STATUS_SENSOR enum 2013-10-04 13:21:03 +09:00
Randy Mackay 121e4932ea Rover: integrate BattMonitor 2013-10-03 11:16:29 +09:00
Andrew Tridgell 3538e1190c Rover: updates for AP_HAL::MemberProc 2013-09-30 21:06:42 +10:00
Andrew Tridgell 56d33cd3a7 Rover: prep for 2.45beta6 2013-09-30 09:06:25 +10:00
Andrew Tridgell c7ac864af9 Rover: smooth steeing at low speed in STEERING mode
use the G limit from the turn radius as the steering limit
2013-09-30 09:05:37 +10:00
Andrew Tridgell 9679faae3b Rover: ported to Linux 2013-09-28 22:04:16 +10:00
Andrew Tridgell 0c99a1bbbb Rover: be friendly to multi-tasking OSes 2013-09-28 22:04:15 +10:00
Andrew Tridgell 20d1ddb5ba Rover: update for Stub -> HIL 2013-09-28 22:04:15 +10:00
Andrew Tridgell 19651373d0 Rover: use new scheduler API 2013-09-28 21:24:03 +10:00
Andrew Tridgell 0518fd5d56 Rover: update for new INS API 2013-09-27 10:49:00 +10:00
Andrew Tridgell 3589c07d09 Rover: added support for the flymaple board 2013-09-24 13:51:28 +10:00
Andrew Tridgell 1b200b30f4 Rover: create 2.43beta5 2013-09-24 07:39:13 +10:00
Andrew Tridgell 06a9624a72 Rover: make the default period 8
thanks Tom!
2013-09-24 07:37:24 +10:00
Andrew Tridgell 8f8711b137 Rover: removed SLIDE_SWITCH and PUSHBUTTON defines
not used anywhere
2013-09-23 18:10:22 +10:00
Andrew Tridgell 53f35dee57 Rover: fixed build with print() changes 2013-09-23 18:10:22 +10:00
Andrew Tridgell aff274f9f4 Rover: make compat functions static 2013-09-23 18:10:22 +10:00
Andrew Tridgell b52b6ce121 Rover: only send RC_CHANNELS_SCALED in HIL
saves a bit of telemetry bandwidth
2013-09-21 09:30:30 +10:00
Andrew Tridgell 7e589017b3 Rover: fixed baud rates on APM1 2013-09-21 09:30:29 +10:00
Andrew Tridgell 95c2e11b5a Rover: removed flash_leds() calls 2013-09-19 18:38:28 +10:00
Andrew Tridgell 481429de61 Rover: use new HAL usb_connected() function 2013-09-19 16:24:59 +10:00
Andrew Tridgell e0d44ed31a Rover: prevent arming tone on startup 2013-09-18 10:55:54 +10:00
Andrew Tridgell 3878d9d09e Rover: fixed typo 2013-09-16 09:17:00 +10:00
Andrew Tridgell a1cbcc5e23 Rover: update to 2.43beta4 2013-09-16 08:24:16 +10:00
Andrew Tridgell df66dc1889 Rover: honor the FS_GCS_ENABLE parameter
GCS failsafe was always enabled
2013-09-16 08:23:35 +10:00
Andrew Tridgell 8b2c9557c7 Rover: changed to AP_Vehicle.h 2013-09-13 11:47:13 +10:00
Andrew Tridgell 5c639b8b9f Rover: update battery pin docs 2013-09-12 13:42:48 +10:00
Andrew Tridgell 6ab9b0b91b Rover: fixed Vcc 2013-09-12 13:26:12 +10:00
Andrew Tridgell d20644e664 Rover: added SR0 and SR3 stream rates to auto docs 2013-09-12 09:51:36 +10:00
Andrew Tridgell 3d6e76a050 Rover: changed default L1 period to 11 2013-09-12 07:48:57 +10:00
Andrew Tridgell 983ca71796 Rover: moved override of defaults to load_parameters() 2013-09-09 19:55:11 +10:00
Andrew Tridgell fc1228eb48 Rover: set a default filter frequency of 5Hz
this should help rovers on rough surfaces
2013-09-09 19:19:11 +10: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 887942471e Rover: use Y accel computed from gyro and velocity
this should be less susceptible to noise and attitude errors,
hopefully leading to better learning
2013-09-09 18:04:40 +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 6c2f623df2 Rover: send y accel in m/s/s as nav_pitch
this allows for easier tuning in MissionPlanner
2013-09-09 18:04:40 +10:00
Andrew Tridgell 7789f0d133 Rover: don't use throttle_nudge in steering mode 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
Craig3DRobotics 630095adaa Revert "Copter: Corrected SR0 & SR3 parameter descriptions"
This reverts commit 6568234018.
2013-09-06 09:58:19 -07:00
Craig3DRobotics a6efe45bf5 Rover: Correction on SR0 & SR3 parameter description. 2013-09-05 22:27:17 -07:00
Andrew Tridgell cfeecdae46 Rover: raise GPS serial buffer size 2013-09-04 13:17:02 +10:00
Andrew Tridgell 1ca1b1e36e Rover: support reboot to bootloader 2013-09-04 11:58:41 +10:00
Andrew Tridgell 38bf6b8587 Rover: change to 2.43beta3 2013-08-30 14:02:49 +10:00
Andrew Tridgell ad8c5925e8 Rover: fixed build with AP_AHRS changes 2013-08-30 13:01:35 +10:00
Andrew Tridgell 1646b9c815 Rover: updates for new notify API 2013-08-30 13:01:35 +10:00
Randy Mackay 814ddcd787 Rover: integrate AP_Notify 2013-08-30 13:01:35 +10:00
Andrew Tridgell 56e6e28949 Rover: fixed license text
rover is under GPL, not LGPL
2013-08-30 13:01:32 +10:00
Andrew Tridgell 4f6bd0e3c9 Rover: support new RADIO_STATUS msg 2013-08-24 17:59:13 +10:00
Andrew Tridgell ee19b09e9f Rover: fixes for new AP_Math location API
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
2013-08-05 10:24:16 +10:00
Andrew Tridgell 9f49b8fa48 Rover: use the new load_average() API 2013-08-02 18:46:38 +10:00
Andrew Tridgell a5ede20cb1 Rover: update to 2.43beta2 2013-07-15 10:31:52 +10:00
Andrew Tridgell 6e52a09e50 Rover: fixed HIL build 2013-07-15 10:30:10 +10:00
Andrew Tridgell e96d0f745c Rover: fixed dead-zone on throttle 2013-07-15 10:25:30 +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
Randy Mackay 32b5169bb9 Rover: set_dead_zone renamed to set_default_dead_zone
Change in use of parameter means value passed in should be 1/2 what it
was previously
2013-07-12 11:44:20 +09:00
Andrew Tridgell b5db3288ae Rover: changes for GPS field changes 2013-07-10 14:04:22 +10:00
Andrew Tridgell a9a192a0fd Rover: changed to 2.43beta1 2013-07-01 10:11:24 +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 d0c69b36b6 Rover: update version for new release 2013-07-01 09:14:02 +10:00
Andrew Tridgell a5586ec394 Rover: enable RELAY_* parameters 2013-06-25 12:48:58 +10:00
Randy Mackay 35175ae371 Rover: update FS_THR_VALUE parameter description 2013-06-18 15:57:11 +09:00
Andrew Tridgell 6c29a3cd23 Rover: make GPS UART blocking again
until we have support for non-blocking config packets in uBlox
2013-06-11 18:50:26 +10:00
Andrew Tridgell 8db34dec64 Rover: fix VOLT_DIVIDER docs 2013-06-07 08:40:45 +10:00
Andrew Tridgell 07587222a3 Rover: tweaks to new scheduler code 2013-06-04 13:34:09 +10:00
Andrew Tridgell feb539bade Rover: fixed HIL operation
only HIL sensors - removed HIL_MODE_ATTITUDE as it didn't exercise
enough of the code
2013-06-04 11:57:59 +10:00
Andrew Tridgell bfa9e04aef Rover: tweak scheduling timing
move to beta3
2013-06-04 10:54:42 +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 537d0032a8 Rover: update servo ranges on change of RCMAP_* 2013-06-03 22:22:47 +10:00
Andrew Tridgell 5a9485a419 Rover: support RCMAP_* mapping for steering/throttle 2013-06-03 19:33:59 +10:00
Andrew Tridgell 5b3bfe3d38 Rover: auto-generate docs for more parameters 2013-06-03 17:55:22 +10:00
Andrew Tridgell be3c80127a Rover: make it possible to change board orientation at runtime 2013-06-03 16:53:10 +10:00
Andrew Tridgell 7c0e0e6b85 Rover: use RC_Channel::rc_channel() 2013-06-03 16:23:48 +10:00
Andrew Tridgell d22d75d329 Rover: move to beta2 2013-06-02 14:53:46 +10:00
Andrew Tridgell a0bf49ab42 Rover: updated AUTO_TRIGGER_PIN docs 2013-06-02 07:55:49 +10:00
Andrew Tridgell 2db8e15964 Rover: update docs on volt/current pin 2013-05-31 07:57:15 +10:00
Andrew Tridgell 2b370cdfc8 Rover: fixed indent-tabs-mode 2013-05-30 09:55:37 +10:00
Andrew Tridgell 1a32406f9d Rover: fixed logging of sonar distance 2013-05-29 11:36:48 +10:00
Andrew Tridgell f76fab299b Rover: fixed change of speed command
m/s not cm/s
2013-05-27 13:37:34 +10:00
Andrew Tridgell f2575e790c Rover: added @User: Standard for battery capacity 2013-05-21 17:02:13 +10:00
Randy Mackay 74bca32ab4 Rover: add parameter description for LOG_BITMASK 2013-05-21 11:21:38 +09:00
Randy Mackay 31e3f32930 Rover: send_text_P bug fix for short messages 2013-05-20 12:51:29 +09:00
Andrew Tridgell 80582df4be Rover: started on 2.42beta 2013-05-17 08:35:31 +10:00
Andrew Tridgell b5f2b4db8a Rover: don't do crosstrack in last 3m
this reduces the weaving at waypoints
2013-05-17 08:33:02 +10:00
Andrew Tridgell ca8e4519cc Rover: use get_projected_position()
this will make for more accurate turns in missions
2013-05-17 08:32:36 +10:00
Andrew Tridgell 697d17a229 Rover: add doc links for SONAR2_* parameters 2013-05-17 07:38:52 +10:00
Andrew Tridgell e1ac097e0e Rover: use voltage_average() for RSSI
this allows it to work on PX4
2013-05-13 15:19:05 +10:00
Andrew Tridgell 3438316288 Rover: use library gcs_severity 2013-05-09 09:28:42 +10:00
Andrew Tridgell 087a428360 Rover: prepare for 2.41 release 2013-05-07 13:03:18 +10:00
Andrew Tridgell ef4198bcb4 Rover: don't do failsafe if throttle is below failsafe level 2013-05-03 09:45:19 +10:00
Andrew Tridgell b58d753344 Rover: make AUTO_TRIGGER_PIN be a push on/push off 2013-05-03 09:20:40 +10:00
Andrew Tridgell 8361cd31f2 Rover: send all mavlink string messages to flash log 2013-05-03 09:18:33 +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 5594e4d9bc Rover: use new HIL compass API 2013-05-02 14:59:48 +10:00
Andrew Tridgell 44dd9ddf74 Rover: updates for new compass API 2013-05-02 12:48:14 +10:00
Andrew Tridgell b13406859f Rover: replaced constrain() with constrain_float() 2013-05-02 10:26:12 +10:00
Randy Mackay 6857b8e4f4 Rover: use renamed RCInput valid_channels 2013-04-29 15:07:22 +09:00
Andrew Tridgell e8c71c1449 Rover: log mode number as well as mode string
this makes graphing mode changes easier
2013-04-28 14:58:43 +10:00
Andrew Tridgell a64d067749 Rover: log GPS packets as they come in 2013-04-28 14:57:19 +10:00
Andrew Tridgell 18444d3ac3 Rover: show modes as strings in log 2013-04-28 14:47:59 +10:00
Randy Mackay 95e83314ac Rover: add I2C error count to PM message 2013-04-26 22:40:09 +09:00
Andrew Tridgell 81b9dad1cd Rover: mark new beta version 2013-04-24 16:20:12 +10:00
Andrew Tridgell f50fe7a77a Rover: made a bit test clearer 2013-04-24 08:32:01 +10:00
Bill Bonney 14eca30456 Rover: Enable CURRENT logging by default to dataflash 2013-04-21 07:24:16 +10:00
Andrew Tridgell fb6b736c78 Rover: print mode as string in logs 2013-04-20 15:18:42 +10:00
Andrew Tridgell c45f90fb06 Rover: log board voltage 2013-04-20 13:52:36 +10:00
Andrew Tridgell cabef0ef6c Rover: cleanup build warnings 2013-04-20 13:52:36 +10:00
Andrew Tridgell 7717cc1450 Rover: added compass logging 2013-04-20 13:52:36 +10:00
Andrew Tridgell 8c7a7928d4 Rover: use new StartNewLog() interface 2013-04-20 13:52:36 +10:00
Andrew Tridgell 90f70707b1 Rover: convert to new logging system 2013-04-20 13:52:36 +10:00
Andrew Tridgell 947b64dfc4 Rover: fixed turn time in flash logs 2013-04-19 11:03:43 +10:00
Andrew Tridgell a8d6fa3107 Rover: fixed dataflash logs to be useful
added sonar and fixed other messages
2013-04-19 10:23:57 +10:00
Andrew Tridgell 0bbddbb877 Rover: added PX4 flash logging 2013-04-17 21:35:40 +10:00
Andrew Tridgell df27b8b35d Rover: fixed logging for new API 2013-04-17 21:34:20 +10:00
tobias 217b8d7a59 cleanup: use const for struct Location pointers and references
this allows the compiler to generate more efficient code
2013-04-09 12:10:32 +10:00
Andrew Tridgell a5fdbadcc2 Rover: use get_pid_4500() to prevent PID overflow
if users set much too large gains
2013-04-01 22:17:05 +11:00
Andrew Tridgell 645bd87b63 Rover: minor parameter documentation updates 2013-03-29 22:46:58 +11:00
Andrew Tridgell 12c35da9aa Rover: fixed SKID_STEER_IN calculations 2013-03-29 19:43:28 +11:00
Andrew Tridgell 3a1e9e43a1 Rover: use new angle wrap code 2013-03-29 13:14:14 +11:00
Andrew Tridgell a8bd8950c8 Rover: enable HOLD with throttle failsafe by default
this is the safest combination
2013-03-29 11:34:42 +11:00
Andrew Tridgell 9eaa764f42 Rover: report smaller of two sonar distances 2013-03-29 11:00:41 +11: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 caaf32211e Rover: new failsafe logic
this obeys FS_TIMEOUT and FS_ACTION
2013-03-29 10:25:53 +11:00
Andrew Tridgell 0ed3061d32 Rover: added waypoint passed logic to RTL
this prevents circling around home
2013-03-29 10:24:59 +11:00
Andrew Tridgell d02a127b7e Rover: change version to 2.40 2013-03-29 09:54:06 +11:00
Andrew Tridgell e4a4cb59e0 Rover: fixed timeout for obstacle detection 2013-03-29 09:36:54 +11:00
Andrew Tridgell 7c4dfa6698 Rover: fixed speed scaling for steering
it was inverted!
2013-03-29 09:14:58 +11:00
Andrew Tridgell caf5e5b7c5 Rover: added HOLD mode
used when RTL completes
2013-03-29 08:53:20 +11:00
Andrew Tridgell d968a7c7ed Rover: log obstacle events 2013-03-29 08:53:02 +11:00
Andrew Tridgell 7b04747366 Rover: identify as a rover in MAVLink heartbeat message 2013-03-29 08:16:29 +11:00
Andrew Tridgell 829a000aa5 Rover: fixed sonar reset after the turn time
thanks to Tom for finding this
2013-03-29 08:08:14 +11:00
Andrew Tridgell a25fede6bb Rover: added range of sonar distances and voltages 2013-03-29 08:07:24 +11:00
Randy Mackay 6cb47cee6b Rover: add support for GPS fix type 2D 2013-03-27 11:41:58 +09:00
Andrew Tridgell c76f8a5242 Rover: fixed AUTO_KICKSTART GPIO pin handling 2013-03-22 12:31:35 +11:00
Andrew Tridgell a88ac50e6c Rover: log the X accel that triggers auto 2013-03-22 11:54:04 +11:00
Andrew Tridgell ed6d4a1495 Rover: fixed AUTO_KICKSTART parameter markup 2013-03-22 11:22:02 +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 0e8407ccbd Rover: put obstacle detection in a structure
easier to extend for multiple sonars
2013-03-22 07:41:36 +11:00
Andrew Tridgell 1c52de5f20 Rover: fixed GPS test (detection of uBlox needs 10Hz poll) 2013-03-21 22:45:29 +11:00
Andrew Tridgell 24094252fd Rover: only enter CLI is link is idle when 3 enters are hit
this will prevent binary contents of RADIO packets being interpreted
as CLI enter line-feeds
2013-03-21 21:58:12 +11:00
Andrew Tridgell 83d5a64ca8 Rover: change CLI timeout to 20s 2013-03-21 17:34:23 +11:00
Andrew Tridgell 89c85f9c5a Rover: added shell command in CLI test menu 2013-03-20 12:35:56 +11:00
John Stäck c9576e59f9 Add set command to setup menu (and changed show command), same as for ArduCopter. Not included when building for 1280. 2013-03-19 11:40:25 +09:00
Andrew Tridgell 4991ea73fe Rover: fixed CH_2 and CH_4 RC pass through
fixes issue #158
2013-03-18 18:06:45 +11:00
Andrew Tridgell bb14672dab Rover: fixed PX4 MPU6000 driver for rover 2013-03-16 19:47:09 +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 5ddbad6ccb Rover: remove scaling of voltage pin 2013-03-15 08:40:32 +11:00
Andrew Tridgell af141c2487 Rover: implement RSSI_PIN
route RSSI value from receiver to MAVLink
2013-03-15 08:08:35 +11:00
Andrew Tridgell 2294de85ac Rover: removed INPUT_VOLTS parameter
no longer needed
2013-03-08 10:01:51 +11:00
Andrew Tridgell cf2d99847e Rover: use voltage_average() interface 2013-03-03 16:16:01 +11:00
Andrew Tridgell fc0b50dd82 Rover: reduce throttle more directly
this gives better throttle control in turns and waypoints
2013-03-02 13:51:50 +11:00
Andrew Tridgell daa603552b Rover: added new STEERING mode
this makes it easier to tune for auto mode
2013-03-01 22:33:11 +11:00
Andrew Tridgell e228bbfebf Rover: implement SONAR_TURN_TIME
keep turning for at least that time
2013-03-01 22:33:11 +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 d0f27f8830 Rover: comment/maintainer cleanup 2013-03-01 12:32:48 +11:00
Andrew Tridgell 0873f8d00d Rover: cleanup some old code 2013-03-01 12:29:43 +11:00
Andrew Tridgell 3aeb836bc0 Rover: allow sonar test with sonar disabled
useful for initial config
2013-03-01 12:29:29 +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 4de635aa48 Rover: change sonar_dist to sonar_dist_cm
make units clearer
2013-03-01 07:43:51 +11:00
Andrew Tridgell 44a279811d Rover: removed old LITE mode
this will be replaced with a AHRS_Lite backend later
2013-03-01 07:40:47 +11:00
Andrew Tridgell c4e9d0961a Rover: updates for new dataflash API 2013-03-01 07:18: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 06dd6c2790 Rover: always build sonar code
can use enabled/disabled parameter for runtime control
2013-03-01 07:18:25 +11:00
Andrew Tridgell 36da75aacd Rover: fixes for new DataFlash API 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 52800e52b9 Rover: added 'level' CLI and reboot command 2013-02-22 07:49:07 +11:00
Andrew Tridgell 1cb9f71370 Rover: fixed comments 2013-02-22 07:48:52 +11:00
Andrew Tridgell 882f058e7d Rover: don't override declination on startup 2013-02-22 07:14:54 +11:00
Andrew Tridgell 06ccf8495b Rover: default magnetometer to enabled
will be disabled by auto-detect code if not attached
2013-02-22 07:14:38 +11:00
Andrew Tridgell b9a204419a Rover: removed obsolete files 2013-02-22 07:14:07 +11:00
Andrew Tridgell 7e4d4b07c3 Rover: change PX4 main baud rate back to 115200
we now use USB console
2013-02-22 07:03:52 +11:00
Andrew Tridgell 0f239ae92c Rover: reset AHRS trim after levelling 2013-02-20 11:56:38 +11:00
Randy Mackay b7a4814e22 Rover: integrate automatic roll and pitch trims 2013-02-19 13:31:03 +09:00
Andrew Tridgell 6cf4d11e33 Rover: cleanup parameter names and remove dead parameters 2013-02-09 20:36:26 +11:00
Michael Oborne c2fd7617e1 Send FS state to gcs for AR 2013-02-09 10:11:43 +08:00
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