Andrew Tridgell
751c3a554a
HAL_ChibiOS: added fmuv4-beta hardware definition
...
for an old pixracer quad I have (and I believe Peter has one too)
2018-04-07 09:10:29 +10:00
Andrew Tridgell
1fc0047fd9
AP_BLHeli: raise timout to 60s
2018-04-07 09:10:29 +10:00
Andrew Tridgell
6bdb523630
HAL_ChibiOS: guarantee 1kHz output for DShot
2018-04-07 09:10:29 +10:00
Andrew Tridgell
3daf27db64
AP_BLHeli: expanded test code
2018-04-07 09:10:29 +10:00
Andrew Tridgell
ee94d73e77
AP_BLHeli: added SERVO_BLH_TMOUT parameter
2018-04-07 09:10:29 +10:00
Andrew Tridgell
692f22c17f
HAL_ChibiOS: added GPIO assignments for revo-mini
2018-04-07 09:10:29 +10:00
Andrew Tridgell
0018e1f944
SRV_Channel: added set_disabled_channel_mask()
...
used by AP_BLHeli
2018-04-07 09:10:29 +10:00
Andrew Tridgell
ef539d4145
HAL_ChibiOS: added debug timing option for RCOut
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9aa5a97f26
AP_BLHeli: added test interface
...
and added delay on serial init
2018-04-07 09:10:29 +10:00
Andrew Tridgell
7d3cce98d0
AP_HAL: allow override of MS5611 name
...
for fmuv4-beta
2018-04-07 09:10:29 +10:00
Andrew Tridgell
af1e3aa64d
HAL_ChibiOS: increase timeout on bytes for blheli
2018-04-07 09:10:29 +10:00
Andrew Tridgell
756c0d4b0b
HAL_ChibiOS: fixed reset for oneshot
...
after a BLHeli connection we need to go back to 1Hz on timer
2018-04-07 09:10:29 +10:00
Andrew Tridgell
b0442d1c5c
AP_BLHeli: fixed build for rover
...
only plane and copter have AP_Motors for motors mask
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9a29c6d3b5
HAL_ChibiOS: implement DigitalSource()
2018-04-07 09:10:29 +10:00
Andrew Tridgell
c2adc26051
AP_RPM: support RPM pin input on ChibiOS
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9942934f0d
AP_HAL_PX4: added IRQ save/restore to hal.scheduler
...
these are used by RPM driver
2018-04-07 09:10:29 +10:00
Andrew Tridgell
51c40a013b
HAL_ChibiOS: added IRQ save/restore to hal.scheduler
...
these are used by RPM driver
2018-04-07 09:10:29 +10:00
Andrew Tridgell
d2075b4b67
AP_HAL: added irq save/restore API to hal.scheduler
...
these are used by RPM driver
2018-04-07 09:10:29 +10:00
Andrew Tridgell
54185af8ef
AP_BLHeli: removed test code
...
not needed any more, and no longer compiles
2018-04-07 09:10:29 +10:00
Andrew Tridgell
019049e76b
HAL_ChibiOS: fixed RC period setting
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9ba3992d9e
AP_BLHeli: added SERVO_BLHI_AUTO option
...
makes choosing motor mask much easier for multicopters
2018-04-07 09:10:29 +10:00
Andrew Tridgell
fd3037bbb7
GCS_MAVLink: add support for alternative protocol
...
this allows an alternative to MAVLink to be installed on a GCS
port. This is used for BLHeli passthru support
2018-04-07 09:10:29 +10:00
Andrew Tridgell
d258eac88d
HAL_ChibiOS: fixed reconfig of group after serial_end()
2018-04-07 09:10:29 +10:00
Andrew Tridgell
46c76c3d5d
HAL_ChibiOS: increase serial byte timeout
...
needs 2ms for final ack in verify
2018-04-07 09:10:29 +10:00
Andrew Tridgell
202a7dd091
HAL_ChibiOS: don't allow dshot while serial active
2018-04-07 09:10:29 +10:00
Andrew Tridgell
b350b07593
HAL_ChibiOS: allow internal GPIO fuctions to use disabled pins
2018-04-07 09:10:29 +10:00
Andrew Tridgell
1be41b83fc
SRV_Channel: added SERVO_BLHI_ parameters
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a1a83ab768
AP_BLHeli: added ESC serial protocol implementation
...
this implements the MSP and BLHeli protocols for passthru control of
BLHeli ESCs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
67bae2669b
HAL_ChibiOS: enable serial5 on fmuv3
2018-04-07 09:10:29 +10:00
Andrew Tridgell
382772d999
HAL_ChibiOS: initial support for ESC serial output
2018-04-07 09:10:29 +10:00
Andrew Tridgell
dcfec21b46
AP_HAL: added support for serial output to ESCs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
80a1688361
AP_Motors: make a singleton
...
this is used by AP_ESCSerial
2018-04-07 09:10:29 +10:00
Andrew Tridgell
17f2f40b11
AP_Math: added xmodem CRC
...
used by blheli 4-way ESC protocol
2018-04-07 09:10:29 +10:00
Andrew Tridgell
2933d4dd35
HAL_PX4: handle MODE_PWM_NONE enum
2018-04-07 09:10:29 +10:00
Andrew Tridgell
3c5c77889c
HAL_VRBRAIN: fixed build with DShot
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a9b4d37bd2
HAL_PX4: fixed build with DShot
2018-04-07 09:10:29 +10:00
Andrew Tridgell
26d279e165
HAL_ChibiOS: improve DShot timing accuracy
2018-04-07 09:10:29 +10:00
Andrew Tridgell
93111dc0b1
HAL_ChibiOS: ensure that IO UART gets DMA
2018-04-07 09:10:29 +10:00
Andrew Tridgell
bd9df6d0ec
AP_Motors: added DShot to parameter docs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
95a261e061
HAL_ChibiOS: don't generate DMA channels for ALARM pin
2018-04-07 09:10:29 +10:00
Andrew Tridgell
01e9c55721
HAL_ChibiOS: fixed SPI bus speed on SPI3
...
and add optional bootup test of SPI bus speeds to help with porting to
new MCUs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
5f29524a41
AP_Radio: fixed optimisation of AP_Radio drivers
2018-04-07 09:10:29 +10:00
Andrew Tridgell
e55d3a0834
AP_Motors: fix mask passed to rc_set_freq
...
the full motor mask must be supplied to work correctly for oneshot and
dshot
2018-04-07 09:10:29 +10:00
Andrew Tridgell
610a6a6c88
HAL_ChibiOS: optimise USB config driver
2018-04-07 09:10:29 +10:00
Andrew Tridgell
bc32276966
HAL_ChibiOS: support DShot output
...
use DMAR burst DMA to minimise number of DMA channels needed
thanks to betaflight for the great reference implementation!
2018-04-07 09:10:29 +10:00
Andrew Tridgell
294aac6955
HAL_ChibiOS: fixed CTS pulldown
...
we need to pulldown to prevent delays in uart sends
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a64819cbf2
HAL_ChibiOS: minimise DMA TX latency on contended UARTs
...
try to prevent long delays on other users of a DMA channel
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a86e85c6b2
HAL_ChibiOS: enable checking for DMA contention
2018-04-07 09:10:29 +10:00
Andrew Tridgell
0fb4e4720d
AP_HAL_VRBRAIN: added mask to set_output_mode()
...
this allows for some groups using dshot and some not
2018-04-07 09:10:29 +10:00
Andrew Tridgell
25cc73c1e7
AP_HAL_PX4: added mask to set_output_mode()
...
this allows for some groups using dshot and some not
2018-04-07 09:10:29 +10:00
Andrew Tridgell
4fb53d44f3
AP_HAL_F4Light: added mask to set_output_mode()
...
this allows for some groups using dshot and some not
2018-04-07 09:10:29 +10:00
Andrew Tridgell
2c84d77306
AP_Motors: setup for DShot output modes
2018-04-07 09:10:29 +10:00
Andrew Tridgell
e7dc304f4e
AP_HAL: support DShot output modes
2018-04-07 09:10:29 +10:00
Andrew Tridgell
64278f07d3
HAL_ChibiOS: removed the DMA channels from RCIN in hwdef.dat
...
no longer needed as this is automatic now
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9a5df6d1f7
HAL_ChibiOS: auto-generate DMA channels for RCIN
...
and add DMA channels for TIMx_UP ready for DMAR based DShot support
2018-04-07 09:10:29 +10:00
Andrew Tridgell
6aff7ecbf5
HAL_ChibiOS: added channel numbers for STM32F4xx MCUs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
da2e79130b
HAL_ChibiOS: generate channel numbers in DMA tables
2018-04-07 09:10:29 +10:00
Andrew Tridgell
3501763f4e
HAL_ChibiOS: added DShot example app
2018-04-07 09:10:29 +10:00
Randy Mackay
64be134f7b
GCS_MAVLink: add VISP logging
2018-04-06 11:13:28 +09:00
Tom Pittenger
f03c73aeff
AP_Terrain: compiler warning printing %u with signed value
2018-04-06 07:40:37 +09:00
Peter Barker
b77d4ad82a
AP_InertialNav: remove dead get_hagl method
2018-04-05 17:35:55 +09:00
Randy Mackay
a8857726d1
AR_AttitudeControl: replace get_steering_out_angle_error with heading
...
internally uses AHRS's heading to determine angle error so overally a non-functional change
2018-04-05 12:14:59 +09:00
Randy Mackay
4f0b26bd48
AP_L1_Control: update_waypoint gets dist_min argument
...
L1_dist can become extremely short for slow moving vehicles leading to unnecessarily jerk turns after passing waypoints. This reduces the minimum length along the track that the vehicle will point.
2018-04-05 12:14:59 +09:00
Randy Mackay
e6f8021519
AR_AttitudeControl: add angular accel and rate limits
...
This limits the change in desired turn rate to reduce impossible requests which should help avoid overshoot
Also add rotation rate limit to turn-rate controller
2018-04-05 12:14:59 +09:00
Peter Barker
3d84dfcc2e
DataFlash: remove unused ins error count logging
2018-04-04 14:21:20 +01:00
Peter Barker
c4ea83177f
AP_Scheduler: remove unused ins error count logging
2018-04-04 14:21:20 +01:00
Peter Barker
be634a893f
AP_InertialSensor: remove unused ins error count logging
2018-04-04 14:21:20 +01:00
Peter Barker
81044760c7
AP_NavEKF2: const accessors
2018-04-04 12:20:36 +01:00
Peter Barker
aca87ab638
AP_InertialSensor: remove pointless initialisations
...
AP_InertialSensor: avoid pointless zeroing in constructor
AP_InertialSensor is either in bss or is created via new (which zeroes
memory)
2018-04-04 12:14:02 +01:00
Peter Barker
355752ebb8
AP_AHRS: remove pointless initialisations
...
These are either in bss or new'd.
Saves ~130 bytes
2018-04-04 10:14:40 +01:00
Peter Barker
51991fdd76
AP_Proximity: fix compilation warning in LightWare driver
...
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp: In member
function ‘void AP_Proximity_LightWareSF40C::request_new_data()’:
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp:235:6:
warning:
‘__builtin___snprintf_chk’ output may be truncated before the last
format
character [-Wformat-truncation=]
void AP_Proximity_LightWareSF40C::request_new_data()
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from ../../libraries/AP_Common/AP_Common.h:179,
from ../../libraries/AP_HAL/UARTDriver.h:5,
from ../../libraries/AP_HAL/HAL.h:11,
from ../../libraries/AP_HAL/AP_HAL_Main.h:19,
from ../../libraries/AP_HAL/AP_HAL.h:8,
from
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp:16:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note:
‘__builtin___snprintf_chk’ output between 10 and 16 bytes into a
destination
of size 15
__bos (__s), __fmt, __va_arg_pack ());
^
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp: In member
function ‘bool
AP_Proximity_LightWareSF40C::send_request_for_distance()’:
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp:275:6:
warning:
‘__builtin___snprintf_chk’ output may be truncated before the last
format
character [-Wformat-truncation=]
bool AP_Proximity_LightWareSF40C::send_request_for_distance()
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from ../../libraries/AP_Common/AP_Common.h:179,
from ../../libraries/AP_HAL/UARTDriver.h:5,
from ../../libraries/AP_HAL/HAL.h:11,
from ../../libraries/AP_HAL/AP_HAL_Main.h:19,
from ../../libraries/AP_HAL/AP_HAL.h:8,
from
../../libraries/AP_Proximity/AP_Proximity_LightWareSF40C.cpp:16:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note:
2018-04-04 18:04:57 +09:00
Peter Barker
b7f1040dca
DataFlash: do not log beacon if it is disabled
2018-04-04 16:20:33 +09:00
Randy Mackay
f6cf52a748
AC_Loiter: move defines to cpp
2018-04-04 10:45:10 +09:00
Randy Mackay
757a35f3ba
AC_Loiter: consolidate sanity checks
2018-04-04 10:45:10 +09:00
Randy Mackay
9de73a994f
AC_Circle: add get distance and bearing to target
2018-04-04 10:45:10 +09:00
Randy Mackay
9426ee6df6
AC_WPNav: remove loiter
...
Loiter is in separate AC_Loiter class
2018-04-04 10:45:10 +09:00
Randy Mackay
0ba22a1feb
AC_WPNav: remove brake dependency on loiter
2018-04-04 10:45:10 +09:00
Randy Mackay
cc5ad7c004
AC_Loiter: loiter extracted from AC_WPNav
2018-04-04 10:45:10 +09:00
Alexey Bulatov
4d08ec8c85
AP_HAL: Edge: set storage directory to /edge/ardupilot
2018-04-04 09:29:16 +09:00
Francisco Ferreira
ac73fa9681
GCS_MAVLink: fix method shadowing
2018-04-03 16:29:33 +01:00
Peter Barker
4db9a5e6fe
AP_HAL_SITL: remove cast to signed type
...
... we're currently taking an unsigned type, casting it to a signed type
and then comparing the result of that to an unsigned type. That's
unhealthy.
2018-04-03 13:08:56 +01:00
Peter Barker
4fd2ec1cef
GCS_MAVLink: factor vehicle's mavlink send_heartbeat
2018-04-03 13:05:19 +01:00
Michael du Breuil
a21eb12f9e
AP_GPS: Correct HIL_GPS altitude conversion
2018-04-02 20:21:20 -07:00
Pierre Kancir
2b2c1e2d78
AP_NavEKF3: only use bcn EKF is the alignement as been completed
2018-04-03 09:55:13 +09:00
Pierre Kancir
44a21bc8ac
EKF3: correct acos to acosf
2018-04-03 09:54:45 +09:00
Pierre Kancir
48c5a9b9c5
AP_NavEKF3: style change in BCN mesurements
2018-04-03 09:54:43 +09:00
Pierre Kancir
4d2f2a2aad
AP_NavEKF3: correct flag in case of GPS disable
2018-04-03 09:54:41 +09:00
Peter Barker
1f862e8192
GCS_MAVLink: serial control: avoid nullptr dererences
2018-04-02 23:29:33 +01:00
Tom Pittenger
b864cd6ae6
AP_HAL_ChibiOS: include correct wrappers
2018-04-03 08:27:44 +10:00
Peter Barker
30f944b921
AP_AirSpeed: notify of calibration start
2018-04-02 23:25:05 +01:00
Peter Barker
d2ab76b2c6
GCS_MAVLink: calibrate airspeed sensor if it is present
2018-04-02 23:25:05 +01:00
Peter Barker
c6d7f5151a
GCS_MAVLink: tidy handling of barometer calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
1de68b78dc
AP_Barometer: tidy handling of barometer calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
d878690d00
GCS_MAVLink: move common calibration functions up
2018-04-02 23:25:05 +01:00
Peter Barker
2396a248ed
AP_InertialSensor: use ahrs singleton for simple accelcal
2018-04-02 23:25:05 +01:00
Peter Barker
f6b7ca75e9
GCS_MAVLink: allow Plane to override method so it can set calib. flag
2018-04-02 23:25:05 +01:00
Peter Barker
09d4e36970
GCS_MAVLink: handle preflight calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
c3e70e477d
GCS_MAVLink: avoid using global chan to uart mapping
...
This is an instance method, so it has a pointer to its own
uart
2018-04-02 23:04:24 +01:00
Peter Barker
3781d2f2eb
AP_SmartRTL: use ahrs singleton
2018-04-02 17:16:02 +01:00
Peter Barker
e33ce5eb48
AP_Follow: use ahrs singleton
2018-04-02 17:16:02 +01:00
Peter Barker
ac99d37bc1
DataFlash: correct logging interval of XKFD message
2018-04-02 14:12:09 +09:00
Peter Barker
32795f0a8f
AP_Param: correct possible use of nullptr during param count
...
::first can return nullptr
2018-04-02 14:12:09 +09:00
Peter Barker
ac283fb032
DataFlash: narrow enumeration to uint8_t to avoid narrowing-warnings
...
/home/pbarker/rc/ardupilot/libraries/DataFlash/LogFile.cpp:1571:32:
error: non-constant-expression cannot be narrowed from type 'enum
LogMessages' to 'uint8_t' (aka 'unsigned char') in initializer list
[-Wc++11-narrowing]
LOG_PACKET_HEADER_INIT(type),
2018-04-02 14:12:09 +09:00
Peter Barker
febcdd766b
AP_Math: narrow enumeration to uint8_t to avoid narrowing-warnings
...
/home/pbarker/rc/ardupilot/libraries/DataFlash/LogFile.cpp:361:25:
error: non-constant-expression cannot be narrowed from type 'enum
Rotation' to 'uint8_t' (aka 'unsigned char') in initializer list
[-Wc++11-narrowing]
orient1 : s0 ? s0->orientation() : ROTATION_NONE,
2018-04-02 14:12:09 +09:00
Peter Barker
2a274675f6
AP_AHRS: narrow enumeration to uint8_t to avoid narrowing-warnings
2018-04-02 14:12:09 +09:00
Peter Barker
871661c65f
SITL: SIM_Vicon: use existing channel for packing messages
...
Also correct sending of Vicon message; too many bytes were sent
2018-04-02 09:23:27 +09:00
Peter Barker
42547d2d6d
GCS_MAVLink: allow extra mavlink port for packing vicon messages
2018-04-02 09:23:27 +09:00
Peter Barker
7d271e0f3c
AP_HAL_SITL: check return value of setsockopt
2018-04-02 09:23:27 +09:00
Michael du Breuil
5bd4091976
AP_HAL_SITL: Protect against nullpointer dereference
2018-03-31 16:15:48 +09:00
Peter Barker
c627ed6ae3
RangeFinder: remove divide-by-zero possibility
2018-03-31 16:14:09 +09:00
Randy Mackay
57f2eb6853
AR_AttitudeControl: minor comment fix
2018-03-31 14:47:30 +09:00
Randy Mackay
032b4373f6
AC_WPNav: removed brake's unused dt calc
2018-03-31 13:42:59 +09:00
Michael du Breuil
334ff0fb66
AC_AttitudeControl: Prevent DCM fallback from triggering a flyaway
2018-03-31 13:40:52 +09:00
Randy Mackay
428682c8e9
GCS_MAVLink: fix handling of global_vision_position_estimate
2018-03-30 18:21:48 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
2f59572d42
AP_Beacon: Use multiplications instead of divisions in Marvelmind
2018-03-29 11:46:20 -07:00
Peter Barker
994e3e7092
SITL: SIM_Vicon: fix compiler warning
2018-03-29 16:45:34 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
24c1b0890d
AP_BattMonitor: NFC improve coments
2018-03-28 17:01:33 +09:00
Randy Mackay
bb9b866c7f
AP_BattMonitor: resolve compiler warning re init order
2018-03-28 15:08:54 +09:00
Randy Mackay
5215588ba0
AC_WPNav: remove unused set_desired_alt
...
also remove unused get_desired_alt
2018-03-28 15:08:42 +09:00
Peter Barker
ac1a00739c
GCS_MAVLink: remove msg_snoop functionality
...
inherit from GCS_MAVLink if you want to see mavlink traffic
2018-03-28 09:28:23 +09:00
Peter Barker
484d97597b
GCS_MAVLink: pass mavlink acks into accelcal library if it exists
2018-03-28 09:28:23 +09:00
Peter Barker
9ad058783a
AP_AccelCal: stop using mavlink_snoop for target traffic
2018-03-28 09:28:23 +09:00
Michael du Breuil
050b8ebb32
AP_Motors: Allow specifying which battery is used for compensation
2018-03-27 22:12:21 +01:00
Michael du Breuil
8dd55a85cd
SITL: Create a second voltage to monitor for battery voltages
2018-03-27 22:12:21 +01:00
Michael du Breuil
3f581d0479
AP_Frsky_Telem: Remove unneeded battery failsafe parameters
2018-03-27 22:12:21 +01:00
Michael du Breuil
4a11093ebb
AP_BattMonitor: Support critical and low battery failsafes
...
Also removes the example script, as it was broken, and causing more
headaches then it was worth
2018-03-27 22:12:21 +01:00
Michael du Breuil
98e327640d
AP_Motors: Use battery singleton
2018-03-27 22:12:21 +01:00
Michael du Breuil
c66d15efd7
AP_Compass: Read current for compensation from the battery singleton
2018-03-27 22:12:21 +01:00
Michael du Breuil
97fce557f5
GCS_MAVLink: Support AFS changes
2018-03-27 22:12:21 +01:00
Michael du Breuil
dab13f0e34
AP_AdvancedFailsafe: Allow GCS teriminate to supply a reason cause
2018-03-27 22:12:21 +01:00
priseborough
12fd19ea26
AP_NavEKF2: Clarify definition for gps_glitching flag
2018-03-27 20:28:57 +09:00
priseborough
5785523a0d
AP_NavEKF3: Clarify definition for gps_glitching flag
2018-03-27 20:28:56 +09:00
priseborough
d600a96809
AP_Notify: Clarify definition for gps_glitching flag
2018-03-27 20:28:56 +09:00
priseborough
6a91b294b4
AP_NavEKF: Clarify definition for gps_glitching flag
2018-03-27 20:28:54 +09:00
Peter Barker
08189e0754
SITL: add parameter for Vicon observation delay
2018-03-27 20:28:53 +09:00
Peter Barker
dfcf4788d3
SITL: add vicon-over-mavlink support
2018-03-27 20:28:52 +09:00
Peter Barker
85b41a8abb
AP_HAL_SITL: add vicon-over-mavlink support
2018-03-27 20:28:51 +09:00
Peter Barker
1151d76345
AP_HAL_SITL: sim: namespace for specifying SITL devices from cmdline
2018-03-27 20:28:50 +09:00
Peter Barker
a5a36c04d1
GCS_MAVLink: feed vision position data into AHRS
2018-03-27 20:28:49 +09:00
Paul Riseborough
c680b931dc
AP_NavEKF2: Enable fusion of external nav position data
2018-03-27 20:28:42 +09:00
Peter Barker
aae4ed2553
AP_AHRS_NavEKF: accept external position estimates into AHRS
2018-03-27 20:28:00 +09:00
Peter Barker
20412dc0db
AP_AHRS: accept external position estimates into AHRS
2018-03-27 20:27:59 +09:00
Peter Barker
0d77cfb6c3
SITL: method to return current vehicle location
2018-03-27 20:13:03 +09:00
Peter Barker
c343a286c5
AP_Math: quaternion: add contructor from float[4]
2018-03-27 20:13:03 +09:00
Randy Mackay
b2eeceb82d
AP_RSSI: add PH2 ADC to ANA_PIN param values
2018-03-27 14:20:57 +09:00
bnsgeyer
690e8fd3f4
AP_Motors: TradHeli - Changed RSC mode 3 to a spline fit throttle curve
2018-03-27 09:07:03 +11:00
bnsgeyer
600e0dac92
AP_Math: added support for cubic spline interpolation
2018-03-27 09:07:03 +11:00
Peter Barker
ca907a5078
AP_Notify: correct parameter documentation
...
This is causing parameter parsing to fail at the moment
2018-03-26 10:52:48 +09:00
Peter Barker
96d7eb6bed
DataFlash: handle log sending as part of periodic function
2018-03-26 09:22:47 +09:00
Andrew Tridgell
c311599e0a
HAL_ChibiOS: make DEFAULT_PARAMETERS relative to source root
2018-03-24 16:12:10 +11:00
ChristopherOlson
c39a802655
SRV_Channel:Servo Library - set allowable min value to 500 pwm uS
...
Mostly for helicopter and airplane that may be using 760uS centered servos
2018-03-24 09:52:28 +09:00
kozinalexey
5df2b1a3ac
chibios hal config for F4BY
2018-03-24 06:39:09 +11:00
Peter Barker
ed5140307a
GCS_MAVLink: move handling of visual odometry messages up
2018-03-23 09:28:07 +09:00
Peter Barker
2efd9341cd
AP_HAL_ChibiOS: copy the common linker script to outdir, use it from there
...
The directory we write the linker script to might not have the correct relative path to reference this common.ld script. So make it reference common.ld in the current directory and copy common.ld to the output directory
2018-03-23 11:06:24 +11:00
Andrew Tridgell
e02f753b01
AP_Notify: removed unused code
2018-03-23 09:36:31 +11:00
night-ghost
64c2e691f8
full system status on 2 LEDs + buzzer pin as parameter
2018-03-23 09:36:31 +11:00
Peter Barker
0a08bba437
GCS_MAVLink: eliminate AP_HAL::Print and AP_HAL::Stream
2018-03-23 08:12:38 +11:00
Peter Barker
6c7c916c78
AP_HAL: eliminate AP_HAL::Print and AP_HAL::Stream
...
Just *way* too many layers involved here
2018-03-23 08:12:38 +11:00
night-ghost
b54ac274f5
HAL_F4Light: added Revolution_SD board to rebuild script
2018-03-23 07:48:40 +11:00
night-ghost
d3bd5a5fb8
HAL_F4Light: Revolution_SD now works! Pinout in board's 1_read_me.md
...
also increased reliability of work with SD card on another boards
2018-03-23 07:48:40 +11:00
night-ghost
de9932f6e0
HAL_F4Light: latest fixes
2018-03-23 07:48:40 +11:00
night-ghost
b9dd569edd
HAL_F4Light: added support for DataFlash chips large than 128MBit
2018-03-23 07:48:40 +11:00
night-ghost
04dedd77d7
HAL_F4light: fixed 'instant reboot' modes
2018-03-23 07:48:40 +11:00
night-ghost
a3ebb5c069
HAL_F4Light: added support scripts for binaries with bootloader, fixed non-BL versions
2018-03-23 07:48:40 +11:00
Lucas De Marchi
cf3a9cddc8
AP_HAL_Linux: fix build error with flexible array
...
Apparently this code came in part from libuavcan that defines this
struct Control. They also had the same issue detailed on
https://github.com/UAVCAN/libuavcan/issues/116 .
The solution here is much simpler though: stick to the design of cmsg()
even if it's C. As per cmsg(3), use a union together with CMSG_SPACE().
2018-03-22 00:49:58 -07:00
Peter Barker
d5c57d949b
AP_Scheduler: eliminate goto update_spare_ticks
2018-03-22 10:01:45 +11:00
Peter Barker
badfde6f18
AP_Scheduler: use continue instead of nested-if (NFC)
2018-03-22 10:01:45 +11:00
Peter Barker
224ea50260
AP_Scheduler: continue in place of nested if (NFC)
2018-03-22 10:01:45 +11:00
Michael du Breuil
6652dd73e4
GCS_MAVLink: Correct sending SCALED_PRESSURE.press_diff
...
Closes #6642
2018-03-21 13:36:35 +00:00
Michael du Breuil
a46c60f4de
AP_Airspeed: Create a singleton
2018-03-21 13:36:35 +00:00
Nathan E
dcf127b73d
Compass: clarify compass orientation description
...
Resolves an error directing users to reference the flight controller (instead of the frame) for COMPASS_ORIENT.
Changed wing to side for all vehicles
2018-03-21 09:01:45 +09:00
Pierre Kancir
ff852de87b
AP_TempCalibration: fix FALLTHROUGH
2018-03-21 08:24:56 +09:00
Pierre Kancir
f66c83a59e
AP_HAL: fix FALLTHROUGH
2018-03-21 08:24:56 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
1a8a390d4c
AP_Beacon: Fix FALLTHROUGH in Marvelmind device driver.
2018-03-19 12:48:29 -07:00
Peter Barker
bed3f0c344
GCS_MAVLink: move handling of get_home_position up
2018-03-19 10:32:37 +09:00
Peter Barker
cc5af90d1a
AP_Arming: home state has moved to AP_AHRS
2018-03-19 10:32:37 +09:00
Peter Barker
3a5807ae56
AP_AHRS: move home_status into AP_AHRS
...
Storing home in the AHRS object but not its state is clearly evil.
Fix that.
2018-03-19 10:32:37 +09:00
Holger Steinhaus
8b8a99e1aa
AP_HAL_PX4: fix possible overflow/truncation issue
...
bus_id is declared to be a 5 bit value, so 2 digits are necessary for
string representation.
2018-03-17 16:32:56 +01:00
Holger Steinhaus
5af02dde59
AP_Proximity: fix possible overflow/truncation issue
2018-03-16 22:37:16 +01:00
Lucas De Marchi
43750d6f77
AP_SmartRTL: use ins singleton
2018-03-16 00:37:35 -07:00
Lucas De Marchi
daa8819619
AP_OpticalFlow: use ins singleton
2018-03-16 00:37:35 -07:00
Lucas De Marchi
8114db3fdc
AP_Module: use ins singleton
2018-03-16 00:37:35 -07:00
Lucas De Marchi
25490b6151
AP_Mission: use ins singleton
2018-03-16 00:37:35 -07:00
Lucas De Marchi
517f71c183
AP_AHRS: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
622be10163
AP_TempCalibration: do not take reference to ins
2018-03-16 00:37:35 -07:00
Peter Barker
f0daf392a5
AP_TECS: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
e2de9d62cd
APM_Control: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
3190974e4f
DataFlash: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
55b8a2288e
AP_NavEKF3: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
40957ec430
AP_NavEKF2: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
9f556197a0
AP_Mount: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
f0d06e7a9c
AP_Arming: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
1dabcc473d
AP_AHRS: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
7cc808543f
AC_Precland: use ins singleton
2018-03-16 00:37:35 -07:00
Randy Mackay
d0e6c4d08d
AC_WPNav: correct LOIT_MAXA param description
2018-03-16 13:50:57 +09:00
Randy Mackay
33f437a72c
AC_AttitudeControl: use multiply instead of divide
2018-03-16 13:50:57 +09:00
Leonard Hall
c53ba22daa
AC_AttitudeControl: add new rate only attitude control
2018-03-16 13:50:57 +09:00
Randy Mackay
21abe1194e
AC_WPNav: run horizontal position control at main loop rate
2018-03-16 13:50:57 +09:00
Randy Mackay
e9c23b538e
AC_Circle: run horizontal position control at main loop rate
2018-03-16 13:50:57 +09:00
Randy Mackay
ac82a37728
AC_PosControl: run horiz control at main loop rate
2018-03-16 13:50:57 +09:00
Randy Mackay
9e0a57eec7
DataFlash: minor formatting fixes
...
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
13007e2a07
AC_PosControl: dataflash logging of PSC message
2018-03-16 13:50:57 +09:00
Randy Mackay
5be1020578
AC_WPNav: use multiply instead of divide
...
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
69cfea4057
AC_PosControl: use float for local consts
2018-03-16 13:50:57 +09:00
Randy Mackay
b988a6ca08
AC_AttitudeControl: add units to INPUT_TC param desc
2018-03-16 13:50:57 +09:00
Randy Mackay
92b56c2c89
AC_WPNav: init_loiter_target always resets I term
...
This was only used by poshold and this has been removed as part of "new-loiter"
2018-03-16 13:50:57 +09:00
Leonard Hall
a356cfa529
AC_Circle: init resets desired velocity_xy
2018-03-16 13:50:57 +09:00
Leonard Hall
d104e3a3c0
AC_Circle: remove xy mode and limit angle to maintain alt
2018-03-16 13:50:57 +09:00
Leonard Hall
1c0678226c
AC_WPNav: new loiter including accel ff and braking
...
Includes:
sanity check loiter accel max vs lean angle max
increase loiter aggressiveness
remove loiter calls to pos_con.freeze_ff_xy
use loiter max velocity correction
remove xy mode from loiter
move predictor to angle
add maximum pilot commanded angle to loiter
loiter use alt hold angle limit
set_pilot_desired_acceleration accept dt
Also includes:
remove loiter jerk and setting pos-con jerk
breaking gain is based on VelxyP
Jerk limit Loiter breaking
change breaking parameters use jerk limit
add maximum distance correction in Loiter to 2m
update Loiter parameter defaults
2018-03-16 13:50:57 +09:00
Leonard Hall
c7c3dd561a
AC_WPNav: brake, wp and spline clear desired velocity_xy
2018-03-16 13:50:57 +09:00
Leonard Hall
6430b75224
AC_WPNav: remove xy mode from brake, wp, spline
2018-03-16 13:50:57 +09:00
Leonard Hall
c59dc21c8b
AC_WPNav: sanity check wp accel max vs lean angle max
2018-03-16 13:50:57 +09:00
Leonard Hall
dadc6a63c4
AC_PosControl: add set_leash_length_xy
2018-03-16 13:50:57 +09:00
Leonard Hall
e5bc2b26fe
AC_PosControl: add lean angle max
2018-03-16 13:50:57 +09:00
Leonard Hall
0f3645b061
AC_PosControl: increase velocity gains
2018-03-16 13:50:57 +09:00
Leonard Hall
7ec043502f
AC_PosControl: add accel limit to xy controller
2018-03-16 13:50:57 +09:00
Leonard Hall
bd13704f6f
AC_PosControl: update init for guided
2018-03-16 13:50:57 +09:00
Leonard Hall
85b7f06554
AC_PosControl: combine z position control into single method
2018-03-16 13:50:57 +09:00
Leonard Hall
993e638752
AC_PosControl: combine xy position control into single method
...
Also always limit lean angle to maintain altitude
2018-03-16 13:50:57 +09:00
Leonard Hall
74bb7616a7
AC_PosControl: add accel feedforward
...
also add limit_vector_length and sqrt_controller helper functions
enforce angle limits
rename accel-feedforward to accel-desired
remove freeze_ff_xy
remove unused VEL_XY_MAX_FROM_POS_ERR
remove xy mode
remove jerk limiting code including setters
limit_vector_length uses is_positive
Also modify formatting
2018-03-16 13:50:57 +09:00
Randy Mackay
9aa6415e1c
AC_AttitudeControl: use is_positive and is_negative
2018-03-16 13:50:57 +09:00
Randy Mackay
b3de52dc59
AC_AttitudeControl: minor comment fix
2018-03-16 13:50:57 +09:00
Leonard Hall
05418d3d29
AC_AttitudeControl: add EKF reset handling
2018-03-16 13:50:57 +09:00
Leonard Hall
8c45345863
AC_AttitudeControl: rename use_ff_and_input_shaping to use_sqrt_controller
...
Also rate controllers only use _rate_bb_ff_enabled flag to decide whether
to use ff for now
2018-03-16 13:50:57 +09:00
Leonard Hall
1e9e12e866
AC_AttitudeControl: rename heading_quad to yaw_vec_correction_quat
...
also rename flip_scalart local variable to feedforward_scalar
also add comments
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
59a2445ad3
AC_AttitudeControl: replace smoothing gain with INPUT_TC
2018-03-16 13:50:57 +09:00
Leonard Hall
e1e224b68b
AC_AttitudeControl: add angular velocity limit
2018-03-16 13:50:57 +09:00
Leonard Hall
ee82943f85
AC_AttitudeControl: add input_shaping_rate_predictor
2018-03-16 13:50:57 +09:00
Leonard Hall
6175a896ee
AC_AttitudeControl: add set smoothing gain
...
Smoothing gain value should be set once when entering a mode
2018-03-16 13:50:57 +09:00
Leonard Hall
213f7a4061
AC_AttitudeControl: add get_accel_roll/pitch/yaw_max_radss methods
...
Also constify existing get_accel_roll/pitch/yaw_max methods
2018-03-16 13:50:57 +09:00
Michael du Breuil
45410759dc
DataFlash: Log the frame a mission command is planned in
2018-03-16 09:28:20 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
54b3936a46
AP_Beacon: Use marvelmind beacon raw distances on the EKF
...
Add support for Marvelmind RAW distance measurements this
requires Marvelmind FW >= 5.77 and "Raw distances data" enabled
in the marvelmind GUI dashboard.
This is better than the previous workaround we had.
2018-03-16 08:23:52 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
29078824fc
AP_Beacon: Replace max_buffered_positions variable with a #define
2018-03-16 08:23:52 +09:00
Randy Mackay
89725a7aa5
AR_AttitudeControl: minor comment fix
...
non-functional change
2018-03-15 09:58:27 +09:00
Peter Barker
0652c89844
AP_Mount: use dataflash singleton
...
Closes #7550
2018-03-15 07:57:50 +09:00
Randy Mackay
d139f0e28e
AR_AttitudeControl: add get_stopping_distance
2018-03-14 12:40:04 +09:00
ChristopherOlson
96793a3ae7
AP_Motors:TradHeli - DDVP Ramp/Runup
...
Change to ramp and runup DDVP tail rotor to prevent torque pitching the frame and provide runup in sync with main
rotor like a mechanically driven tail.
Fix some comments and remove indents found in whitespace in AP_MotorsHeli.cpp and AP_MotorsHeli.h
2018-03-14 09:18:07 +09:00
Michael du Breuil
0e6213a4c6
Camera: Track number of completed events
...
Closes #3903
2018-03-13 00:00:56 +00:00
Peter Barker
1ef3e4ca97
DataFlash: make more dataflash message IDs available
...
No vehicle uses anything like 64 messages.
Moved all of the EKF messages up as a logical group.
2018-03-12 19:14:09 +09:00
Lucas De Marchi
1dd14a8aed
AP_UAVCAN: add can driver getter
2018-03-10 21:07:47 -08:00
Tom Pittenger
b1a4540359
Revert "AP_Airspeed: blending of several sensors and failure recognition"
...
This reverts commit 26c7614118
.
2018-03-09 13:12:05 -08:00
Eugene Shamaev
6954a0035a
SITL: SITL of several airspeed sensors
2018-03-09 11:27:20 -08:00
Eugene Shamaev
40e2d0d0c9
AP_HAL_SITL: SITL of several airspeed sensors
2018-03-09 11:27:20 -08:00
Eugene Shamaev
26c7614118
AP_Airspeed: blending of several sensors and failure recognition
2018-03-09 11:27:20 -08:00
LinJieqiang
c73e7f0cf3
add IST8310 compass sensors in AP_Compass.cpp
2018-03-09 11:25:35 -08:00
night-ghost
7fad79ca81
HAL_F4Light: fixed parameter's numbers for some boards
2018-03-09 11:15:12 -08:00
Lucas De Marchi
c4e8aeb105
AP_InertialSensor: remove linux-only include
...
We already include AP_HAL.h that includes the platform-agnostic gpio
header, which is all that this driver needs. This is an alternative
fix to #7794 .
2018-03-09 11:12:31 -08:00
Andrew Tridgell
53b76efbd2
AP_InerialSensor: setup INT_PIN_CFG correctly
...
this restores the behavior lost with the 20789 driver change
2018-03-08 21:25:14 -08:00
Peter Barker
ffcb9ce945
AP_TECS: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
a40943038e
AP_SmartRTL: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
82a68a82e6
AP_OpticalFlow: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
24ad36a7a3
AP_Module: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
beb85e49fb
AP_Mission: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
e9ecc11b00
GCS_MAVLink: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
735f671726
DataFlash: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
5da78ff17d
AP_TempCalibration: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
7b1a906c4e
AP_NavEKF3: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
5ab89324b2
AP_NavEKF2: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
8d8f2208c0
AP_Arming: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
747dbea476
AP_AdvancedFailsafe: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
024b29858d
AP_AHRS: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
02205a0cb3
AP_ADSB: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
0675f41d1e
AP_Baro: create AP::baro() function
2018-03-08 21:20:05 -08:00
Randy Mackay
54d8a4852f
AR_AttitudeControl: reduce steer rate P default to 0.2
2018-03-09 13:17:38 +09:00
Andrew Tridgell
e8726865ab
AP_InertialSensor: Correct scaling of batch data
2018-03-08 18:00:16 -08:00
Peter Barker
36fab0209e
AP_Declination: flake8 compliance for new generate script
2018-03-07 14:36:24 +00:00
Peter Barker
9d381c26a7
GCS_MAVLink: use AHRS singleton
2018-03-07 12:34:39 +00:00
Peter Barker
5b7d5a9757
AP_NavEKF2: mark getEulerAngles as const
2018-03-07 12:34:39 +00:00
Peter Barker
659ab06d3b
AP_AHRS: AP_AHRS gets a virtual get_hagl function, EKF marks it override
2018-03-07 12:34:39 +00:00
Peter Barker
ae3099ef4b
AP_ADSB: use AP::ahrs() singleton
2018-03-07 12:34:39 +00:00
Peter Barker
dc30197ca7
AP_AHRS: add AP::ahrs() singleton
2018-03-07 12:34:39 +00:00
night-ghost
72fab7d831
HAL_F4light: fixed board's 1_readme.md
2018-03-07 08:14:03 +11:00
night-ghost
f31b2421cc
HAL_F4Light: fixed tool scripts
2018-03-07 08:12:15 +11:00
night-ghost
ac40aa7b70
HAL_F4Light: updated OSD submodule
2018-03-07 08:12:15 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
8ae4047a00
AC_Avoidance: NFC small renames and comment improvements
2018-03-06 09:30:56 +09:00
night-ghost
99ed57f886
AP_HAL_F4Light: added readme to USB driver
2018-03-05 15:00:18 +00:00
night-ghost
a96378e7e4
AP_HAL_F4Light: removed some commented-out code
2018-03-05 15:00:18 +00:00
night-ghost
b371d24959
AP_HAL_F4Light: more comments translated, added support to rebot into DFU mode even in bootloader version
2018-03-05 15:00:18 +00:00
night-ghost
ba0cec9c05
AP_HAL_F4Light: small fix (NFC)
2018-03-05 15:00:18 +00:00
night-ghost
1224ddc16b
AP_HAL_F4Light: fixed some support scripts
2018-03-05 15:00:18 +00:00
night-ghost
d75491371d
AP_Param_Helper: HAL_F4Light parameters divided into common and board specific
2018-03-05 15:00:18 +00:00
night-ghost
5c0c3a0f08
AP_HAL_F4Light: parameters divided into common and board-specific,
...
added new parameter to reboot into DFU mode
2018-03-05 15:00:18 +00:00
night-ghost
0c179bfd6a
AP_HAL_F4light: comments translated to english
2018-03-05 15:00:18 +00:00
Andrew Tridgell
af8476ae08
AP_HAL: added DPS280 and FBM320 defines
2018-03-05 10:27:09 +00:00
Andrew Tridgell
667093023c
AP_Baro: added DPS280 barometer driver
2018-03-05 10:27:09 +00:00
Andrew Tridgell
5b7fe26f33
AP_Baro: added FBM320 driver
2018-03-05 10:27:09 +00:00
Randy Mackay
c1dbd67a9b
AP_Follow: library to track and follow another vehicle
2018-03-05 15:08:08 +09:00
Randy Mackay
be804aa74e
AC_Avoid: limit velocity and get-max-speed become public
...
this allows AP_Follow to use these function
2018-03-05 15:08:08 +09:00
Andrew Tridgell
f7751ec44a
AP_UAVCAN: reverted UAVCAN PR 7827
2018-03-05 14:16:54 +11:00
Andrew Tridgell
504e231ba2
AP_AHRS: reverted UAVCAN PR 7827
2018-03-05 14:16:54 +11:00
Andrew Tridgell
fd6185be0f
HAL_ChibiOS: fixed python3 pickle error
2018-03-05 09:50:27 +11:00
night-ghost
4d5b5b7fdd
AP_HAL_F4Light: fixed OSD compilation issue
2018-03-04 21:08:59 +11:00
night-ghost
67a3afbbbd
AP_HAL_F4Light: scripts to load & store EEPROM
2018-03-04 21:08:59 +11:00
night-ghost
99a3cd6de3
AP_HAL_F4light: two new boards: RevoMini with resoldered EEPROM and RevoMini with SD card adapter
2018-03-04 21:08:59 +11:00
Francisco Ferreira
ee8adf9073
AP_BattMonitor: fix build
2018-03-03 18:05:24 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
03019918cc
GCS_MAVLink: NFC adapt to new AP_Battery method name
2018-03-03 17:19:07 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
3632cd7588
DataFlash: NFC adapt to new AP_Battery method name
2018-03-03 17:19:01 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
7d8aeefee4
AP_Frsky_Telem: NFC adapt to new AP_Battery method name
2018-03-03 17:18:54 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
6cbeb73d1b
AP_BattMonitor: NFC rename functions and variables to match their functionality
2018-03-03 17:16:34 +00:00
Tom Pittenger
1ace5ac534
AP_UAVCAN: changed att and fix send timers to be 32bit
2018-03-03 12:59:14 +12:00