Commit Graph

24350 Commits

Author SHA1 Message Date
priseborough
635826c056 AP_NavEKF2: Fix reporting of terrain estimator innovations
Terrain height is relevant whenever optical flow data is present
2016-10-10 14:49:35 +09:00
priseborough
b0072b587c AP_NavEKF2: fix reporting of optical flow use status 2016-10-10 14:49:24 +09:00
priseborough
ed9ecb28fb AP_NavEKF2: Enable entry into relative position mode on start-up 2016-10-10 14:49:21 +09:00
priseborough
e0b8c54194 AP_NavEKF: Update GPS type parameter description 2016-10-10 14:49:18 +09:00
priseborough
f9018fcc1b AP_NavEKF2: Enable simultaneous optical flow and GPS use
Enables simultaneous use of GPS and optical flow data with automatic fallback to relative position mode if GPS is lost and automatic switch-up to absolute position status if GPS gained/re-gained.
2016-10-10 14:49:02 +09:00
murata
f135ca5ae7 Copter: reduce repeated string constants 2016-10-10 12:17:12 +09:00
Andrew Tridgell
af5a2ea0c6 mavlink: submodule update 2016-10-10 14:15:54 +11:00
Randy Mackay
3b6e56d1a0 Copter: minor formatting fixes
No functional change
2016-10-10 12:11:14 +09:00
murata
61fa73f25d Copter: remove return after the Switch statement 2016-10-10 12:07:24 +09:00
priseborough
ab55991b33 AP_NavEKF2: Report position jumps due to lane switches
Also moves code required to update reset data due to lane switches into separate functionscto improve readability.
2016-10-10 11:56:14 +09:00
Randy Mackay
337461c16c Copter: pre-arm check of GPS configuration 2016-10-10 10:52:54 +09:00
Peter Barker
068c310ed5 Tools: remove hard-coded FRAME global, specify same via parameter 2016-10-10 11:09:47 +11:00
Fnoop
2c0b687b9d Tools: Make default udpout ports scale by instance in sim_vehicle.py 2016-10-09 21:49:45 +11:00
Fnoop
02f49398be Added name to GIT_Success.txt 2016-10-09 21:09:31 +11:00
murata
57c61ace62 Copter: To remove a break after the return statement. 2016-10-08 13:55:18 -03:00
Andrew Tridgell
2b144d5c3d Plane: allow rudder arming in CRUISE and FBWB modes 2016-10-08 08:01:55 +11:00
murata
b3eecb87ac Plane: To define the same wording. 2016-10-06 10:03:23 -07:00
Andrew Tridgell
c6846062ca mavlink: submodule update 2016-10-06 15:20:23 +11:00
murata
1ece4b6f53 Rover: To add a judgment of 0 degrees longitude. 2016-10-05 08:27:14 -03:00
murata
7148cc6239 Copter: Return value is changed to Enum Value. 2016-10-05 08:25:15 -03:00
murata
60137e0f0b Copter: replace if statement with switch statement 2016-10-05 16:32:57 +09:00
Jonathan Challinger
a393bd26d7 Copter: add stick gesture to begin compass calibration 2016-10-05 16:29:02 +09:00
murata
36b5d43efb AC_Avoid: delete variable that is only used once in a simple calculation 2016-10-05 16:25:57 +09:00
Andrew Tridgell
cb61840ad2 Plane: tell TECS to use synthetic airspeed during transition 2016-10-05 11:52:52 +11:00
Andrew Tridgell
2fab15dcd5 AP_TECS: added use_synthetic_airspeed() API
used by quadplane during transitions
2016-10-05 11:52:34 +11:00
murata
eec491a1f9 Rover: To add a judgment of 0 degrees longitude. 2016-10-04 12:54:55 -03:00
Andy Little
0d113b265c Examples: fix examples for px4
The change to use AP_BoardConfig messed up the examples. Here are some
updated but there are plenty more to do.
2016-10-04 12:50:47 -03:00
murata
467da77c77 AntennaTracker: To add a judgment of 0 degrees longitude. 2016-10-04 08:29:37 -07:00
murata
2f18d1de73 Plane: To add a judgment of 0 degrees longitude. 2016-10-04 08:15:23 -07:00
Andrew Tridgell
41f2450bf4 mavlink: submodule update 2016-10-04 17:38:34 +11:00
Andrew Tridgell
4fc8d99cdf mavlink: submodule update 2016-10-04 13:32:56 +11:00
Murilo Belluzzo
0b86532b5c Global: Remove '\r' character from all source code files 2016-10-03 22:13:27 -03:00
Andrew Tridgell
1fc4a6b19f PX4Nuttx: submodule update
fixes for int mix/max macros
2016-10-04 10:34:28 +11:00
Lucas De Marchi
7b981ff83b mavlink: submodule update 2016-10-03 12:32:17 -03:00
Julien Beraud
714c8fd318 AP_InertialSensor_MPU6000: Add support for fsync bit for Bebop
Already present on Disco
2016-10-03 12:20:03 -03:00
Andrew Tridgell
4e017bf5b3 Plane: fixed loiter mode when Q_GUIDED_MODE=1
This fixes the fixed wing behaviour of LOITER mode whne
Q_GUIDED_MODE=1.

