Patrick José Pereira
1635054c4f
AP_Math: Add missing constexpr
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-03-17 10:23:47 +11:00
Peter Barker
c9f2b9ff87
AR_AttitudeControl: correct spelling error in param docs
2020-03-16 17:44:35 +11:00
Patrick José Pereira
e65cc35fb0
AP_HAL_Linux: Use template to generate raspberry pins
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-03-15 22:35:50 -07:00
Andrew Tridgell
5a4b648cf5
HAL_ChibiOS: disable flash fallback for boards with FRAM
...
this saves on flash and prevents confusing results when fram fails
2020-03-14 13:47:25 +11:00
Nick Exton
741abaf760
AP_Param: Add static assert on NVM struct sizes
2020-03-14 13:47:25 +11:00
Nick Exton
4cd39a4619
HAL_ChibiOS: improved selection of storage backend
2020-03-14 13:47:25 +11:00
Nick Exton
f9ec9c037a
AP_RAMTRON: improved driver robustness
...
- added retries on all operations
- detect errors with a CRC
- fixed detection of fujitsu devices
2020-03-14 13:47:25 +11:00
Andy Piper
104dd7cd75
AP_HAL_ChibiOS: remove board subtype for OmnibusNanoV6
2020-03-14 10:20:46 +11:00
Andrew Tridgell
add7615ed9
AP_HAL: removed unnecessary subtypes
2020-03-14 08:35:32 +11:00
Andrew Tridgell
986ad0dc27
HAL_ChibiOS: removed unnecessary subtype defines
2020-03-14 08:35:32 +11:00
Andrew Tridgell
c3f2117590
HAL_ChibiOS: fixed R9Pilot board ID
2020-03-14 07:05:22 +11:00
Peter Barker
4c19eb4bab
AP_NavEKF3: use compass reference rather than repeatedly asking AHRS for it
2020-03-13 08:26:18 +11:00
Peter Barker
903d81c263
AP_NavEKF2: use compass reference rather than repeatedly asking AHRS for it
2020-03-13 08:26:18 +11:00
Peter Barker
8679e95fca
AP_Logger: add comments about message_writer being leaked
...
These are really "shouldn't happen", and only happen at startup, so
impact of the memory leak is quite limited.
Fixing this requires putting in a virtual destructor on the
MessageWriter class - this and the calls add up to several hundred bytes
of flash.
2020-03-12 15:10:42 +11:00
Andrew Tridgell
87b97f8bee
AP_Scripting: added a VTOL failsafe example script
...
if fwd motor is lost try to make best effort to get home
2020-03-12 08:36:40 +11:00
Andrew Tridgell
e815b97c66
AP_Scripting: regenerate bindings
2020-03-12 08:36:40 +11:00
Andrew Tridgell
564740f06b
AP_Scripting: added get_vibration and get_target_location bindings
2020-03-12 08:36:40 +11:00
Andrew Tridgell
393a8785f3
AP_AHRS: implement get_vibration method on AHRS
2020-03-12 08:36:40 +11:00
Andrew Tridgell
d192544107
AP_Vehicle: added get_target_location() method
...
for scripting
2020-03-12 08:36:40 +11:00
Andrew Tridgell
be7e142888
AP_Scripting: regenerate bindings for RPM
2020-03-12 08:36:40 +11:00
Andrew Tridgell
609b535dda
AP_Scripting: added RPM interface
2020-03-12 08:36:40 +11:00
Andrew Tridgell
39fc324854
GCS_MAVLink: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
4f54d9b75f
AP_WindVane: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
ed37ebede8
AP_Logger: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
a93aa27cc1
AP_ICEngine: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
0f83da7e16
AP_Hott_Telem: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
429c21b887
AC_Autorotation: convert to new get_rpm() API
2020-03-12 08:36:40 +11:00
Andrew Tridgell
22ce90af34
AP_RPM: changed get_rpm() API to be scripting compatible
...
return a bool and use a reference for the value
2020-03-12 08:36:40 +11:00
Peter Barker
934d05f4ff
AP_Compass: correct incorrect and misleading comment
2020-03-11 22:24:36 +11:00
Peter Barker
621d029207
AP_Vehicle: add warning about get_scheduler_task implementations
...
We don't initialise these values we pass in. Considering how few times
we need to get this right, requiring it of the implementation would seem
to make sense and save a few bytes.
2020-03-11 22:23:56 +11:00
Andrew Tridgell
aaf828c9d4
GCS_MAVLink: consider NO_CHANGE as success for bootloader flash
...
this prevents GCS users from seeing "update failed"
2020-03-11 16:30:06 +11:00
Andrew Tridgell
d8b33bcac9
AP_InertialSensor: suppress expected errors from invensense IMUs
2020-03-11 16:30:06 +11:00
Andrew Tridgell
1540cf958b
HAL_ChibiOS: improve error messages for flashing bootloader
...
send progress as statustext messages
2020-03-11 16:30:06 +11:00
Andrew Tridgell
cf7c2b1475
HAL_ChibiOS: suppress SPI timeout error for expected delay
2020-03-11 16:30:06 +11:00
Andrew Tridgell
65cd223023
HAL_ChibiOS: implement in_expected_delay()
2020-03-11 16:30:06 +11:00
Andrew Tridgell
58b4b523fd
AP_HAL: added in_expected_delay()
...
allows for error message suppression when delays are expected
2020-03-11 16:30:06 +11:00
Randy Mackay
06b62107c7
AC_PosControl: move freeze_ff_z to be with other z-axis methods
...
Also minor comment fix to get_stopping_point_xy
2020-03-11 10:39:18 +09:00
Leonard Hall
25f1a4a4e1
AC_WPNav: add shift_wp_origin_to_current_pos_xy
...
also add shift_wp_origin_and_destination_to_stopping_point_xy
2020-03-11 10:39:18 +09:00
Leonard Hall
29332ac112
AC_PosControl: add relax_velocity_controller_xy
2020-03-11 10:39:18 +09:00
Andrew Tridgell
d35fff5186
HAL_ChibiOS: set CS pins high while in bootloader
...
this appears to be the root cause of the parameter resets on
CubeOrange. We need to ensure the CS pin is not floating or random
noise on the SPI bus for FRAM can cause the FRAM to become corrupt
2020-03-11 09:53:06 +11:00
Gone4Dirt
537a259ab6
AP_Mission: added to rewind mission on resume with MAV_CMD_DO_SET_RESUME_REPEAT_DIST
2020-03-11 09:48:40 +11:00
Peter Barker
ebfa910774
GCS_MAVLink: GCS_Dummy: add missing CR to console output of statustexts
...
send_text and friends don't expect the caller to add the CR; the GCS
will add one. Since we're jsut emitting to console, add one ourselves.
2020-03-10 19:07:08 +11:00
Peter Barker
1db081b095
AP_Vehicle: move AP_PARM_KEY_DUMP function up to AP_Vehicle base class
...
Common to all vehicles now, including Tracker
2020-03-10 11:00:14 +11:00
Peter Barker
d0edfd2c0d
AP_HAL_ChibiOS: VRUBrain-v51: reduce AP_MAX_EMBEDDED_PARAM to 1024
...
Stops us overflowing on Copter and Plane builds
2020-03-10 10:50:18 +11:00
Peter Barker
f8058bcf70
AP_HAL_Linux: avoid segfaults during early panics
...
singletons failing to be singleton can cause the segfaults. This is
more a tidiness thing - but better not to have cascading failures.
2020-03-10 10:45:09 +11:00
Peter Barker
19249a13fd
AP_Scripting: tell the user where their scripts directory is on failure
2020-03-10 08:43:03 +09:00
Peter Hall
e95e996cc4
AP_Scripting: Add led matrix examples
2020-03-10 10:37:26 +11:00
Peter Hall
bf76a8c727
AP_Scripting: update LED_roll example
2020-03-10 10:37:26 +11:00
Peter Hall
3002089396
AP_HAL_SITL: update function names
2020-03-10 10:37:26 +11:00
Peter Hall
e1c2977adc
AP_Notify: support ProfiLEDs
2020-03-10 10:37:26 +11:00
Peter Hall
fe5779fd88
AP_HAL_ChibiOS: add support for ProfiLEDs
2020-03-10 10:37:26 +11:00
Peter Hall
6ab13333c2
AP_HAL: support ProfiLEDs
2020-03-10 10:37:26 +11:00
Peter Hall
f1fee1ebc5
AP_SerialLED: support ProfiLEDs
2020-03-10 10:37:26 +11:00
Peter Hall
8dccea4a15
AP_Scripting: regenerate bindings
2020-03-10 10:37:26 +11:00
Peter Hall
426f5e6180
AP_Scripting: support ProfiLEDs
2020-03-10 10:37:26 +11:00
Peter Hall
001f71e3de
SRV_Channel: add ProfiLED ouputs
2020-03-10 10:37:26 +11:00
Andrew Tridgell
16f34778fc
HAL_ChibiOS: added f103-HWESC target
2020-03-04 16:21:06 +11:00
Andrew Tridgell
bca1bd2c72
HAL_ChibiOS: added f303-HWESC firmware
2020-03-04 16:21:06 +11:00
Randy Mackay
1486421581
AP_Scripting: rename arming-check-batt-temp example script
2020-03-04 11:28:10 +09:00
Randy Mackay
8d12c25555
AP_Vehicle: formatting fixes
2020-03-03 10:06:38 -07:00
Randy Mackay
2526aaeb74
AP_Scripting: set-target-location example script
2020-03-03 10:06:38 -07:00
Randy Mackay
ae8c8b71b2
AP_Scripting: make bindings
2020-03-03 10:06:38 -07:00
Randy Mackay
989241a6bd
AP_Scripting: fix limits on Location alt field binding
2020-03-03 10:06:38 -07:00
Randy Mackay
e8699ab9fe
AP_Scripting: add Location.alt to bindings
2020-03-03 10:06:38 -07:00
Randy Mackay
1e2fc444b6
AP_Scripting: add set_target_location binding
2020-03-03 10:06:38 -07:00
Randy Mackay
6f5d733ba9
AP_Vehicle: add set_target_location method
2020-03-03 10:06:38 -07:00
Peter Hall
fc0d845b6c
AP_Scripting: add NMEA decode example
2020-03-03 09:57:07 -07:00
Peter Barker
12f7337030
AP_Radio: correct for recent semaphore bool/void changes
2020-03-03 21:56:33 +09:00
Peter Barker
a32e54ea17
AP_Arming: correct toymode compilation for recent disarm-reason changes
2020-03-03 21:56:33 +09:00
Rishabh
f3e66055e5
GCS_MAVLink: Alert GCS if user tries calibration while vehicle is armed
2020-03-03 11:37:19 +11:00
Rishabh
cbccdfa8a3
AP_Compass: Alert GCS if user tries to calibrate compass while vehicle is armed
2020-03-03 11:37:19 +11:00
Peter Barker
d1f74faed7
AP_Notify: remove bad HIGH/LOW defines
...
These are just terrible defines to have in a header which can be
included into random files. These symbols can confuse construction of
enumerations, for example.
2020-03-03 10:46:06 +11:00
Peter Barker
09562e1f13
AP_HAL_Linux: use constants for high/low rather than defines, like ChibiOS
...
These are really bad defines to have hanging around for general use.
2020-03-03 10:46:06 +11:00
Peter Barker
1a123e5f8d
AP_HAL_ChibiOS: avoid referencing flash sector/page 22 on 1MB boards
2020-03-03 10:13:53 +11:00
Peter Barker
c917cd4dbb
AP_HAL_Linux: make a static-const hal references references to external symbol
2020-03-03 10:12:14 +11:00
Peter Barker
2d2fdf8bd0
AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol
2020-03-03 10:12:14 +11:00
Peter Hall
2f036c65f3
AP_Motors: MotorsMulticopter fix floating boost output
2020-03-02 18:22:30 +09:00
Peter Hall
71f1755c97
AP_Scripting: update plane-wind-fs example
2020-02-27 18:33:56 -07:00
Peter Hall
6587653e14
AP_Scripting: regnerate bindings
2020-02-27 18:07:31 -07:00
Peter Hall
129dc16bdb
AP_Scripting: add mission scripting example
2020-02-27 18:07:31 -07:00
Peter Hall
46714d69a5
AP_Mission: add get id functions for scripting
2020-02-27 18:07:31 -07:00
Peter Hall
370b6473a2
AP_Scripting: add AP_Mission bindings
2020-02-27 18:07:31 -07:00
Andrew Tridgell
fbbba887e5
AP_Notify: implement SIM_LED_LAYOUT
...
added support for luminousbee layout
2020-02-27 13:12:26 +11:00
Andrew Tridgell
09b272b840
SITL: added SIM_LED_LAYOUT parameter
...
for layout of simulated LEDs
2020-02-27 13:12:26 +11:00
Andrew Tridgell
ccc7d48c20
HAL_ChibiOS: reserve plenty of DMA memory for luminousbee4
2020-02-27 13:12:26 +11:00
Andrew Tridgell
e582432a2f
AP_Scripting: regen bindings
2020-02-27 13:12:26 +11:00
Andrew Tridgell
2277e22bc7
AP_SerialLED: added define for LED limit
2020-02-27 13:12:26 +11:00
Andrew Tridgell
5ad4ceef71
AP_SerialLED: allow more than 32 LEDs
2020-02-27 13:12:26 +11:00
Andrew Tridgell
fe86d8bb0c
AP_Scripting: adjust for updated LED API
2020-02-27 13:12:26 +11:00
Andrew Tridgell
dbba89a024
AP_Notify: allow up to 64 LEDs on a pin
2020-02-27 13:12:26 +11:00
Andrew Tridgell
09d10df3a3
HAL_SITL: allow more than 32 LEDs on a pin
2020-02-27 13:12:26 +11:00
Andrew Tridgell
669b98c6df
HAL_ChibiOS: allow more than 32 WS2812 LEDs on a pin
2020-02-27 13:12:26 +11:00
Andrew Tridgell
5d15d867b5
AP_HAL: adjust LED API to allow more than 32 LEDs on a pin
2020-02-27 13:12:26 +11:00
Andrew Tridgell
5bfd607300
HAL_ChibiOS: added luminousbee4 flight controller
2020-02-27 13:12:26 +11:00
Peter Barker
fbe2e75b9f
GCS_MAVLink: divide time allowed to send messages fairly
2020-02-27 08:49:59 +11:00
murata
c6f12e519b
AP_SerialManager: Add a description
2020-02-26 12:18:40 +11:00
Bill Geyer
bf345b0dd4
AC_AttitudeControlHeli: update filter parameter desc mins
2020-02-26 08:02:27 +09:00
Randy Mackay
aff854f485
AC_AttitudeControl: update param ranges
2020-02-26 08:02:27 +09:00
Randy Mackay
6297306492
AP_LandingGear: add OPTIONS param to auto deploy and retract
2020-02-26 08:01:00 +09:00
Randy Mackay
cc33c8d116
AP_Scripting: make bindings
2020-02-25 19:55:54 +09:00