Commit Graph

43491 Commits

Author SHA1 Message Date
Mark Whitehorn
7d33017c8a Tools: scripts: uploader.py: update --identify option 2020-08-14 11:53:58 +10:00
Pierre Kancir
fa4a01e8f9 autotest: copter: don't use raw reboot on fly_battery_failsafe() 2020-08-14 09:42:52 +10:00
Michael du Breuil
08d4e1c062 AP_GPS: Support configuring the SBF com port 2020-08-13 15:04:38 +10:00
Pierre Kancir
3c6d1a359a autotest: copter: catch exception on test_battery_failsafe to reset parameters 2020-08-13 12:09:23 +10:00
Pierre Kancir
5fe81706bb autotest: copter: catch exception on test_gcs_failsafe to reset parameters 2020-08-13 12:09:23 +10:00
Pierre Kancir
9c41462bf6 Tools: copter: correct flip test 2020-08-13 10:37:02 +10:00
Mark Whitehorn
d0ff26e782 autotest: expand quadplane AirMode autotest 2020-08-13 08:47:27 +10:00
Mark Whitehorn
ee65940dfa Plane: enable yaw in qstabilize:air_mode at zero throttle 2020-08-13 08:47:27 +10:00
Mark Whitehorn
4630e9af30 Plane: add Mode::is_vtol_man_mode
and make use of is_vtol_mode in in_vtol_mode
2020-08-13 08:47:27 +10:00
Mark Whitehorn
b9830f657a autotest: add quadplane airmode test 2020-08-13 08:47:27 +10:00
Mark Whitehorn
7d67151c87 RC_Channel: update Plane RC_Option metadata 2020-08-13 08:47:27 +10:00
Mark Whitehorn
e22d9398d3 Plane: add AirMode RC option for quadplanes
add Q_OPTION for AirMode (auto-enabled if RCx_OPTION ARMDISARM assigned)
    bugfix: manual throttle mix for qacro
    qualify auto airmode on/off
    add Air Mode to Plane RC_OPTION metadata
    restrict airmode to manual throttle modes
    add qhover to manual throttle mix
    move air_mode from Plane to QuadPlane
    add Mode::is_vtol_man_throttle()
2020-08-13 08:47:27 +10:00
chobits
c722367c6c AP_NavEKF3: move extNavVelNew to local variable 2020-08-12 15:40:38 +09:00
Josh Welsh
eb4b5fb720 AP_Airspeed: Add additional DLVR support 20inH2O 30inH2O 60inH2O 2020-08-12 08:02:49 +10:00
Peter Barker
0e284b95b0 GCS_MAVLink: move battery type enumeration out of parameters object 2020-08-11 13:21:52 +10:00
Peter Barker
26666b4b3d AP_HAL: move battery type enumeration out of parameters object 2020-08-11 13:21:52 +10:00
Peter Barker
2e3ba2a4d2 AP_BattMonitor: move battery type enumeration out of parameters object 2020-08-11 13:21:52 +10:00
Peter Barker
76e5ae9b41 Copter: move mavlink set-position defines into mavlink library 2020-08-11 09:52:52 +09:00
Peter Barker
65834234af AP_HAL_SITL: correct use of uninitialised value in tcp UARTDriver
In the case we already have a _listen_fd, sockaddr wasn't being
initialised before being printed to stdout.
2020-08-11 10:07:52 +10:00
Michael du Breuil
6dc77c97ce GCS_MAVLink: Remove redundant check for private channels
We can't learn the route for sending to a private channel, so we
shouldn't need to actually check it when iterating the routes.
2020-08-11 09:49:42 +10:00
Michael du Breuil
99ad126986 Plane: Fix redundant call to SpdHgt_Controller->get_land_airspeed() 2020-08-11 09:47:24 +10:00
Peter Barker
b3d755d018 AP_HAL_SITL: correct loop counter type 2020-08-11 09:19:14 +10:00
Randy Mackay
4009f1583f AP_Param: show_all compiler error fix 2020-08-10 19:26:20 +10:00
Randy Mackay
a66893a295 AP_Param: minor spelling fix 2020-08-10 19:26:20 +10:00
climr
918dfc13f7 Tools: Add Horizon31 PixC4 to board_types.txt 2020-08-10 13:33:32 +10:00
chobits
7ad9e3548f AP_NavEKF3: make reset source variable local 2020-08-10 09:43:28 +09:00
Randy Mackay
9e06b78fda Copter: minor formatting fix 2020-08-10 09:34:28 +09:00
Randy Mackay
8629923783 AP_Motors: minor whitespace fix 2020-08-10 09:33:43 +09:00
Josh Welsh
de9e9b90e5 Copter: Tradheli servo_test fix 2020-08-10 09:16:44 +09:00
Josh Welsh
e77bc1ce9d AP_Motors: Tradheli servo_test fix 2020-08-10 09:16:44 +09:00
Isaac Ault
e74acba4ec AP_HAL_Linux: Allow for parameters to be passed with -G, -H
All other work has been previously implemented, however when fetching
params these values were ignored.
2020-08-10 10:03:12 +10:00
Peter Barker
9cd5fdacfc Tools: autotest: add a test for motor test 2020-08-10 09:18:05 +10:00
Peter Barker
66e0afedb2 Copter: correct motor test order parameter description 2020-08-10 09:18:05 +10:00
Peter Barker
f0482935cc autotest: slow down simulation to avoid receiving re-request of item
# avoid a timeout race condition where ArduPilot re-requests a
        # fence point before we receive and respond to the first one.
        # Since ArduPilot has a 1s timeout on re-requesting, This only
        # requires a round-trip delay of 1/speedup seconds to trigger
        # - and that has been seen in practise on Travis