Many thanks to the PertUAV team for finding and reporting this bug
2016-10-01 08:37:17 +10:00
Lucas De Marchi
0f000efc6f ArduPlane: Fix use of logical op instead of bitwise op
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
     uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
                                     ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Lucas De Marchi
b24d850695 ArduCopter: Fix use of logical op instead of bitwise op
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
     uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
                                     ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Lucas De Marchi
b4a3e8a9c9 APMrover2: Fix use of logical op instead of bitwise op
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
     uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
                                     ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Lucas De Marchi
0ad3b0421f waf: let wrapper exit with error
It's not useful to raise an excpetion because it will only report the
command called exit with an error. Just return an error code instead of
rasing an exception. This way we get nicer error messages:

    ./waf unknowncommand
    No function unknowncommand defined in /home/lucas/p/dronecode/ardupilot/wscript

vs

    ./waf unknowncommand
    No function unknowncommand defined in /home/lucas/p/dronecode/ardupilot/wscript
    Traceback (most recent call last):
      File "./waf", line 15, in <module>
        raise e
    subprocess.CalledProcessError: Command '['python', '/home/lucas/p/dronecode/ardupilot/modules/waf/waf-light', 'unknowncommand']' returned non-zero exit status 1
2016-09-29 10:21:36 -03:00
Andy Little
4b2eedac05 AP_HAL: Split the AP_HAL_Boards.h header into per board sub headers for legibility 2016-09-29 08:26:50 -03:00
Andrew Tridgell
841828541d Plane: fixed auto ICE engine cut in QLAND final 2016-09-29 05:18:55 +10:00
Tom Pittenger
3adf8c3e51 AC_AttitudeControl: comment odd math in get_att_target_euler_cd
degree(100) = 1 float multiplicaiton
vector3f * degree(100.0f)  = 4 float multiplications
degree(vector3f) * 100.0f  = 6 float multiplications and needs new degree(vector3f) function
degree(vector3f * 100.0f)  = 6 float multiplications and needs new degree(vector3f) function

These all come to the same conclusion but the one that is faster appears to be a bug but is mathematically correct.
2016-09-27 17:04:53 -07:00
floaledm
602b81a4d7 AP_Frsky_Telem: add ekf_status check 2016-09-27 09:20:32 -07:00
floaledm
27e977289a AP_AHRS: add the get_variances method found in AP_AHRS_NavEKF to AP_AHRS 2016-09-27 09:20:32 -07:00
Pierre Kancir
64a2fca812 Arduplane: simply invalid cmd msg 2016-09-27 07:45:48 -07:00
Pierre Kancir
6f79a8c37c Arducopter: simply invalid cmd msg 2016-09-27 07:45:48 -07:00
Pierre Kancir
c08584d219 APMrover2: simply invalid cmd msg 2016-09-27 07:45:48 -07:00
Pierre Kancir
04ee4141e0 ArduPlane: uniformize verify_command
Add all handle message,
Change MAV_CMD_NAV_ROI to MAV_CMD_DO_SET_ROI
Reformate comments,
2016-09-27 07:45:48 -07:00
Pierre Kancir
94e42e870e ArduCopter: uniformize verify_command
Add better gcs message,
Add all handle message,
Reformate comments,

Fix do_roi comment
2016-09-27 07:45:48 -07:00