Andrew Tridgell
6aab9232ef
HAL_ChibiOS: enable aux pwm channels on FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
3242b5eeb9
AP_IOMCU: fail to boot if IO firmware CRC and update fails
...
we don't want to fly with a bad IO firmware
2018-06-06 07:15:41 +10:00
Andrew Tridgell
677b5f94b2
AP_BoardConfig: allow for non-bool BRD_IO_ENABLE
...
this will be used to avoid CRC checks for IO fw development testing
2018-06-06 07:15:41 +10:00
Andrew Tridgell
db9bf19e46
HAL_ChibiOS: enable i2c for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
99540a184c
AP_Compass: enable FMUv5 compass
2018-06-06 07:15:41 +10:00
Andrew Tridgell
77bb69fa2e
HAL_ChibiOS: enabled UARTs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
ac44189ab2
HAL_ChibiOS: setup two IMUs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
ccdfc75dd9
AP_Compass: placeholder for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
bfa66c9397
AP_InertialSensor: detect two IMUs on FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0047807fbf
AP_IOMCU: fixed build error on F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
721f3cd5d1
HAL_ChibiOS: fixed flash layout for F7
...
thanks to @alielectric
2018-06-06 07:15:41 +10:00
Andrew Tridgell
ae1a58ecb8
AP_Baro: added FMUv5 support
2018-06-06 07:15:41 +10:00
Andrew Tridgell
751f290be6
AP_BoardConfig: setup FMUv5 for board detection
2018-06-06 07:15:41 +10:00
Andrew Tridgell
01f5d1a17c
HAL_ChibiOS: first IMU working
2018-06-06 07:15:41 +10:00
Andrew Tridgell
eca634ec62
HAL_ChibiOS: support 6 SPI buses
2018-06-06 07:15:41 +10:00
Andrew Tridgell
4ad757b4d1
HAL_ChibiOS: fixed pincount for F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
876899c48d
HAL_ChibiOS: baro and FRAM working for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
8d2f57898b
HAL_ChibiOS: adjust pin counts for STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
1f6ffc48e5
HAL_ChibiOS: allow STM32F7 to build with flash driver
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0774a267c8
AP_HAL: added define for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
7c09a1781b
HAL_ChibiOS: started on fmuv5
2018-06-06 07:15:41 +10:00
Michael du Breuil
b331ddd49b
GCS_MAVLink: Remove some common wrappers, fix excessive FALLTHROUGH
2018-06-05 03:25:42 +01:00
Michael du Breuil
0fcf07fde7
RC_Channel: Remove input() method from individual channels
2018-06-05 09:51:09 +10:00
Michael du Breuil
1f1ba54990
AP_HAL_VRBrain: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
9c288df8d7
AP_HAL_SITL: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
dc4f1786f6
AP_HAL_F4Light: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
45a13c868b
AP_HAL_Empty: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
593da25a7a
AP_HAL_ChibiOS: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
4d83644bd6
AP_HAL_PX4: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
737c4ac36f
AP_HAL_Linux: Remove RC overrides
2018-06-05 09:51:09 +10:00
Michael du Breuil
627c7536f4
AP_HAL: Remove overrides interface
2018-06-05 09:51:09 +10:00
Michael du Breuil
4253c7f74d
RC_Channel: Move overrides out of the HAL
2018-06-05 09:51:09 +10:00
Peter Barker
e50a817150
GCS_MAVLink: make VFR_HUD always return height above MSL
2018-06-05 09:38:20 +10:00
murata
f0a6cd5846
AP_NavEKF3: Clarify the message
2018-06-04 11:32:15 +09:00
murata
1e011c0c15
AP_NavEKF2: Clarify the message
2018-06-04 11:32:15 +09:00
Peter Barker
dc202c1ff9
AP_Common: Location: use AP_AHRS singleton
2018-06-01 16:18:33 +01:00
Peter Barker
9a345160c1
AP_Common: fail attempts to use frame-above-home if home is not set
2018-06-01 16:18:33 +01:00
Peter Barker
69db7b040a
GCS_MAVLink: move try_send_message handling of EKF_STATUS_REPORT up
2018-06-01 16:12:45 +01:00
Peter Barker
4d944da530
AP_AHRS: add a singleton-getter cast into AP_AHRS_NavEKF
...
This will allow libraries which absolutely require the EKF to easily get
a cast copy of the singleton.
2018-06-01 16:12:45 +01:00
Michael du Breuil
fb99ea0446
AP_Rangefinder: Update WASP defaults
2018-06-01 15:08:35 +09:00
Randy Mackay
67475a9eaa
AR_AttitudeControl: reset turn-rate I term if not run for 0.2sec
2018-06-01 15:06:13 +09:00
Randy Mackay
99cf279dff
AP_RangeFinder: remove unused definitions from MaxSonarI2C
2018-06-01 15:06:13 +09:00
Randy Mackay
98e87db274
AP_RangeFinder: MaxsonarI2C reports no data after 300ms
2018-06-01 15:04:40 +09:00
Peter Barker
0baee6f82b
GCS_MAVLINK: avoid pushing partial RC_CHANNEL message into uart
...
In the case we do not send RC_CHANNELS_RAW, we will not check to see if
RC_CHANNELS will fit. RC_CHANNELS is larger than RC_CHANNELS_RAW, so the
check in the caller is insufficient.
2018-05-30 17:05:13 +01:00
Pierre Kancir
b615677223
HAL_SITL: implement reboot support
2018-05-30 18:48:53 +10:00
Pierre Kancir
7732b41186
AP_HAL_SITL: fix static member access through instance
2018-05-30 18:48:53 +10:00
Pierre Kancir
f986f1366f
AP_HAL_SITL: set close-on-exec flag on uart socket
2018-05-30 18:48:53 +10:00
Randy Mackay
e520d4fe42
AP_RangeFinder: Benewake TF02 and TFmini lidar driver
2018-05-30 11:16:35 +09:00
disgruntled-patzer
2c41db9e4d
AP_RollController.cpp: Updated description of ArduPlane Roll Controller for accuracy
...
AP_RollController's get_servo_out function does not return an elevator deflection as was previously described in the function comments.
Instead, it should return an aileron deflection. Thus, the function description should be updated to reflect this more accurately
2018-05-30 09:46:08 +09:00
Randy Mackay
e691b680ca
AR_AttitudeControl: add speed-control-active method
...
allows caller check if speed controller if active
also consolidated other methods to use this check to reduce a little bit of duplicate code
2018-05-29 16:37:31 +09:00
Randy Mackay
3b71d0360a
AR_AttitudeControl: const get_decel_max and get_stopping_distance
2018-05-29 16:37:31 +09:00
Peter Barker
19fd133ef8
SITL: correct compilation for transitive include fail
2018-05-29 14:42:02 +10:00
Peter Barker
1aaf7e96af
GCS_MAVLink: remove intermediate functions
...
GCS_MAVLink: remove comm_receive_ch
This is a lot of sanity checking in a static function which has been
called from a place where things are guaranteed
GCS_MAVLink: remove unused comm_is_idle
GCS_MAVLink: remove unused comm_send_ch
GCS_MAVLink: remove unused hal reference
GCS_MAVLink: remove unused #includes
2018-05-29 14:42:02 +10:00
Peter Barker
28b4794816
AP_Common: remove unused HomeState
2018-05-29 14:38:45 +10:00
Peter Barker
3cbb88ae20
AP_AHRS: split home-set and home-locked state
2018-05-29 14:38:45 +10:00
Peter Barker
d8871078ff
GCS_MAVLink: create persist_streamrates() callback to indicate persistence
...
Removes the catching of the message in each vehicle separately.
2018-05-29 13:08:29 +10:00
Peter Barker
879f250fac
GCS_Common: return airspeed sensor value in vfr_hud_airspeed
2018-05-29 13:00:40 +10:00
Peter Barker
d1174bcf70
GCS_MAVLINK: move try_send_message handling of vfr_hud up
2018-05-29 13:00:40 +10:00
Peter Barker
1331e6ca14
AP_Soaring: const some accessors
2018-05-29 13:00:40 +10:00
Michael du Breuil
abd5bffda5
AP_Airspeed: Clean up some comments, prevent a potential out of range access
2018-05-29 00:10:40 +01:00
Michael du Breuil
84b1a6a58b
APM_Control: Supress some compilier warnings about strncpy
2018-05-29 00:10:40 +01:00
Michael du Breuil
b2d8f6e788
AP_Rangefinder: Fix bad fallthrough from NMEA driver
2018-05-29 00:10:40 +01:00
Andrew Tridgell
08228efc72
AP_Rangefinder: fixed param docs for Wasp backend
2018-05-28 11:44:29 +01:00
Andrew Tridgell
3b8d5ea4cf
AP_Rangefinder: fixed param handling for Wasp backends
2018-05-28 11:44:29 +01:00
Michael du Breuil
b678302aed
AP_Rangefinder: Add WASP 200 LRF backend
2018-05-28 11:44:29 +01:00
Andrew Tridgell
a011561a6a
HAL_ChibiOS: support sdcard on MatekF405
2018-05-27 19:10:24 +10:00
Andrew Tridgell
ea37cede28
HAL_ChibiOS: stop sdcard interface on reboot
2018-05-27 19:10:24 +10:00
Andrew Tridgell
86ded2c40c
HAL_ChibiOS: cleanup sdcard API usage
2018-05-27 19:10:24 +10:00
Andrew Tridgell
d28283e302
AP_HAL: added clock_pulse() method to SPIDevice
...
this is used by SPI SDCard interface for HAL_ChibiOS
2018-05-27 19:10:24 +10:00
Andrew Tridgell
52c8d3ed9f
HAL_ChibiOS: fixed SPI select error
...
changes by sdcard PR
2018-05-27 19:10:24 +10:00
Andrew Tridgell
2c55589488
HAL_ChibiOS: added hwdef for MatekF405
2018-05-27 19:10:24 +10:00
Alexander Malishev
83e65b3c6e
HAL_ChibiOS: turn on sdcard on f4by
2018-05-27 19:10:24 +10:00
Alexander Malishev
66de6d770a
HAL_ChibiOS: Enable reentrancy on FatFS sybsystem
2018-05-27 19:10:24 +10:00
Alexander Malishev
6b15b2f44f
HAL_ChibiOS: Enable sdcard on spi bus
2018-05-27 19:10:24 +10:00
Andrew Tridgell
7b720aae46
HAL_ChibiOS: allow printf() to work on systems without debug console
...
map to hal.console once initialised
2018-05-26 19:06:25 +10:00
Andrew Tridgell
dbe0f3c575
HAL_ChibiOS: fixed assert in reboot
...
with asserts enabled we can't sleep with interrupts off
2018-05-26 17:23:46 +10:00
Andrew Tridgell
79ca1e76c0
HAL_ChibiOS: improve reliability of reboot
2018-05-26 15:53:25 +10:00
Andrew Tridgell
99ca0ea913
AP_BoardConfig: moved BRD_PWM_COUNT to common code
...
this allows all boards to configure some PWM outputs as GPIOs
2018-05-26 12:08:54 +10:00
Andrew Tridgell
7e897c16c0
HAL_ChibiOS: maintain rcout state beyond BRD_PWM_COUNT
...
allow channels beyond BRD_PWM_COUNT to be sent over SBUS or DShot
distribution
2018-05-26 12:08:54 +10:00
Pierre Kancir
0fd8d94924
SITL: Fix printf format warning
2018-05-26 09:13:29 +09:00
Pierre Kancir
053f124492
GCS_MAVLink: fix FALLTHROUGH warning
2018-05-26 09:13:29 +09:00
Michael du Breuil
d73c16698a
AP_BattMonitor: Update param docs to be more UX friendly
2018-05-26 08:49:02 +09:00
Pierre Kancir
9ada804489
AP_ADSB: fix snprintf warning
2018-05-25 12:54:25 -07:00
Randy Mackay
938dc2e47d
GCS_MAVLink: resolve compiler warnings correct_offboard_timestamp
...
applies only to SITL
2018-05-25 14:00:00 +09:00
Andrew Tridgell
fbd80ef897
AP_UAVCAN: fixed build on revo
2018-05-25 13:53:17 +10:00
Andrew Tridgell
91d2b19e23
AP_UAVCAN: use take_blocking() method
2018-05-25 13:53:17 +10:00
Andrew Tridgell
e2ea654b77
AP_HAL: added take_blocking() method
...
this avoids the need to check return result
2018-05-25 13:53:17 +10:00
Andrew Tridgell
49dfccbcee
AP_UAVCAN: fixed build of example on px4
2018-05-25 13:53:17 +10:00
Andrew Tridgell
92cda24659
AP_UAVCAN: efficiency improvements
...
this allows us to support 800Hz main loop rate with UAVCAN ESCs on
copter
2018-05-25 13:53:17 +10:00
Andrew Tridgell
438a7dd79a
AP_UAVCAN: increase message timeout to 2ms
...
this reduces the number of msg timeouts
2018-05-25 13:53:17 +10:00
Andrew Tridgell
b8ae43c30b
AP_UAVCAN: added a servo rate limit parameter
...
this allows for servos at 50Hz while keeping ESCs at higher rates
2018-05-25 13:53:17 +10:00
Andrew Tridgell
afb36ec168
HAL_ChibiOS: run can loop much more often
...
this allows for much higher ESC and servo rates, as it gives more
changes for frames to get out
2018-05-25 13:53:17 +10:00
Andrew Tridgell
0dc77421e8
AP_UAVCAN: a simple UAVCAN sniffer based on AP_HAL
2018-05-25 13:53:17 +10:00
Andrew Tridgell
5f8bff8f3e
AP_UAVCAN: set timeout for periodic msgs to 1
...
this stops us keeping messages for resend for too long, which fixes a
major memory leak
2018-05-25 13:53:17 +10:00
Tom Pittenger
4c51edfaca
AP_UAVCAN: move UAVCAN code from SRV to UAVCAN files
2018-05-25 13:53:17 +10:00
Tom Pittenger
1a15a2e749
SRV_Channel: move UAVCAN code from SRV to UAVCAN files
2018-05-25 13:53:17 +10:00
Eugene Shamaev
66438041ad
SRV_Channels: helper func
2018-05-25 13:53:17 +10:00
Eugene Shamaev
938f19c154
SRV_Channel: move push_UAVCAN to private
2018-05-25 13:53:17 +10:00
Eugene Shamaev
60db4016a7
AP_HAL_VRBRAIN: UAVCAN servo removal
2018-05-25 13:53:17 +10:00
Eugene Shamaev
94f8c81d84
AP_HAL_PX4: UAVCAN servo removal
2018-05-25 13:53:17 +10:00
Eugene Shamaev
1a888c16f4
AP_UAVCAN: Change for servo and ESC interface from RCOutput to SRV_Channels
2018-05-25 13:53:17 +10:00
Eugene Shamaev
afce24e45d
SRV_Channels: integration of UAVCAN Servos and ESCs
2018-05-25 13:53:17 +10:00
Eugene Shamaev
c410feefa1
AP_HAL: add CAN bus declaration for the intel aero board
2018-05-25 13:53:17 +10:00
Tom Pittenger
7134a4bdf6
AP_Avoidance: track src with correct label - use MAVLink label
2018-05-25 12:44:59 +09:00
timo
8cea9a3beb
HAL_F4Light: Fixed I2C initalization for Airspeed sensor on MatekF405CTR board
2018-05-25 12:06:49 +10:00
night-ghost
06da94dcea
HAL_F4Light: fixed non-inverted SBUS parsing
2018-05-25 12:06:49 +10:00
night-ghost
6d3a879219
HAL_F4Light: fixed ADC field description
2018-05-25 12:06:49 +10:00
night-ghost
7d6d9d4f3d
HAL_F4Light: changed pin definitions from #defines to enum
2018-05-25 12:06:49 +10:00
Alexander Malishev
47451be875
AP_RCProtocol: add support for non-inverted s-bus
2018-05-25 12:05:50 +10:00
Peter Barker
f668d0dc57
GCS_MAVLink: enhance TIMESYNC handling
...
GCS_MAVLink: use de-jittered timestamp for our timesync responses
GCS_MAVLink: periodically send timesync request packets
Currently no use is made of the result of these requests, however,
having the result present in telemetry logs will be useful data.
2018-05-25 11:36:17 +10:00
Michael du Breuil
3a62bca7d0
AP_HAL_ChibiOS: Make redefined pins an error, fix FMUv3
2018-05-25 09:57:18 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
8427b569b6
GCS_MAVLink: replace /* fall through */ with FALLTHROUGH;
2018-05-25 08:41:07 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
594911f0b4
DataFlash: replace /* fall through */ with FALLTHROUGH;
2018-05-25 08:41:07 +09:00
Lucas De Marchi
88dc17fe6e
AP_HAL_Linux: Storage: fix initialization
...
Use init() to lazily create/open storage directory and keep fd open
afterwards. This avoids duplicate code opening the storage in several
places.
2018-05-24 08:00:33 -07:00
Lucas De Marchi
1f3b7b5687
AP_HAL_Linux: Storage: fix writing garbage while creating file
...
By the time we create the storage we hadn't still initialized the
buffer. Remove the writes during storage creation since ftruncate() will
take care of the file size aspect and MAX storage write chunk is taken
care by Linux according to the media/fs that is there.
2018-05-24 08:00:33 -07:00
Lucas De Marchi
5526997d45
AP_HAL_Linux: Storage: prefer custom storage
...
If ardupilot was started with --storage-directory option, use that
directory to save/load parameters.
2018-05-24 08:00:33 -07:00
Lucas De Marchi
ff6e76ea6a
AP_HAL_Linux: add custom storage directory
2018-05-24 08:00:33 -07:00
Lucas De Marchi
9e538632b3
AP_HAL_Linux: use AP_HAL_STORAGE_DIRECTORY
...
Add mkdir_p implementation copied from kmod and create the directory
with all possible components.
2018-05-24 08:00:33 -07:00
Lucas De Marchi
a56106cccb
AP_HAL: use buildsystem for default directories
2018-05-24 08:00:33 -07:00
Lucas De Marchi
1e7ad72909
AP_HAL: use default storage for more boards
...
Boards from Emlid, Erle Robotics and BBB-like ones were agreed to be
changed #7100 . Here I'm also change some more, just because they appear
to be using the old default just because of copy and paste. We can
always revert back if we get complains and it seems something trivial.
Almost all boards now are using the the default path for logs, terrain
and params, except those that have restrictions to do so, like ones
using custom distros.
2018-05-24 08:00:33 -07:00
Randy Mackay
85efab1ec8
AP_RangeFinder: reduce MaxsonarI2C update to 10hz
2018-05-24 13:37:03 +09:00
Randy Mackay
fd2e5741ce
AP_RangeFinder: MaxsonarI2C formatting fixes
2018-05-24 13:37:00 +09:00
Randy Mackay
3f749051d3
AP_RangeFinder: NMEA sonar driver
2018-05-24 12:46:38 +09:00
Randy Mackay
a7fbfe7767
AR_AttitudeControl: caller provides dt instead of calculated internally
...
This allows the vehicle's main loop rate to be used instead of an internally calculated dt which suffers from jitter
2018-05-24 11:06:20 +09:00
Randy Mackay
c032095c80
AR_AttitudeControl: reduce default accel max to 2m/s/s
2018-05-24 11:06:20 +09:00
Randy Mackay
856d592b1d
AR_AttitudeControl: accel limit stops
2018-05-24 11:06:20 +09:00
Tom Pittenger
657f515f40
AP_ADSB: add cfg_out passthrough parsing
...
- add param ADSB_SQUAWK
- add param ADSB_RF_CAPABLE
2018-05-23 14:02:45 -07:00
Tom Pittenger
3653ba61d7
AP_Math: add is_valid_octal helper function.
...
returns true if valid
2018-05-23 14:02:45 -07:00
Karthik Desai
0a04a2a8c2
AP_Beacon_Marvelmind: Relax the precision of the position of Hedge
...
But we are conservative here and use 20cm instead (until MM provides us with a proper accuracy value)
2018-05-23 14:51:23 +01:00
Karthik Desai
4f26bc7cad
AP_Beacon_Marvelmind: Record the timestamp once, on success.
2018-05-23 14:51:23 +01:00
Karthik Desai
372fba2152
AP_Beacon_Marvelmind: Added some debug messages
2018-05-23 14:51:23 +01:00
Karthik Desai
64fdefe7cf
AP_Beacon_Marvelmind: Refactor variables
2018-05-23 14:51:23 +01:00
Karthik Desai
358b3d222b
AP_Beacon_Marvelmind: Simplify the Marvelmind structure.
...
This removes pointless pointer inits and removes the buffer.
The new incoming data is now injected as and when they are received by the driver.
2018-05-23 14:51:23 +01:00
Karthik Desai
8957111f26
AP_Beacon_Marvelmind: Remove unused variables
2018-05-23 14:51:23 +01:00
Karthik Desai
b0e4a57a93
AP_Beacon_Marvelmind: Remove unnecessary structures.
...
This incorporates the distance into the stationary beacon structure.
2018-05-23 14:51:23 +01:00
Karthik Desai
ad05a5c694
AP_Beacon_Marvelmind: Add function to find beacon's instance for the given address.
...
This function returns the instance number of a particular beacon's address.
It is needed because the MM sends the distances between the hedge and beacon in a random order so they have to be sorted by address before setting it.
The address of a beacon can be between 0 and 99.
2018-05-23 14:51:23 +01:00
Karthik Desai
fa575e2a9a
AP_Beacon_Marvelmind: Update the link to Marvelmind's repo
2018-05-23 14:51:23 +01:00
Peter Barker
63b0883b38
DataFlash: correct structures debug method
2018-05-23 19:12:15 +09:00
Peter Barker
1844ccdab8
DataFlash: correct labels for NKT1 and NKT2 messages
2018-05-23 19:12:15 +09:00
Peter Barker
e9d2be143a
GCS_MAVLink: moving sending of sim state up
2018-05-23 18:36:50 +10:00
Peter Barker
a137afd11b
SITL: add singleton
2018-05-23 18:36:50 +10:00
Ammarf
832778e471
AR_AttitudeControl: add separate decel limit
2018-05-23 17:17:29 +09:00
Peter Barker
b36f1c558d
DataFlash: use const char * rather than fixed array lengths in LogStructure
...
Previously tridge found that using const char * here meant that the
data segment (and thus RAM usage) would increase.
This doesn't seem to be a problem now.
2018-05-23 17:35:17 +10:00
Patrick José Pereira
b014b6c857
AP_Baro: Use SSL variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-23 02:36:43 +01:00
Patrick José Pereira
237101a50e
AP_Airspeed: Use SSL air density
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-23 02:36:43 +01:00
Patrick José Pereira
0c18b43351
AP_ADSB: Use SSL air pressure value
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-23 02:36:43 +01:00
Patrick José Pereira
1ca6647b2e
AP_Math: Create Standard Sea Level variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-23 02:36:43 +01:00
night-ghost
54ab0b9099
HAL_F4Light: updated OSD submodule
2018-05-23 08:04:31 +10:00
Pierre Kancir
43c6f87290
AP_Radio: fix fallthrough with ArduPilot macro
2018-05-22 15:25:00 +01:00
Andrew Tridgell
f3179e7934
HAL_ChibiOS: improved reliability of DShot passthru
...
thanks to WickedShell for debugging this on his Wraith32 ESCs. We were
truncating the last bit on some BLHeli transfers
2018-05-22 18:59:51 +10:00
Peter Barker
fe2d8f853b
GCS_MAVLink: add type-correctness for stream entries
2018-05-22 11:21:25 +10:00
Peter Barker
c5520cd995
GCS_MAVLink: eliminate MSG_LIMITS_STATUS
...
Only Sub used this, and it used it to send fence status, which we have a
separate ID for
2018-05-22 09:05:14 +09:00
Eugene Shamaev
9a22e11b92
AP_HAL: HAL_RCINPUT_WITH_AP_RADIO definition
...
Remove moved skyviper-v2450-px4 definitions
Co-authored-by: Francisco Ferreira <OXINARF@users.noreply.github.com>
2018-05-22 08:35:01 +09:00
Eugene Shamaev
31628ea52f
AP_Baro: functions declaration
...
Co-authored-by: Francisco Ferreira <OXINARF@users.noreply.github.com>
2018-05-22 08:35:01 +09:00
Eugene Shamaev
b260a6ca7c
GCS_Mavlink: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Eugene Shamaev
80859a9137
AP_HAL_PX4: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Eugene Shamaev
b3f355ae91
AP_Radio: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Eugene Shamaev
4ab2ff8c81
AP_HAL_ChibiOS: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Eugene Shamaev
7a67c82026
AP_BoardConfig: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Peter Barker
92927cd848
GCS_MAVLink: move try_send_message of servo-output-raw up
2018-05-21 19:08:08 +01:00
Andrew Tridgell
95df35f102
HAL_PX4: fixed build warnings
2018-05-21 15:02:34 +10:00
Andrew Tridgell
049e3ae02d
HAL_SITL: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
36ebb14b2e
HAL_PX4: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
b396b2a2e0
HAL_Linux: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
f983c8a906
HAL_F4Light: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
89898bae1d
HAL_ChibiOS: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
b887a1e893
AP_HAL: make receive_time_constraint_us non-const
...
needed to use available()
2018-05-21 14:53:18 +10:00
Andrew Tridgell
dcd7799ec9
HAL_ChibiOS: fixed DShot output on fixed wing
...
we need to mark the channels as 'fast' for DShot to enable properly
2018-05-21 13:31:00 +10:00
Andrew Tridgell
4e414c02f5
AP_Motors: use scaled actuators for single and coax frames
...
this allows for multiple servos with the same motor function
2018-05-21 13:04:13 +10:00
Andrew Tridgell
216bab4de4
AP_Motors: fixed default motor functions for single and coax copter
...
should be enabling motors 5 and 6 to match docs and SITL
2018-05-21 13:04:13 +10:00
Randy Mackay
f6c06496e2
AR_AttitudeControl: fix accel limiting
2018-05-21 10:28:56 +09:00
Ammarf
a9ee949c32
AR_AttitudeControl: limit desired steering rate
2018-05-21 09:48:43 +09:00
Andrew Tridgell
8571e59d85
HAL_ChibiOS: fixed SBUS inversion for KakuteF4
2018-05-20 15:50:44 +10:00
Peter Barker
0ca888d52a
GCS_MAVLink: move sending of POSITION_TARGET_GLOBAL_INT up
2018-05-18 20:26:37 +10:00
Peter Barker
2c962afe98
AC_WPNav: add get_wp_destination to get a Location_Class for the wp
2018-05-18 20:26:37 +10:00
Peter Barker
da40ebaf70
GCS_MAVLink: use relative altitide from ahrs.get_relative_position_D_home()
...
This will return a barometer height if the EKF is not available.
2018-05-17 15:48:06 +01:00
Peter Barker
4440f7ec4a
GCS_MAVLink: move sending of GLOBAL_POSITION_INT up to GCS_MAVLINK
2018-05-17 15:48:06 +01:00
Peter Barker
217fd73100
GCS_MAVLink: remove arguments to send_home and send_ekf_origin
2018-05-17 20:42:36 +10:00
Peter Barker
514bc5c21d
GCS_MAVLink: move send_attitude up to GCS_MAVLINK
2018-05-17 18:28:43 +10:00
Peter Barker
11e00f34b2
AP_TemperatureSensor: remove pointless constructor
...
If you ever allocate on of these on the stack you're doing something
wrong
2018-05-17 15:37:14 +10:00
Peter Barker
7dd023744f
AP_TemperatureSensor: allow testing of temperature sending in SITL
2018-05-17 15:37:14 +10:00
Peter Barker
695c52be05
GCS_MAVLink: allow sub to override sending of scaled_pressure3
2018-05-17 15:37:14 +10:00
Peter Barker
c887a5c188
GCS_MAVLink: move try_send_message sending of scaled_pressure up
2018-05-17 15:37:14 +10:00
Peter Barker
8cb2b5809f
GCS_MAVLink: move try_send_message sending of sensor offsets up
2018-05-17 15:37:14 +10:00
Peter Barker
b51ec1d346
GCS_MAVLink: move try_send_message of RAW_IMU up to GCS_MAVLINK
2018-05-17 15:37:14 +10:00
Peter Barker
a3a1967e05
AP_Compass: add AP::compass() singleton getter
2018-05-17 15:37:14 +10:00
Peter Barker
fc1775df75
GCS_MAVLink: handle setting of ekf origin in GCS_MAVLink
2018-05-17 10:13:42 +10:00
Peter Barker
9793703a76
AP_AHRS: move Log_Write_Home_And_Origin into AP_AHRS
2018-05-17 10:13:42 +10:00
Michael du Breuil
f6624cc8b2
AP_Airspeed: Use named float wrapper
2018-05-17 00:59:45 +01:00
Michael du Breuil
1b05a18b84
GCS_MAVLink: Wrap sending named float values
2018-05-17 00:59:45 +01:00
Francisco Ferreira
221ba177c5
DataFlash: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
8b32960d3e
AP_InertialSensor: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
6f210131ed
AP_HAL_QURT: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
5e821428a1
AP_HAL_Linux: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
695d92ddbf
AP_HAL: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
5fc7da0e83
AP_GPS: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
0a3af28d17
AP_Compass: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
f8756fac6b
AP_Common: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Francisco Ferreira
de73ab6472
AP_Baro: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
Michael du Breuil
805e9519d1
GCS_MAVLink: Send rangefinder data
2018-05-16 23:21:41 +01:00
Michael du Breuil
f8b10aaa53
AP_Proximity: Make singleton and add an interface to check what type is loaded
2018-05-16 23:21:41 +01:00
Michael du Breuil
7d6c3ec683
AP_RangeFinder: Make singleton
2018-05-16 23:21:41 +01:00
Michael du Breuil
9e551350a4
AP_RangeFinder: Remove unneeded state member
2018-05-16 23:21:41 +01:00
Michael du Breuil
03fc653e62
GCS_MAVLink: Don't rely on instance data from rangefinders
2018-05-16 23:21:41 +01:00
night-ghost
0be12dd471
AP_HAL_F4Light: support for UART timestamp API
2018-05-16 16:14:19 +01:00
night-ghost
7f6b994bc1
AP_HAL_F4Light: fixed OSD compilation
2018-05-16 16:14:14 +01:00
night-ghost
d28bac2b89
AP_HAL_F4Light: new board: OmnibusV3
2018-05-16 16:14:14 +01:00
night-ghost
3830cebddc
AP_HAL_F4Light: board AirbotV2: fixed build scripts
2018-05-16 16:13:27 +01:00
Michael du Breuil
53c66106d6
AP_GPS: Remove unneeded intilizers
...
saves 160 bytes on make px4-v2
2018-05-16 20:34:00 +10:00
Andrew Tridgell
0966e14ca5
DataFlash: fixed F4Light build with g++ 6.3.1
...
fixes conflict with select in compiler headers
2018-05-16 20:24:23 +10:00
night-ghost
b95bc6595c
HAL_F4Light: changes in I2C driver for Matekf405-CTR board
2018-05-16 18:55:29 +10:00
night-ghost
27b4fd5b50
HAL_F4Light: changed Readme for MatekF405-CTR board
2018-05-16 18:55:29 +10:00
night-ghost
37b16714cb
HAL_F4Light: preliminary support for MatekF405-wing board
2018-05-16 18:55:29 +10:00
night-ghost
f6ea053f19
HAL_F4Light: fixed RSSI issue on OSD
2018-05-16 18:55:29 +10:00
night-ghost
0b3514c519
AP_Baro: add support for BMP280 on alternate address
2018-05-16 18:55:29 +10:00
night-ghost
a948c281f6
HAL_F4Light: add support for external baro for Matek_F405 board
2018-05-16 18:55:29 +10:00
night-ghost
b2a4b76496
HAL_F4Light: add battery monitor defaults
2018-05-16 18:55:29 +10:00
night-ghost
ecafe263a6
HAL_F4Light: abort logging in case of filesystem errors
2018-05-16 18:55:29 +10:00
Andrew Tridgell
4e452c77f8
HAL_SITL: implement UART timestamp API
2018-05-16 18:49:22 +10:00
Andrew Tridgell
b8eeac41c8
HAL_Linux: implement uart timestamp API
2018-05-16 18:49:22 +10:00
Andrew Tridgell
f4f62ececa
GCS_MAVLink: take account of transport lag in vision timestamps
2018-05-16 18:49:22 +10:00
Andrew Tridgell
93cdb15aca
HAL_PX4: implement uart timestamp API
2018-05-16 18:49:22 +10:00
Andrew Tridgell
7005383f82
HAL_ChibiOS: implement uart receive timestamp API
2018-05-16 18:49:22 +10:00
Andrew Tridgell
f7a239d833
AP_HAL: added function for last receive timestamp on uarts
...
this is used for mavlink vision time estimates
2018-05-16 18:49:22 +10:00
Andrew Tridgell
1383e08273
AP_UAVCAN: change default ESC and servo bitmasks to 0
...
this is to address https://github.com/ArduPilot/ardupilot/issues/8166
2018-05-16 13:59:59 +10:00
bnsgeyer
b20ebc6540
AP_Motors: Tradheli- removes unnecessary code from swash servo trim bug fix
2018-05-16 09:22:44 +10:00
Andrew Tridgell
0078a68fbb
SITL: fixed segv when running examples under SITL
2018-05-15 13:36:41 +10:00
Andrew Tridgell
4ba5a368ff
SITL: adjust vicon simulated lag approach
2018-05-15 10:42:52 +09:00
Andrew Tridgell
ab9ef01889
GCS_MAVLink: added function for correcting offboard timestamps
2018-05-15 10:42:52 +09:00
Randy Mackay
436f514142
AP_Proximity: resolve compiler warning and format fix
2018-05-15 10:16:30 +09:00
Peter Barker
2d4d99e836
AP_Scheduler: remove unused log_dropped variable
2018-05-15 08:35:05 +09:00
mirkix
cb50639e27
AP_HAL_ChibiOS: add STM32F7 UART support
2018-05-15 07:23:56 +10:00
murata
494735db2e
AC_WPNav: Change the variable name according to the unit.
2018-05-14 16:38:47 +09:00
Michael du Breuil
636782375e
AP_Proximity: Revert an excessive scan introduced in #8375
...
Also removes 2 unneeded initilizers, and removes an unneeded runtime
check
2018-05-14 10:53:21 +09:00
Peter Barker
c92554001f
SITL: send buffer rather than mavlink msg on channel
2018-05-14 11:46:43 +10:00
Michael du Breuil
7e4972a061
DataFlash: Fix a false reporting of dead IO thread when millis() wraps
2018-05-14 10:11:32 +09:00
Michael du Breuil
703c7fb4b7
DataFlash: Remove unneeded inits and newlines
2018-05-14 10:10:38 +09:00
Alexander Malishev
7eb08bbd40
HAL_ChibiOS: Fix inverter on Omnibus F4 V3
2018-05-14 06:06:40 +10:00
Michael du Breuil
00c512c7e2
AP_Proximity: Small fixups to the rangefinder backend
2018-05-12 09:24:04 +09:00
Michael du Breuil
81e453dee3
AP_Arming: Restrict GPS/AHRS difference to a 2D solution
2018-05-12 09:11:05 +09:00
Andrew Tridgell
794ebe32e3
HAL_ChibiOS: fixed mixture of oneshot and normal PWM on IOMCU
2018-05-12 07:28:05 +10:00
Andrew Tridgell
219d429929
HAL_PX4: fixed oneshot125 on non-alt outputs
2018-05-12 07:28:05 +10:00
mirkix
00d4b5165d
AP_BattMonitor: fix pin order for PocketPilot
2018-05-12 07:17:44 +10:00
mirkix
85fe07f1f0
AP_Compass: enable probe HMC5843 for PocketPilot
2018-05-12 07:16:50 +10:00
mirkix
76802740cb
AP_HAL: fix PocketPilot HMC5843 I2C bus number
2018-05-12 07:16:50 +10:00
Peter Barker
75c8644fb5
AP_HAL_F4Light: call delay callback on scheduler instance
...
Also correct name of superclass method
2018-05-12 07:16:06 +10:00
Peter Barker
939aec090e
AP_HAL: allow F4Light to call delay callback
2018-05-12 07:16:06 +10:00
Michael du Breuil
9f10cd7195
AP_HAL_VRBrain: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
97696281ae
AP_HAL_SITL: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
299543bd35
AP_HAL_QURT: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
f9d1574f73
AP_HAL_PX4: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
517e20093e
AP_HAL_Linux: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
d54ef79798
AP_HAL_F4Light: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
b192c1c094
AP_HAL_Empty: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
72a4846f40
AP_HAL_ChibiOS: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
62f153c1b7
AP_HAL: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Michael du Breuil
c8a93f9b76
RC_Channel: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
Patrick José Pereira
04a4001e02
DataFlash: Remove unused variable
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Patrick José Pereira
c755d341f4
AP_RCProtocol: Remove unused variable
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Patrick José Pereira
f22f053c83
AP_Baro: Use C_TO_KELVIN
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:46:19 +10:00
Patrick José Pereira
cc590ee587
AP_Baro: Add BARO_TYPE_WATER model to SITL when running for ArduSub
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-10 16:05:58 -04:00
Patrick José Pereira
c7f832e81f
AP_Baro: Add SimpleUnderWaterAtmosphere function
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-10 16:05:58 -04:00
mirkix
178b5e03c0
AP_Notify: move BUZZER_PIN into AP_HAL
2018-05-10 17:48:25 +01:00
mirkix
34c96c80ff
AP_HAL_ChibiOS: rename BUZZER_PIN into HAL_BUZZER_PIN
2018-05-10 17:48:25 +01:00
mirkix
dfd2fb1841
AP_HAL: move BUZZER_PIN into AP_HAL
2018-05-10 17:48:25 +01:00
Randy Mackay
56672c1c28
AR_AttitudeControl: fix get_steering_out_rate use of max turn rate and acceleration
2018-05-10 20:37:28 +09:00
Randy Mackay
9feaf9cfdd
AR_AttitudeControl: const some internal variables
...
non-functional change
2018-05-10 20:37:28 +09:00
Andrew Tridgell
f8464577ac
Revert "SITL: Instance number change MavID"
...
This reverts commit 507f4d688b
.
This broke normal usage of sim_vehicle.py
2018-05-10 09:56:38 +10:00
Randy Mackay
e04de34014
GCS_MAVLink: add local time to VISP message
...
Adding both local and remote time is useful for providing support for this message because misaligned clocks lead to our EKF discarding the message
2018-05-10 08:29:30 +09:00
mirkix
95fbc222d5
AP_HAL_Linux: enable GPIOs for PocketPilot
2018-05-09 16:16:42 -07:00
mirkix
8c36635a8c
AP_HAL: LED GPIOs for final PocketPilot design
2018-05-09 16:16:42 -07:00
Randy Mackay
fa76a7c904
AR_AttitudeControl: get-steering-out-lat-accel uses negative speeds
2018-05-10 08:02:13 +09:00
Randy Mackay
5563691bd1
AR_AttitudeControl: assume positive steering output rotates vehicle clockwise
...
also remove steering scaling by speed which has been moved to AR_MotorsUGV
2018-05-10 08:02:13 +09:00
Peter Barker
347ab96bf0
GCS_MAVLink: move sending of battery data up
...
Also, use singleton to get battery object
2018-05-09 11:40:31 -07:00
Pierre Kancir
507f4d688b
SITL: Instance number change MavID
2018-05-09 22:00:42 +10:00
Peter Barker
417e9e9aaf
GCS_MAVLink: move data stream send up
2018-05-09 16:15:38 +10:00
Peter Barker
8d7fadfdfc
GCS_MAVLink: set _initialised as last thing
2018-05-09 16:15:38 +10:00
Peter Barker
864f41406d
AP_HAL_VRBRAIN: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
190bd18769
AP_HAL_SITL: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
31621ee21e
AP_HAL_QURT: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
83bb6e4a9a
AP_HAL_PX4: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
d5cad015dc
AP_HAL_Linux: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
f2d73bb9b0
AP_HAL_F4Light: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
ae56cbc302
AP_HAL_Empty: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
b2a81405ea
AP_HAL_ChibiOS: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
Peter Barker
0ad53e53eb
AP_HAL: move delay callback handling to base HAL Scheduler class
...
This allows us to move a lot of delay handling from vehicle classes into
HAL Scheduler.
The most notable improvement is that it moves the detection of recursion
into the Scheduler, out of each separate vehicle.
2018-05-09 16:15:38 +10:00
Andrew Tridgell
9fc451a615
AP_Beacon: fixed reference to -debug build directory
2018-05-09 14:17:32 +10:00
Peter Barker
b76fa57108
GCS_MAVLink: move try_send_message handling of RC_CHANNELS_RAW up
2018-05-08 12:33:32 +01:00
Peter Barker
ac2fe5f042
AP_RSSI: add singleton
2018-05-08 12:33:32 +01:00
Michael du Breuil
a47bda0b41
AP_BoardConfig: Fix param doc for BRD_SAFETYOPTION
2018-05-08 17:18:03 +10:00
Michael du Breuil
d819690426
DataFlash: Remove redundant state from MAVLink backend
2018-05-08 11:48:09 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
bce10f48af
Dataflash: Correct the DF_MAV_STATS time units
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
5de3382ab4
Dataflash: Replace ppm (pulses per minute) with PWM in the RC channels
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
4fd37d17f0
Dataflash: Fix AHR2.Alt multiplier
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
babef0def1
Dataflash: Fix some battery units and multipliers
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
a9ca471907
Dataflash: correct the multiplier factor of POS *Alt data
2018-05-08 10:38:40 +09:00
Peter Barker
5bf2fb186c
DataFlash: parameterise dataflash-over-mavlink cachesize
2018-05-08 09:36:01 +10:00
anbello
5b56887428
Changes to be committed:
...
modified: hwdef.dat
Modified as per @sh83 hints
2018-05-08 07:33:19 +10:00
anbello
93f551e56e
define for AirbotF4 board (ChibiOS HAL)
...
modified: libraries/AP_HAL/AP_HAL_Boards.h
new file: libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat
2018-05-08 07:33:19 +10:00
Peter Barker
eecdcacf3e
GCS_MAVLink: move sending of heartbeats up to GCS_MAVLINK
2018-05-07 11:30:13 -06:00
Peter Barker
e4b4a746e6
GCS_MAVLink: move try_send_message handling of VIBRATION up
...
Also, use singleton to get ins
2018-05-07 11:23:28 -06:00
Dr.-Ing. Amilcar do Carmo Lucas
9b9932ca9c
AP_GPS: Document septentrio RXERROR flags
2018-05-06 20:32:39 -06:00
Dmitri Ranfft
8fa281fa5b
RangeFinder: fixed a crash when VL53L0X was enabled in the software but not connected.
2018-05-07 11:47:39 +10:00
Alexander Malishev
776d5e6ba3
HAL_ChibiOS: Fixed s-bus signal polarity in SoftSigReaderInt.cpp
2018-05-07 11:46:35 +10:00
night-ghost
7601edfb87
HAL_F4Light: fixed boards definitions
2018-05-07 11:45:29 +10:00
night-ghost
4cffbf52d3
AP_COMPASS: fix MAG3110 driver
2018-05-07 11:45:29 +10:00
night-ghost
beecfcbae6
fix I2C on AirbotV2 board
2018-05-07 11:45:29 +10:00
Andrew Tridgell
d4d7d1f734
AP_Math: avoid double maths when not needed
2018-05-07 11:43:23 +10:00
Andrew Tridgell
c4fafa490f
AP_Avoidance: fixed use of fabs()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
27442e4a7b
AP_Declination: use floorf()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
553abda91c
AP_NavEKF3: use single precision ceilf()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
4404c95cc8
HAL_Linux: use ceilf()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
ce5db7b813
AP_Scheduler: fixed use of sqrt()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
a5fe798e7f
GCS_MAVLink: we don't need the conversion helpers
2018-05-07 11:43:23 +10:00
Andrew Tridgell
4e1d310959
AP_GPS: fixed use of pow()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
86e85a7089
AP_Baro: fixed build warning
2018-05-07 11:43:23 +10:00
Andrew Tridgell
14cf54b2f0
AP_FlashStorage: fixed build warning
2018-05-07 11:43:23 +10:00
Andrew Tridgell
7cff648f8a
StorageManager: fixed build warning
2018-05-07 11:43:23 +10:00
Andrew Tridgell
930d22daf9
AP_SmartRTL: fixed build warning
2018-05-07 11:43:23 +10:00
Andrew Tridgell
99884c89c9
AP_Scheduler: fixed build warning
2018-05-07 11:43:23 +10:00
Andrew Tridgell
61c8dfac31
AP_Math: split out double precision location functions
...
this allows ALLOW_DOUBLE_MATH_FUNCTIONS to be used
2018-05-07 11:43:23 +10:00
Andrew Tridgell
9766c4ed26
AC_AttitudeControl: fixed use of double precision maths
2018-05-07 11:43:23 +10:00
Andrew Tridgell
48e27ab242
AP_Landing: fixed use of double precision maths
...
and rename log() to Log() to prevent name collision with libm function
2018-05-07 11:43:23 +10:00
Andrew Tridgell
3b8ec3a2a0
AP_Math: allow double precision maths where needed
2018-05-07 11:43:23 +10:00
Andrew Tridgell
53d36c02ae
AP_GPS: enable double precision maths where needed
2018-05-07 11:43:23 +10:00
Andrew Tridgell
097632eeb3
AP_HAL: try to prevent use of double maths functions
...
this will help reduce the number of misuses of double precision maths
functions
2018-05-07 11:43:23 +10:00
Michael du Breuil
88ea7ac5fa
AP_GPS: Remove software check from SBF driver
2018-05-06 14:52:04 -06:00
Randy Mackay
ce44326ba8
AR_AttitudeControl: fix get_steering_out_heading while reversing
2018-05-06 16:58:00 +09:00
Peter Barker
efdf03e27d
AP_AdvancedFailsafe: remove rcmap member from AP_AdvancedFailsafe
2018-05-05 18:06:31 +09:00
Andrew Tridgell
dcab51801c
HAL_ChibiOS: implement boost_end
...
this fixes problems with main thread priority and SPI bus delays on
fmuv3
2018-05-05 07:45:53 +10:00
Andrew Tridgell
5ae410f7ca
AP_AHRS: called boost_end() on AHRS update
2018-05-05 07:45:53 +10:00
Andrew Tridgell
84a4f9dc96
AP_HAL: added boost_end() method to Scheduler API
...
this allows for a better method of controlling main thread priority
2018-05-05 07:45:53 +10:00
Lucas De Marchi
b1b4b66e65
AP_HAL_Linux: minlure: fix uart path
...
In some point in past it may have been ttyS2, but right now on kernel
4.16+ the UART is on ttyS5. We could do like is done for I2C and search
on sysfs, but it requires additional changes.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
b54b95de12
AP_HAL: minlure: search for specific I2C controller
...
The number can change from one kernel version to another and even from
one boot to another. Find the I2C controller on sysfs and stick to that,
like it's done for PCA9685.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
320db1d79b
AP_HAL_Linux: remove unused i2c devpaths
2018-05-04 11:47:04 -07:00
Lucas De Marchi
2000e17646
AP_HAL: move get_device() method from AP_HAL_Linux
...
This way it's possible to use the method in platform-independent code
without a need to up cast.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
4f2498947b
AP_HAL_Linux: remove redundant ifdef
...
CONFIG_HAL_BOARD_SUBTYPE should be set in the boards header.
2018-05-04 11:42:55 -07:00
Lucas De Marchi
904888fba7
DataFlash: Linux boards never use /fs
2018-05-04 11:42:55 -07:00
mirkix
0c353d2af0
AP_HAL_Linux: change PocketPilot to final baro sensor
2018-05-04 08:00:49 +10:00
mirkix
ee86418587
AP_HAL: change PocketPilot to final baro sensor
2018-05-04 08:00:49 +10:00
mirkix
598ae5c3f7
AP_HAL_Linux: PocketPilot: change pru to final design
2018-05-04 08:00:49 +10:00
Francisco Ferreira
483048398e
AP_Relay: document BB Blue pin options
2018-05-03 15:35:28 +01:00
Andrew Tridgell
5854ccbb4c
HAL_ChibiOS: removed stray debug code
...
thanks to @alielectric for noticing
2018-05-03 17:04:14 +10:00
Eugene Shamaev
5d4579a086
AP_HAL_SITL: add wind type parameters
2018-05-02 07:32:25 -07:00
Eugene Shamaev
d086edc762
SITL: add wind type parameters
2018-05-02 07:32:25 -07:00
Peter Barker
83b918f1c3
AP_Param: make send_parameter_value_all a GCS method rather than static
2018-05-01 09:39:01 +10:00
Peter Barker
bf124e9333
GCS_MAVLink: make send_parameter_value_all a GCS method rather than static
2018-05-01 09:39:01 +10:00
Peter Barker
1a640e3405
AP_InertialSensor: parameterise sensor-rate logging, generalise it
...
AP_InertialSensor: add parameters for push-to-log interval and count
AP_InertialSensor: rename BAT_RAW to BAT_OPT
This becomes a bitmask of options for the BatchSampler
AP_InertialSensor: rename 'fast sample' to 'sensorrate sample'
AP_InertialSensor: const sensor-rate filter method
AP_InertialSampler: remove hard-coding of sample rate multiplier
AP_InertialSensor: use parameter to enable/disable sensor-rate logging
AP_InertialSensor: use a parameter to control sensor-rate logging
AP_InertialSensor: allow backends to override sensor data multiplier
e.g. some accelerometers are sensitive over wider ranges than the default 16G
AP_Inertialsensor: correct sample rate multiplier
2018-05-01 09:35:29 +10:00
Andrew Tridgell
44131202cd
AP_InertialSensor: 4kHz batch sampling
2018-05-01 09:35:29 +10:00
Andrew Tridgell
4869dd0ae4
AP_NavEKF3: send airspeed variance over mavlink
2018-04-30 15:41:32 +10:00
Andrew Tridgell
fb0deba3aa
AP_NavEKF2: send airspeed variance over mavlink
2018-04-30 15:41:31 +10:00
Andrew Tridgell
0b03562cf2
AP_AHRS: fix for mavlink update
2018-04-30 15:39:43 +10:00
Peter Barker
767f81265b
Sub: correct compilation under clang++ on MacOSX
2018-04-30 13:04:03 +09:00
Andrew Tridgell
2684f46641
HAL_ChibiOS: fixed IMU orientation for revo-mini
2018-04-30 08:33:39 +10:00
night-ghost
c51dda45e7
HAL_F4light: fix compilation errors
2018-04-30 08:32:58 +10:00
night-ghost
1cfdfe55a1
DataFlash: fix HAL_F4light compilation errors
2018-04-30 08:32:58 +10:00
night-ghost
a05c79f1d8
Compass: fix HAL_F4light compilation errors
2018-04-30 08:32:58 +10:00
night-ghost
eb0343649b
Baro: fix HAL_F4light compilation errors
2018-04-30 08:32:58 +10:00
Jacob Walser
e5bd6e289e
AP_Motors: Add current limiting to 6DOF motors for Sub
2018-04-29 17:16:34 -04:00
mirkix
c2eee2db23
AP_HAL_ChibiOS: add STM32F7 I2C support
2018-04-29 07:59:52 +10:00
Alexander Malishev
1fd52c4e01
HAL_ChibiOS: added input capture filter
2018-04-28 07:31:58 +10:00
night-ghost
a2cc54fb5d
HAL_F4Light fixes: removed unused code, removed debugging printf(), removed hard-coded pins
2018-04-27 22:14:59 +10:00
night-ghost
e5c3fd43ee
upgrade FatFS to most recent version
2018-04-27 22:14:59 +10:00
night-ghost
ccd90e19a1
fixed DataFlash_File_sd.cpp in case of SD error
2018-04-27 22:14:59 +10:00
night-ghost
051c8e9fe2
kill task in case of exception in armed state
2018-04-27 16:33:30 +10:00
Chris Gaddis
35dddbd35a
AP_Relay: Enables relays 1-4 for Beaglebone Blue
...
Enables relays 1-4 on Beaglebone Blue GP0 connector pins 3-6
2018-04-27 00:13:33 +01:00
Francisco Ferreira
930981914a
AP_Mission: fix small bug in d5a4c6b
2018-04-26 23:21:29 +01:00
Michael du Breuil
d5a4c6b5bc
AP_Mission: Sanity check for NaN's and infinities
2018-04-26 14:48:14 -07:00
Randy Mackay
0f9b679e98
AR_AttitudeControl: increase angle err P and reduce steering accel max defaults
2018-04-26 14:16:22 +09:00
Michael du Breuil
1d60b0ec62
AC_PID: Support new RC_Channels::read_input()
2018-04-26 08:00:09 +10:00
Michael du Breuil
30554d0de0
RC_Channels: Collapse has_new_input() with set_pwm_all()
2018-04-26 08:00:09 +10:00
Alexander Malishev
0d6043e0c6
HAL_ChibiOS: Fixed current and voltage sense on OmnibusF4PRO
2018-04-26 07:57:06 +10:00
night-ghost
9f1e45509a
support for Matek F405-CTR board, causes minor changes in I2C descriptor block
2018-04-26 07:51:06 +10:00
Andrew Tridgell
f75dea34e1
HAL_ChibiOS: fixed integer promotion bug in SoftSigReaderInt
...
this caused corrupted PPM values. Many thanks to Andrea Belloni for reporting
2018-04-25 22:25:26 +10:00
Jacob Walser
6ae1bf4cf4
AC_AttitudeControl: Allow zero gains for Sub
...
Close bluerobotics/ardusub#70
2018-04-25 17:18:26 +09:00
Michael du Breuil
b1a3e0a537
AP_GPS: Report when SBF errors change
2018-04-24 12:32:35 -07:00
Jacob Walser
44d0f7b2a1
AP_Compass: update ORIENT @Values
2018-04-24 13:04:37 +01:00
Jacob Walser
74be9f0bda
AP_AHRS: Add support for custom board orientations
2018-04-24 13:04:37 +01:00
Jacob Walser
ad4e928e7d
AP_InertialSensor: add support for custom board orientations
2018-04-24 13:04:37 +01:00
Jacob Walser
6699c59ad3
AP_Compass: add support for custom board orientations
2018-04-24 13:04:37 +01:00
Jacob Walser
f97ac4af30
AP_Math: add custom rotation option
2018-04-24 13:04:37 +01:00
Jacob Walser
4f02f709a2
AP_Math: fix typo
2018-04-24 13:04:37 +01:00
Jacob Walser
b820da5c6f
AP_AHRS: update AHRS_ORIENTATION metadata
2018-04-24 13:04:37 +01:00
Jacob Walser
e738f33770
AP_Math: Add ROTATION_PITCH_315 and ROTATION_ROLL_90_PITCH_315
2018-04-24 13:04:37 +01:00
Randy Mackay
3f1f68b130
AR_AttitudeControl: support vectored thrust
...
steering output is not scaled for speed
steering integrator does not build up at low speed
2018-04-24 19:57:19 +09:00
Randy Mackay
9c2da896b9
AR_AttitudeControl: get_throttle_out_stop only stops once desired speed reaches zero
...
this reduces the final jerk to a when transitioning from forward to reverse and in cases where ATC_ACCEL_MAX is small
2018-04-24 12:24:53 +09:00
Randy Mackay
365e1030db
AR_AttitudeControl: separate speed limiting to new method
...
This allows the desired speed limiting (by acceleration) to be done before the speed-to-throttle PID controller is run.
This is required so the avoidance calls (which work on the desired speed) can be run after limiting but before the PID controllers
2018-04-24 12:24:53 +09:00
Andrew Tridgell
da5df5ca20
AP_Devo_Telem: fixed to check for have_position
2018-04-24 10:44:28 +10:00
Andrew Tridgell
33a26ac0a8
AP_HAL: enable DEVO telemetry on F4Light
2018-04-24 10:44:28 +10:00
night-ghost
09b5cc382b
AP_SerialManager: devo telemetry support (RX705/707)
2018-04-24 10:44:28 +10:00
night-ghost
85c71273cf
AP_Devo_Telem: devo telemetry support (RX705/707)
2018-04-24 10:44:28 +10:00
bnsgeyer
c8488e3333
AP_Motors: Tradheli - swashplate servo trim fix for heli single and dual frames
2018-04-24 10:30:26 +10:00
Michael du Breuil
7830dab0a8
AP_Arming: Add a servo check that (<= min trim max) for all channels
2018-04-24 01:16:26 +01:00
Michael du Breuil
1b18a78d1d
AP_Arming: Add a RC check that (<= min trim max) for all channels
2018-04-24 01:16:26 +01:00
Andrew Tridgell
bba8d506d6
HAL_ChibiOS: port for kakutef4 flight board
2018-04-24 08:03:46 +10:00
Andrew Tridgell
95108a2d2c
HAL_ChibiOS: added support for 16 bit timers
2018-04-24 08:03:46 +10:00
Alexander Malishev
03d88b01be
HAL_ChibiOS: added support for interrupt based rcin parsing
2018-04-24 08:03:46 +10:00
Andrew Tridgell
6e0b5c204a
AP_Notify: support buzzer backend on ChibiOS
2018-04-24 08:03:46 +10:00
Andrew Tridgell
ca9d1a55fe
AP_InertialSensor: support ICM-20689 IMU
...
like the 20789, but without the baro
2018-04-24 08:03:46 +10:00
murata
3577def8fd
AC_Avoid: use elseif because value does not change
2018-04-23 19:45:50 +09:00
murata
29b1a6ed41
AC_Avoid: fix comment
2018-04-23 19:45:37 +09:00
malcolm churn
7718196838
HAL_ChibiOS: Fix sparky2 target.
...
Correct pin mappings, ADC, PWM.
Not working
Flash memory, Logging, external i2c tested with NXP MAG3110.
2018-04-22 21:01:14 +10:00
Andrew Tridgell
e2fa38968f
AP_BoardConfig: fixed build for some boards
...
for boards that don't have board detection but do have a safety switch
this fixes the build
2018-04-21 08:45:34 +10:00
Randy Mackay
23ed735304
AR_AttitudeControl: reduce default steering I gain to 0.2
...
Also reduce default filter from 50hz to 10hz
2018-04-19 16:29:12 +09:00
Randy Mackay
e5c0b1814a
GCS_MAVLink: remove underscore from method names
2018-04-19 13:38:22 +09:00
Vince Kurtz
2f81747112
GCS_MAVLink: fix VISP logging
...
log VISP messages for the ATT_POS_MOCAP mavlink message as well
2018-04-19 13:34:49 +09:00
Peter Barker
9480572075
AP_Notify: ChibiOS: beep on mode change
2018-04-19 09:29:41 +10:00
Peter Barker
557f8cee43
AP_HAL_ChibiOS: add mode-change-beeps
2018-04-19 09:29:41 +10:00
mirkix
79f3fd532b
AP_HAL_ChibiOS: fix spi clock calculation
2018-04-19 08:32:31 +10:00
Peter Barker
e7b5978d8d
SITL: use a 16-bit mask for GPIO out
2018-04-18 20:31:55 +09:00
Peter Barker
1eecf07e68
AP_HAL_SITL: use a 16-bit mask for GPIO out
...
This allows Relay pins to be represented (typically pin 13)
2018-04-18 20:31:55 +09:00
Peter Barker
682679c68d
GCS_MAVLink: use AP_ServoRelayEvents singleton
2018-04-18 20:31:55 +09:00
Peter Barker
544ac03ca6
AP_ServoRelayEvents: add singleton
2018-04-18 20:31:55 +09:00
ChristopherOlson
9aa685a6d8
AP_Motors:TradHeli - single rotor only - add support for H3-140 swashplates.
...
Also changes the old definition to H3 for swashplates with fixed control radius and adjustable servo position.
2018-04-18 14:24:59 +09:00
ChristopherOlson
f073c58f68
AP_Motors:TradHeli - add support for reverse collective swashplates
2018-04-18 14:24:59 +09:00
Peter Barker
64a8de42da
DataFlash: use singleton for getting hold of gps object
2018-04-18 13:50:55 +09:00
Peter Barker
901ba0034c
AP_NavEKF3: do not pass GPS into Log_Write_GPS; it uses singleton
2018-04-18 13:50:55 +09:00
Peter Barker
578facc9ad
AP_NavEKF2: do not pass GPS into Log_Write_GPS; it uses singleton
2018-04-18 13:50:55 +09:00
Peter Barker
643e7e039a
AP_GPS: log received data
...
Also log a set of flag values if a driver is deleted
2018-04-18 13:50:55 +09:00
Tom Pittenger
63e42e194f
GCS_MAVLink: send correct mission_ack result type
...
has no effect since the two typedef enums equated to same value
2018-04-18 12:02:43 +09:00
Pierre Kancir
fdfa08c586
AP_AHRS: fix include order due to cyclic include
2018-04-17 17:21:35 +09:00
Pierre Kancir
6fe0597399
AC_PrecLand: replace AP_InertialNav by AHRS
2018-04-17 17:21:35 +09:00
Peter Barker
63792edc5f
DataFlash: increase debug in SITL
2018-04-17 17:16:52 +09:00
Andrew Tridgell
bb0cbd15a4
HAL_ChibiOS: implement fmuv4 safety state
...
and added safety_mask and safety_pwm support for both fmuv3 and fmuv4
2018-04-17 10:14:01 +10:00
Andrew Tridgell
60f79921ac
AP_BoardConfig: added get_safety_mask()
2018-04-17 10:14:01 +10:00
Andrew Tridgell
7be1125084
AP_IOMCU: implement safety mask and safety pwm
2018-04-17 10:14:01 +10:00
Patrick José Pereira
a255c47c33
AP_GPS: Do not restart driver if type is defined as MAV
...
Fix bluerobotics/ardusub#104
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-04-16 17:08:39 -07:00
Andrew Tridgell
214fb096eb
AP_IOMCU: added healthy API for use in arming checks
2018-04-17 08:44:44 +10:00
Andrew Tridgell
77c922e6b8
HAL_ChibiOS: make embed.py work with python3
2018-04-17 08:44:44 +10:00
Andrew Tridgell
09e3a3cb78
AP_IOMCU: added IO firmware upload
2018-04-17 08:44:44 +10:00
Andrew Tridgell
a6e05cbf5a
AP_Math: added crc32 for IOMCU bootloader protocol
2018-04-17 08:44:44 +10:00
Andrew Tridgell
3749480dd8
HAL_ChibiOS: create ap_romfs_embedded.h
...
use ROMFS keywork for romfs files
2018-04-17 08:44:44 +10:00
Andrew Tridgell
deae66e645
AP_ROMFS: library for embedding files
...
this will be used for bootloaders and IO firmware
2018-04-17 08:44:44 +10:00
Alexey Kozin
f87cc4e172
f4by chibios new style dma table build fix
2018-04-16 07:50:34 +10:00
Andrew Tridgell
4871bbf403
HAL_ChibiOS: make soft serial for RC serial more efficient
...
using system ticks halves the IRQ time
2018-04-16 07:40:55 +10:00
Andrew Tridgell
57c307a74e
AP_BoardConfig: fixed default pwm count
...
for boards without the parameter we should use 16, meaning all channels
available
thanks to sh83 for noticing
2018-04-16 07:40:55 +10:00
mirkix
a9449ccd29
AP_HAL_ChibiOS: add f767-min board support
2018-04-15 07:40:46 +10:00
Michael du Breuil
8374c5a4f3
AP_HAL_ChibiOS: Remove unused priority level
2018-04-15 07:28:20 +10:00
Michael du Breuil
c8fdb90ab5
RC_Channel: Rework set_pwm_no_deadzone() to a recompute function
2018-04-14 14:05:20 +10:00
kozinalexey
2316fee279
HAL_ChibiOS: f4by conf2 fixed ram size, ext compass, pwm count
2018-04-14 11:09:34 +10:00
kozinalexey
444c0bb54c
AP_Compass: added ChibiOS external compass config
2018-04-14 11:09:34 +10:00
kozinalexey
db6c6b1677
AP_BoardConfig: allow PWM count setting on all chibios boards
2018-04-14 11:09:34 +10:00
Alexander Malishev
ca33ff04d9
ChibiOS: add support for omnibusf4pro board
2018-04-14 09:25:15 +10:00
Alexander Malishev
79b5719419
ChibiOS: add support for complementry output timer channels
2018-04-14 09:25:15 +10:00
Alexander Malishev
1b7eecdf2f
ChibiOS: fixed tables for F405 mcu
2018-04-14 09:25:15 +10:00
Michael du Breuil
0e8a9c2ec4
AP_IOMCU: Encapsulate debug prints in a #ifdef, fix whitespace
2018-04-14 08:23:24 +10:00
Andrew Tridgell
f22964a350
AP_IOMCU: implement BRD_SAFETYOPTION
2018-04-14 06:22:07 +10:00
Andrew Tridgell
7ecdabe52c
HAL_PX4: fixup
2018-04-14 06:22:07 +10:00
Andrew Tridgell
fae0e7befa
HAL_PX4: implement BRD_SAFETYOPTION
2018-04-14 06:22:07 +10:00
Andrew Tridgell
d8abf647e8
AP_BoardConfig: added BRD_SAFETYOPTION parameter
...
allow control of safety button behaviour
2018-04-14 06:22:07 +10:00
Andrew Tridgell
cf4ca29dbb
DataFlash: added logging of safety state in POWR message
2018-04-14 06:22:07 +10:00
night-ghost
ecf2c51a8b
HAL_F4Light: fixed board's defines to be suitable for new compass/baro autodetection
2018-04-13 20:47:50 +10:00
night-ghost
6e0742630d
HAL_F4Light: fixed bug on write in USB MassStorage mode
2018-04-13 20:46:18 +10:00
night-ghost
d1f2646394
HAL_F4Light: fixed bug with DataFlash chips more than 128MBit
2018-04-13 20:46:18 +10:00
night-ghost
740e322438
AP_Baro: fix BMP280 scale
2018-04-13 20:45:48 +10:00
Daniel Widmann
27234f78c6
AR_AttitudeControl: Allow using steer rate control for skid steer rovers without GPS
2018-04-13 09:12:03 +09:00
Peter Barker
a5dc87e2af
AP_Baro: do dataflash logging as part of update
2018-04-12 19:12:12 +01:00
Peter Barker
7c14a9dd7b
AC_Sprayer: use ahrs singleton
...
Also remove some unneeded initialisations
2018-04-12 14:23:33 +09:00
Jacob Walser
2212532028
AP_Arming: Clarify/bring commonality to RC Channels check description
2018-04-12 14:20:49 +09:00
Jacob Walser
409ff66231
AP_Arming: correct parameter description
2018-04-12 14:20:49 +09:00
mirkix
8074361bb8
AP_HAL_ChibiOS: add hardware def for STM32F767xx
2018-04-12 14:19:40 +10:00
Andrew Tridgell
c6d7691667
HAL_ChibiOS: fixed F745 database for new DMA system
2018-04-12 11:50:44 +10:00
Andrew Tridgell
eccc4f375b
AP_Compass: fixed build warning
2018-04-12 11:50:44 +10:00
Andrew Tridgell
7286ffab77
HAL_ChibiOS: define FLASH_LOAD_ADDRESS in hwdef.h
...
used for bootloader support
2018-04-12 11:50:44 +10:00
Andrew Tridgell
e4ce2f532b
HAL_ChibiOS: make smaller builds possible
...
this allows for much smaller builds when you disable a lot of
options. This is part of an effort to create a bootloader of less than
16k using ChibiOS
2018-04-12 11:50:44 +10:00
Andrew Tridgell
ea2dc9b831
AP_InertialSensor: added OMNIBUSF7V2 INS sensors
...
a dual-IMU board
2018-04-12 11:50:44 +10:00
Andrew Tridgell
943e433be6
AP_HAL: added device name for bmp280 for ChibiOS
2018-04-12 11:50:44 +10:00
Andrew Tridgell
ef9d9d9c26
HAL_ChibiOS: first boot of OMNIBUSF7V2
...
only the 20608 works, and it has lots of errors.
The bmp280 is detected, but does not give good data
no UARTs yet
2018-04-12 11:50:44 +10:00
Andrew Tridgell
02f20b4114
HAL_ChibiOS: first version of OMNIBUSF7V2 board support
...
first F7 based board
2018-04-12 11:50:44 +10:00
Andrew Tridgell
a9edbb6b2d
HAL_ChibiOS: allow for a defaults.parm file in hwdef directory
...
this keeps defaults with the board, where that is appropriate
2018-04-12 11:50:44 +10:00
Andrew Tridgell
6e5cbc7c3d
HAL_ChibiOS: initial support for F745 boards
2018-04-12 11:50:44 +10:00
Andrew Tridgell
551dca63e1
HAL_ChibiOS: added build information for each MCU
...
this abstracts the build information for each MCU, so that hwdef.dat
can control the build process of ChibiOS
2018-04-12 11:50:44 +10:00
Andrew Tridgell
d1e4185817
HAL_ChibiOS: don't build flash.c if not needed
2018-04-12 11:50:44 +10:00
Andrew Tridgell
cdbbceb6b6
HAL_ChibiOS: cope with SDMMC peripheral for microSD
2018-04-12 11:50:44 +10:00
Michael du Breuil
ca28a01bbf
PID: Remove examples/keywords
...
This was needed to accomplish the RC_Channels changeover, and the PID
library is on it's way out of the system so removal of examples rather
then maintainance made more sense.
2018-04-11 21:47:07 +01:00
Michael du Breuil
6e9e9dcdfa
GCS_MAVlink: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
ae193f28ae
DataFlash: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
523882bffc
AP_Tuning: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
b757354c88
AP_Soaring: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
70b1eb9836
AP_RSSI: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
ddd32d3339
AP_ICEngine: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
5d84850f32
AC_PID: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Michael du Breuil
a6afc69c13
RC_Channel: Support most hal.rcin functions in RC_Channels
2018-04-11 21:47:07 +01:00
Andrew Tridgell
751024f483
HAL_ChibiOS: mark two skyviper builds as needing abin files
2018-04-11 15:09:49 +10:00
night-ghost
677f2bebc3
AP_Compass: added autodetect of all known compasses on external bus
2018-04-11 15:00:36 +10:00
night-ghost
33bdc9196c
AP_Baro: added autodetection of popular baro types on external bus
2018-04-11 15:00:36 +10:00
night-ghost
f26bb0cfbe
AP_Compass: added range filter to backend, added its use in some sensors (thanks khancyr for style correction)
2018-04-11 14:46:42 +10:00
night-ghost
cb8a34f784
AP_Baro: added range filter to backend, use it in most sensors (thanks khancyr for style correction)
2018-04-11 14:46:42 +10:00
Michael du Breuil
ac9d5f8a5c
AP_NavEKF: Make the status unions use bool, add static asserts
2018-04-11 09:47:43 +09:00
Michael du Breuil
37df0c20eb
AP_Rally: Remove stale comment, and unneded define check
2018-04-11 09:45:45 +09:00
Randy Mackay
d9fe7b7105
AC_Sprayer: formatting fixes
...
non-functional change
2018-04-11 09:41:33 +09:00
Pierre Kancir
c2e546285c
AC_Sprayer: replace AP_InertialNav with AHRS
2018-04-11 09:41:33 +09:00
Andrew Tridgell
2b49a3ab7b
DataFlash: fix up logging on ChibiOS after change for F4Light
2018-04-11 10:13:08 +10:00
night-ghost
1ad6de1e80
HAL_F4Light: updated OSD submodule
2018-04-11 10:13:08 +10:00
night-ghost
677fc1875b
HAL_F4Light: some modes disabled by default
2018-04-11 10:13:08 +10:00
night-ghost
aaea0e121b
HAL_F4light: fixed parameters for AirbotF4 board
2018-04-11 10:13:08 +10:00
night-ghost
2a0f624d5a
DataFlash: fixed F4Light DataFlash logging
2018-04-11 10:13:08 +10:00
Pierre Kancir
79cd137625
AP_Common: remove AP_AHRS_NavEKF include from location class
2018-04-11 08:59:50 +09:00
Michael du Breuil
a1845783b5
AP_RSSI: Make the RSSI library an enable param tree
2018-04-10 17:29:32 +01:00
Michael du Breuil
362fb470c4
AP_GPS: Allow HIL_GPS to flag vertical velocity
...
Closes #7997
2018-04-10 17:01:21 +01:00
Mark Whitehorn
7ad0318d4f
AP_HAL_Linux: fix latent bug in ToneAlarm
2018-04-10 21:48:16 +10:00
Mark Whitehorn
960e217e79
AP_HAL_Chibios: fix latent bug in ToneAlarm
2018-04-10 21:48:16 +10:00
Peter Barker
0c14a309f7
AP_Proximity: correct debugginf for RPLidarA2
2018-04-10 16:25:54 +09:00
Andrew Tridgell
f2df171fdd
HAL_ChibiOS: fixed DSM input on fmuv4
2018-04-10 17:22:21 +10:00
Andrew Tridgell
bccea9c8b9
AP_RCProtocol: support DSM bind
2018-04-10 17:22:21 +10:00
Andrew Tridgell
f788cde5c7
AP_InertialSensor: use multiply for fifo scale factors
...
this fixes issue from #8118 too
2018-04-10 14:17:16 +10:00
Peter Barker
8027883734
DataFlash: remove vestiges of CLI functions
2018-04-10 10:27:08 +09:00
Andrew Tridgell
d777da970b
AP_Baro: fixed multi-baro logging
2018-04-09 11:39:20 -07:00
Andrew Tridgell
a2351bf99f
AP_BLHeli: log bad telem CRCs
2018-04-09 15:32:04 +10:00
Andrew Tridgell
96cc657bd0
HAL_ChibiOS: fixed GPIO interrupt port mapping
2018-04-09 15:32:04 +10:00
Andrew Tridgell
0f2a7108d3
AP_BLHeli: added SERVO_BLH_OTYPE
...
this allows use of BLHeli telemetry on rover, sub and on quadplane fwd
motors
2018-04-09 15:32:04 +10:00
Andrew Tridgell
3b4d1d5d46
DataFlash: enabled POWR log msg on ChibiOS
2018-04-09 15:32:04 +10:00
Andrew Tridgell
b4aeffbaed
HAL_ChibiOS: added power status flags reporting
2018-04-09 15:32:04 +10:00
Andrew Tridgell
7c85d06600
HAL_ChibiOS: setup pwm counts, and cleanup mindpx-v2 PWM lines
2018-04-09 15:32:04 +10:00
Andrew Tridgell
1b9cebc3f2
HAL_ChibiOS: check pwm count in rcout init
2018-04-09 15:32:04 +10:00
Andrew Tridgell
13cf72ac32
AP_BoardConfig: allow override of PWM count in hwdef.dat
2018-04-09 15:32:04 +10:00
Andrew Tridgell
a7711ab9f7
AP_HAL: don't require GPIO defines for RCOU serial on ChibiOS
2018-04-09 15:32:04 +10:00
Andrew Tridgell
68293c9c11
HAL_ChibiOS: don't require GPIO() markers on PWM outputs
...
this fixes blheli pass-thru on MindPX-v2
2018-04-09 15:32:04 +10:00
Peter Barker
face8151b7
AP_Compass: include required header
2018-04-09 11:34:35 +10:00
Peter Barker
a0d874baa2
AP_NavEKF3: const accessors
2018-04-07 09:56:18 +09:00
Peter Barker
6791808ac6
AP_NavEKF3: remove unneeded initialisations
...
AP_NavEKF3 should never be allocated in uninitialised memory
2018-04-07 09:54:21 +09:00
Peter Barker
d38ff1dd2c
AP_NavEKF3: initialise EKF3 constants in declaration not constructor
2018-04-07 09:54:21 +09:00
Andrew Tridgell
eb6c852ee3
HAL_ChibiOS: use simpler pullup on serial input
...
this maps to the right bits for each MCU type
2018-04-07 09:10:29 +10:00
Andrew Tridgell
71cd58cc7e
HAL_ChibiOS: run rc serial thread at top priority
...
this maximises reliability for serial IO to ESCs, increasing flashing
reliability
2018-04-07 09:10:29 +10:00
Andrew Tridgell
4a7a66cc16
AP_IOMCU: use a higher thread priority
...
this ensures PWM output gets out as fast as possible
2018-04-07 09:10:29 +10:00
Andrew Tridgell
84d76cf915
AP_BLHeli: removed special handling of oneshot125
2018-04-07 09:10:29 +10:00
Andrew Tridgell
3cd4f2a002
AP_ChibiOS: handle oneshot125 separately
...
this sets up oneshot125 with the full 1000 steps of throttle
resolution, using a 8MHz clock. This matches the behaviour of modern
ESCs that measure PWM values with high accuracy
2018-04-07 09:10:29 +10:00
Andrew Tridgell
819de4acd5
AP_Motors: don't scale oneshot125 in AP_Motors
...
handle it in the HAL backends, to allow for correct resolution
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a1ba582a5d
HAL_VRBrain: handle oneshot125 separately
2018-04-07 09:10:29 +10:00
Andrew Tridgell
c3f0418333
HAL_PX4: handle oneshot125 separately
2018-04-07 09:10:29 +10:00
Andrew Tridgell
0bb2c4564d
AP_HAL: make hal aware of oneshot125
...
this separates oneshot and oneshot125 at the HAL layer, allowing the
HAL to properly handle the high timing resolution of oneshot125
(needed to use 125ns time steps, to get the full 1000 throttle steps)
2018-04-07 09:10:29 +10:00
Andrew Tridgell
67993d6e5c
HAL_ChibiOS: re-instate priority boost system
...
this adds back in the priority boost system for the main thread when
waiting for a IMU sample. This significantly improves scheduling
performance on very busy boards like a PH2.1
2018-04-07 09:10:29 +10:00
Andrew Tridgell
fff143d83e
AP_BLHeli: default protocol timeout to 0
...
this gives best compatibility with BLHeliSuite
2018-04-07 09:10:29 +10:00
Andrew Tridgell
2c6e6e3b13
HAL_ChibiOS: removed obsolete DShot example code
2018-04-07 09:10:29 +10:00
Andrew Tridgell
b77ba8fbd1
AP_BLHeli: improved debug output
...
allow debug on any MAVLink port
also fixed handling of passthru for oneshot125
2018-04-07 09:10:29 +10:00
Andrew Tridgell
9b22e0b7cc
HAL_ChibiOS: fixed SPI rates on fmuv3
...
this fixes a SPI bandwidth issue on PH2.1 with 3 IMUs active
2018-04-07 09:10:29 +10:00
Andrew Tridgell
61d513e91b
AP_BLHeli: use get_esc_scaling() for motor range
...
this fixes an issue with blhelisuite init when min is not 1000
2018-04-07 09:10:29 +10:00
Andrew Tridgell
503bd9ce65
HAL_PX4: implement get_esc_scaling()
2018-04-07 09:10:29 +10:00
Andrew Tridgell
8e59f6aad6
HAL_ChibiOS: implement get_esc_scaling()
2018-04-07 09:10:29 +10:00
Andrew Tridgell
dacbef2120
AP_HAL: added get_esc_scaling() API for rcout
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a2eec97325
HAL_ChibiOS: raised default SPI priority
...
this was causing transfer errors on the primary IMU of a PH2.1 when
fast sampling was enabled
2018-04-07 09:10:29 +10:00
Andrew Tridgell
c17338473d
AP_BLHeli: unlock uart on InterfaceExit
2018-04-07 09:10:29 +10:00
Andrew Tridgell
6f704b3818
AP_BLHeli: fixed use of SERVO_BLH_AUTO
2018-04-07 09:10:29 +10:00
Andrew Tridgell
5bfc97f9c0
HAL_ChibiOS: fixed dshot trigger while serial active
2018-04-07 09:10:29 +10:00
Andrew Tridgell
7c678bd707
AP_BLHeli: use UART locking
...
this gains exclusive access to the UART while MSP protocol is active to
prevent protocol corruption due to other drivers writing to hal.console
2018-04-07 09:10:29 +10:00
Andrew Tridgell
e448b5d069
HAL_ChibiOS: implement UART port locking
2018-04-07 09:10:29 +10:00
Andrew Tridgell
85ae6f60a8
AP_HAL: added UART locking interface
...
used to gain exclusive access to a UART. This is needed for the BLHeli
MSP protocol to prevent protocol corruption due to console writes
2018-04-07 09:10:29 +10:00
Andrew Tridgell
b7bcee69a3
AP_BLHeli: added telemetry logging support
...
allow telemetry feedback from BLHeli_32 ESCs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
061277040b
DataFlash: updated ESC logging format
...
support higher voltages and higher RPMs
added total current logging
2018-04-07 09:10:29 +10:00
Andrew Tridgell
71eb9bac03
AP_SerialManager: added ESC telemetry protocol support
2018-04-07 09:10:29 +10:00
Andrew Tridgell
6fd0af11ef
HAL_ChibiOS: implement telem request API
2018-04-07 09:10:29 +10:00
Andrew Tridgell
69c623270c
AP_HAL: added telem request to RCOutput
2018-04-07 09:10:29 +10:00
Andrew Tridgell
d54d3351de
SRV_Channel: check for rcout serial for blheli support
2018-04-07 09:10:29 +10:00
Andrew Tridgell
fde092a246
AP_BLHeli: check for rcout serial support
...
don't build AP_BLHeli on HALs that can't support serial output to ESCs
2018-04-07 09:10:29 +10:00
Andrew Tridgell
74bf83c39f
AP_HAL: added check for RCOUT serial support
2018-04-07 09:10:29 +10:00
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