AT-0417.0: Sending item with seq=0
AT-0417.2: Got (MISSION_REQUEST {target_system : 243, target_component : 250, seq : 0, mission_type : 1})
AT-0417.2: Got (MISSION_REQUEST {target_system : 243, target_component : 250, seq : 0, mission_type : 1})
AT-0417.2: Exception caught: Traceback (most recent call last):
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/common.py", line 3950, in run_one_test
    test_function()
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4216, in test_poly_fence
    self.test_fence_upload_timeouts()
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4057, in test_fence_upload_timeouts
    target_component=target_component)
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4010, in test_fence_upload_timeouts_2
    self.expect_request_for_item(item)
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 3958, in expect_request_for_item
    raise NotAchievedException("Expected request for seq=%u" % item.seq)
NotAchievedException: Expected request for seq=1

The "AT" timestamps there are wallclock time.  Since speedup for Rover
is 8 by default, that could be as much as 1.6 seconds meaning a
re-request from ArduPilot would be legitimate.

I've added some debug, too - we now emit "Sending item with seq=1"
between those two "Got" lines.  That should make the problem clearer -
we've received a re-request rather than a request for the item after the
one we've already sent.
2020-08-09 20:13:27 +10:00
Alexey Bulatov
7baafcd63d AP_Notify: set led_off instead 0
Led off value can be differ from 0 if indication is
inverted.
2020-08-09 13:58:27 +10:00
Michael du Breuil
376494027b Copter: Support higher resolution percent based motor tests 2020-08-09 13:47:48 +10:00
Iampete1
997ffcf30d AP_GPS: NMEA: only decode each measage once 2020-08-09 11:37:16 +10:00
Patrick José Pereira
e1b6ef3e14 AP_BARO: Fix zero as nullptr in KellerLD
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-08-09 10:12:16 +10:00
mhefny
e137698a4a AP_HAL_Linux: Fix RCInput_RPI Segmentation Fault 2020-08-08 10:01:57 -07:00
Tsuyoshi Kawamura
67ad05609f AP_Scripting: add proximity bindings 2020-08-07 17:32:16 -07:00
Tsuyoshi Kawamura
e2eed88ca3 AP_Scripting: add rangefinder bindings 2020-08-07 17:32:16 -07:00
Randy Mackay
b66eaa0d53 AP_Winch: fix type parameter description 2020-08-07 21:55:07 +09:00
Randy Mackay
6bc2bea329 AP_Winch: rename Servo to PWM 2020-08-07 21:55:07 +09:00
Randy Mackay
48d27e1016 Copter: fixup winch comment 2020-08-07 21:55:07 +09:00
Randy Mackay
b84423c110 AP_Winch_Daiwa: fixes from peer review
simplify constructor
init calls backend init
fixup parsing to remove unnecessary INT32_MAX/MIN check
fixup comments
2020-08-07 21:55:07 +09:00
Randy Mackay
a6c8bb06ff AP_Winch: fixes from peer review
removed init method
constify now_ms
fixed release_length method comment
fixup sprintf
2020-08-07 21:55:07 +09:00
Randy Mackay
09bf76d9a4 RC_Channel: correct winch switch comment 2020-08-07 21:55:07 +09:00
Randy Mackay
a2224f066a Copter: winch enabled with hal-minimize-features 2020-08-07 21:55:07 +09:00
Randy Mackay
54b714a24e Copter: implement send_winch_status 2020-08-07 21:55:07 +09:00
Randy Mackay
f607ff28b3 Copter: integrate winch arming checks 2020-08-07 21:55:07 +09:00