Andrew Tridgell
dc54babe41
SITL: setup more defaults with flightaxis
...
with copters now you only need to set FRAME_CLASS to fly
2018-07-13 10:19:01 +10:00
Andrew Tridgell
7ec6522b9d
AP_Compass: default to right mag offsets for SITL
2018-07-13 10:19:01 +10:00
Andrew Tridgell
2fe2c8fbda
AP_Compass: initialise compass IDs saved in SITL
...
this ensures we don't get uncalibrates compasses in SITL
2018-07-13 10:19:01 +10:00
Andrew Tridgell
5f8b57ba19
AP_InertialSensor: added SITL device IDs
2018-07-13 10:19:01 +10:00
Andrew Tridgell
823c4523b3
AP_Compass: added SITL device IDs
2018-07-13 10:19:01 +10:00
Andrew Tridgell
464dc9102f
AP_HAL: added device types for SITL
...
and fixed a stack init bug for make_bus_id
2018-07-13 10:19:01 +10:00
Andrew Tridgell
f2d602690e
HAL_ChibiOS: fixed build error with some compilers
2018-07-13 08:50:46 +10:00
Andrew Tridgell
83f38d536e
HAL_ChibiOS: fixed flow control auto-detect without DMA
...
this fixes automatic flow control detection when we are not using DMA
for TX
2018-07-13 07:34:30 +10:00
Andrew Tridgell
0201893f7c
HAL_ChibiOS: fixed peripheral power-up on fmuv5
...
we need to do the powerup before we initialise the UARTs
2018-07-13 07:34:30 +10:00
Andrew Tridgell
409e857f6b
HAL_ChibiOS: use pullup on CTS line
...
this makes life less difficult for SiK radios which go into bootloader
mode on low CTS
2018-07-13 07:34:30 +10:00
Andrew Tridgell
11e09a846c
HAL_ChibiOS: setup RTS pins as pullup
...
this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
2018-07-13 07:34:30 +10:00
Andrew Tridgell
63a0a4979c
HAL_ChibiOS: delay peripheral power on for fmuv5
...
this should prevent SiK radios staying in the bootloader
2018-07-13 07:34:30 +10:00
Michael du Breuil
0aaa029f9b
AP_HAL_Linux: GPIO_RPi: Fix UB when reading a pin
...
You can't shift by more then the word width
2018-07-11 23:09:52 -07:00
Michael du Breuil
d06a82af1d
AP_HAL_VRBrain: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
1ac78d3a80
AP_HAL_SITL: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
039e146dec
AP_HAL_PX4: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
1f7ee55211
AP_HAL_Linux: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
312e21dc2f
AP_HAL_F4Light: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
f4b1d530c1
AP_HAL_Empty: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
6fba374069
AP_HAL_ChibiOS: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
3419b045e1
AP_HAL: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Michael du Breuil
6925dfb4ae
AP_Camera: Remove usage of analogPinToDigitalPin
2018-07-11 23:09:52 -07:00
Andrew Tridgell
10e9182c21
HAL_SITL: fixed delay() for SITL threads
...
with the new thread_create() interface we need to handle delays a bit
differently
2018-07-12 15:04:43 +10:00
Alexander Malishev
785cf293cd
AP_OSD: use software blink
...
This should fix blink issue with some hardware
2018-07-12 15:04:32 +10:00
Andrew Tridgell
f083b80700
HAL_ChibiOS: added preallocation of DMA bouncebuffers
...
we need 512 bytes for microSD
2018-07-12 14:34:04 +10:00
Andrew Tridgell
e193a161f2
HAL_ChibiOS: enable SDIOv1 bouncebuffers
2018-07-12 14:34:04 +10:00
Andrew Tridgell
f84424cca4
HAL_ChibiOS: added specific builds for the Pixracer and mRoX21 boards
2018-07-12 12:33:32 +10:00
Andrew Tridgell
e52176e23b
AP_BoardConfig: allow hwdef.dat override of BRD_TYPE
2018-07-12 12:33:32 +10:00
Andrew Tridgell
721f5d86b1
HAL_ChibiOS: fixed mRoX21 IMU setup
2018-07-12 12:33:32 +10:00
Andrew Tridgell
0310bd468c
HAL_ChibiOS: changed uart order for KakuteF4
...
thanks to feedback from Arther
2018-07-12 11:50:10 +10:00
Andrew Tridgell
48747be494
HAL_VRBrain: don't clear buffers on no baud change
2018-07-12 11:41:31 +10:00
Andrew Tridgell
1d1af5fd68
HAL_Linux: don't clear buffers on no baud change
2018-07-12 11:41:31 +10:00
Andrew Tridgell
fe07a73935
HAL_PX4: don't clear buffers if no baudrate change
2018-07-12 11:41:31 +10:00
Andrew Tridgell
50f7e55f0b
HAL_ChibiOS: don't clear buffers if no baudrate change
2018-07-12 11:41:31 +10:00
fnoop
374c46bd57
HAL_ChibiOS: MatekF405-Wing UART reorder
2018-07-11 16:26:04 -07:00
Dr.-Ing. Amilcar do Carmo Lucas
fe90618e3e
AP_TempCalibration: remove duplicated parameter
2018-07-11 12:16:42 -07:00
Randy Mackay
ce9857d77d
AP_BattMonitor: add BLHeli ESC to MONITOR param desc
2018-07-11 17:44:00 +09:00
Andrew Tridgell
1f2c24ef7b
HAL_ChibiOS: backup storage to microSD if possible
...
very useful for diagnostics.
This also fixes a bug on boards with flash storage, to not switch to
microSD storage if flash storage available
2018-07-11 16:38:03 +10:00
Andrew Tridgell
66ee202e24
HAL_PX4: backup storage to microSD if possible
...
very useful for diagnostics
2018-07-11 16:38:03 +10:00
fnoop
922a9762df
HAL_ChibiOS: Fix MatekF405-Wing default compass rotation
2018-07-11 10:10:34 +10:00
Andrew Tridgell
985a319c42
AP_FlashStorage: fixed build of example on small memory boards
2018-07-11 10:07:38 +10:00
Lucas De Marchi
d2446e1219
AP_HAL_Linux: use Thread abstraction to create thread
...
The open coded version has the same problem fixed by Thread abstraction:
the order of the calls matters and it's easy to call in the wrong order.
Here pthread_attr_setschedparam() and pthread_attr_setschedpolicy()
should be swapped, like in 62c2f737d5
(AP_HAL_Linux: fix setting RT priorities.)
2018-07-11 10:00:29 +10:00
Lucas De Marchi
e11d268818
AP_HAL_Linux: Thread: allow loose running thread
2018-07-11 10:00:29 +10:00
Andrew Tridgell
ba0fb3d9d2
AP_IOMCU: fixed repeated upload of IO fw
2018-07-11 09:51:43 +10:00
Andrew Tridgell
2d8dbc05d0
HAL_ChibiOS: fixed omnibusf4pro I2C
...
many thanks to Kelly-Foster and @sh83
2018-07-11 08:33:49 +10:00
Andrew Tridgell
fff4b3b4a0
HAL_ChibiOS: fixed build on some F4 boards
2018-07-11 07:24:39 +10:00
Jack
4b24a61023
AP_HAL_Linux: fix spelling of generated in panics
2018-07-10 09:55:01 -07:00
liang.tang
c03e50660c
AC_WPNav: check validity of kP
2018-07-10 18:07:50 +09:00
Andrew Tridgell
ece10082e2
HAL_ChibiOS: added separate builds for Pixhawk4 and CUAVv5
...
this makes it easier to distinguish boards in logs, plus makes life
easier when the user is selecting the right firmware.
It also gives us the flexibility to make parameter changes as needed
2018-07-10 18:29:14 +10:00
Andrew Tridgell
f88a4b3a2f
AP_Compass: fixed compass orientations on PH4
2018-07-10 18:29:14 +10:00
Andrew Tridgell
b647dde28f
HAL_ChibiOS: changed which I2C bus is internal on fmuv5
...
match PH4 arrangement
2018-07-10 18:29:14 +10:00
Andrew Tridgell
385713abdd
HAL_ChibiOS: support for PH4-mini board
2018-07-10 18:29:14 +10:00
Andrew Tridgell
9ca2c11333
AP_Arming: use check_enabled() in storage check
2018-07-10 15:41:44 +10:00
Andrew Tridgell
bf1bca6820
AP_Arming: added arming check for storage health
2018-07-10 15:41:44 +10:00
Andrew Tridgell
63a9b903ba
HAL_ChibiOS: added fallback to microSD for param storage
...
useful for boards without flash sectors setup in bootloader for
storage, but can use microSD
2018-07-10 15:41:44 +10:00
Andrew Tridgell
d35abe67ae
AP_HAL: added optional healthy check on storage object
...
used to check parameter storage is functional
2018-07-10 15:41:44 +10:00
Andrew Tridgell
3e5d5b4095
HAL_VRBRAIN: ensure system_id is nul terminated
2018-07-10 15:40:08 +10:00
Andrew Tridgell
7beb8b4872
HAL_PX4: ensure system_id is nul terminated
2018-07-10 15:40:08 +10:00
Andrew Tridgell
5d8b4c1e23
HAL_ChibiOS: ensure system_id is nul terminated
2018-07-10 15:40:08 +10:00
Andrew Tridgell
6328a7233f
AP_OSD: cope with no EKF for vspeed
2018-07-10 15:40:08 +10:00
Andrew Tridgell
4939f30ec4
AP_HAL: make linux internal i2c be 0xffff
...
based on feedback from Lucas
2018-07-10 15:39:47 +10:00
Andrew Tridgell
b19219d636
HAL_Linux: allow for 16 I2C buses on Linux
2018-07-10 15:39:47 +10:00
Andrew Tridgell
8fd69250bd
AP_Compass: use I2C bus masks
...
this allows for external compasses on all external I2C ports, while
retaining existing device ordering
2018-07-10 15:39:47 +10:00
Andrew Tridgell
6bf3dea5e7
AP_Notify: use I2C bus masks
2018-07-10 15:39:47 +10:00
Andrew Tridgell
cb77cc772c
HAL_PX4: implement I2C bus masks
2018-07-10 15:39:47 +10:00
Andrew Tridgell
070e3cf37b
HAL_Linux: implement I2C bus masks
2018-07-10 15:39:47 +10:00
Andrew Tridgell
4f9bd50038
HAL_ChibiOS: implement I2C bus masks
2018-07-10 15:39:47 +10:00
Andrew Tridgell
281a1b6569
AP_HAL: added I2C bus mask functions and macros
2018-07-10 15:39:47 +10:00
vierfuffzig
bdede462e8
AP_OSD: updated fonts
2018-07-10 12:34:42 +10:00
vierfuffzig
02bc49f6b5
AP_OSD: added roll and pitch angle items
2018-07-10 12:34:42 +10:00
Andrew Tridgell
33653b6734
AP_OSD: added SI and Aviation units
2018-07-10 12:34:42 +10:00
Andrew Tridgell
3292abaa19
HAL_ChibiOS: fixed F412 build
2018-07-10 11:48:06 +10:00
Michael du Breuil
f8e9e57523
AP_Camera: reduce feedback pin timer work, remove unneeded inits
2018-07-09 16:42:17 -07:00
Dr.-Ing. Amilcar do Carmo Lucas
59e087214f
AP_NavEKF2: spell in comments (NFC)
2018-07-10 08:17:57 +09:00
Andrew Tridgell
a561aa2f6d
AP_OSD: allow for runtime H and V offset change
2018-07-10 08:52:02 +10:00
Andrew Tridgell
a085b33729
AP_OSD: make units tables a bit easier to read
...
and add OSD_UNITS parameter
2018-07-10 08:52:02 +10:00
Alexander Malishev
d2e05eb927
AP_OSD: ensure spi_buffer space
2018-07-10 08:52:02 +10:00
Alexander Malishev
ac71a181d6
AP_OSD: refactoring based on review suggestions
2018-07-10 08:52:02 +10:00
Alexander Malishev
e364a815f8
AP_OSD: add warning levels for vbat, rssi and nsat
2018-07-10 08:52:02 +10:00
Alexander Malishev
731ae44ffa
AP_OSD: add imperial units option
2018-07-10 08:52:02 +10:00
Alexander Malishev
eaac477131
AP_OSD: add inverted roll AH and inverted wind direction
2018-07-10 08:52:02 +10:00
Alexander Malishev
7873aff0b8
AP_OSD: allow to fine tune osd position
2018-07-10 08:52:02 +10:00
Alexander Malishev
dc454881df
AP_OSD: increased lat/lon field
...
Lattitude integer part could be 4 char wide like -171.123
2018-07-10 08:52:02 +10:00
Alexander Malishev
8dd4108f3c
AP_OSD: create usable default osd layout
2018-07-10 08:52:02 +10:00
Andrew Tridgell
6eb00b92fd
AP_OSD: don't panic on bad font num in SITL
2018-07-10 07:21:20 +10:00
Randy Mackay
af6c5ebda1
AP_HAL_ChibiOS: reduce default BRD_PWM_COUNT to 4 for fmv3
...
also default relay pins to use aux out 5 and 6
2018-07-10 05:30:05 +10:00
Andrew Tridgell
a7d9f4eef7
HAL_ChibiOS: don't add defaults.parm when building bootloader
2018-07-09 20:59:51 +10:00
Andrew Tridgell
52a8198311
AP_OSD: added font switching at runtime for SITL
2018-07-09 20:48:59 +10:00
Andrew Tridgell
64fae25882
AP_OSD: added runtime font switching
2018-07-09 19:48:09 +10:00
Andrew Tridgell
5682cef162
AP_OSD: created font binaries
2018-07-09 19:48:09 +10:00
vierfuffzig
4f1db0f979
AP_OSD: added fonts and styles
2018-07-09 19:48:09 +10:00
vierfuffzig
795947b405
AP_OSD: Addded README.md for fonts
2018-07-09 19:46:48 +10:00
Andrew Tridgell
7454c9f8c5
AP_OSD: load font on startup
...
this reduces memory fragmemtation and maximises available memory
during update
2018-07-09 19:41:56 +10:00
Andrew Tridgell
6347de2b89
AP_OSD: added OSD_FONT parameter
...
allow for user selection of font
2018-07-09 19:41:56 +10:00
Andrew Tridgell
4055f28bc5
AP_OSD: use font*.bin as font name
2018-07-09 19:41:56 +10:00
Andrew Tridgell
fd02865a8b
HAL_ChibiOS: use wildcard ROMFS name for fonts
2018-07-09 19:41:56 +10:00
Andrew Tridgell
822e20f830
AP_OSD: rename clarity.bin to font0.bin
2018-07-09 19:41:56 +10:00
Andrew Tridgell
e200de1f57
AP_IOMCU: use compressed interface for IO fw upload
2018-07-09 19:41:56 +10:00
Andrew Tridgell
27c435e217
HAL_ChibiOS: use compressed ROMFS for bootloader update
2018-07-09 19:41:56 +10:00
Andrew Tridgell
aa205d0537
AP_OSD: use compressed font file
2018-07-09 19:41:56 +10:00
Andrew Tridgell
c3db5c3da2
AP_ROMFS: added support for compressed files in ROMFS
2018-07-09 19:41:56 +10:00
Andrew Tridgell
3fc6968700
HAL_SITL: allow delay from other than main thread
2018-07-09 19:41:18 +10:00
Andrew Tridgell
3cd6d8cac7
HAL_VRBRAIN: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
2018-07-09 19:41:18 +10:00
Andrew Tridgell
c317cc3fa4
HAL_PX4: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
2018-07-09 19:41:18 +10:00
Andrew Tridgell
492978c0fa
HAL_Linux: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
2018-07-09 19:41:18 +10:00
Andrew Tridgell
a489c93001
HAL_ChibiOS: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
2018-07-09 19:41:18 +10:00
Andrew Tridgell
0e29bcc4ab
AP_IOMCU: use thread_create() API
2018-07-09 19:41:18 +10:00
Andrew Tridgell
b98d941526
AP_OSD: use thread_create API
...
this prevents a freeze in the FAT filesystem from affecting the OSD
2018-07-09 19:41:18 +10:00
Andrew Tridgell
9918ae3209
HAL_Linux: implement thread_create()
2018-07-09 19:41:18 +10:00
Andrew Tridgell
3dfa1f2879
HAL_PX4: implement thread_create() API
2018-07-09 19:41:18 +10:00
Andrew Tridgell
df3ce87e02
HAL_ChibiOS: implement thread_create()
2018-07-09 19:41:18 +10:00
Andrew Tridgell
88842adbd5
HAL_SITL: implement thread_create() API
2018-07-09 19:41:18 +10:00
Andrew Tridgell
e14e0b8a14
AP_HAL: added thread_create() API
...
this is deliberately a minimalistic API, for ease of implementation in
each HAL
2018-07-09 19:41:18 +10:00
Andrew Tridgell
8b337bfc4c
AP_Notify: fixed shadowed variable warning
2018-07-09 19:41:18 +10:00
Andrew Tridgell
a9c570702c
AP_Param: fixed build warning
2018-07-09 19:41:18 +10:00
Andrew Tridgell
5929b5fc33
AP_SerialManager: fixed find_baudrate to return mapped baudrate
2018-07-09 15:41:48 +10:00
Andrew Tridgell
dbe096e2f3
AP_OSD: default OSD_TYPE to SITL when enabled with --osd
2018-07-08 08:22:40 +10:00
Andrew Tridgell
ba1a611ea9
AP_OSD: fixed CPU usage in SITL thread
2018-07-07 13:09:52 +10:00
Andrew Tridgell
12a53ed662
HAL_PX4: fixed link on aerofc-v1
...
it does not have bl_update
2018-07-06 21:18:16 +10:00
Ebin
30b3d63e8a
APM_Control: New default PID values for balance bots
2018-07-06 19:41:09 +10:00
Ebin
ce182fd307
APM_Control: fixed test condition in AR_AttutudeControl.cpp
2018-07-06 19:41:09 +10:00
Peter Barker
d698960728
GCS_MAVLink: correct bad fall-through
2018-07-06 10:43:17 +10:00
Andrew Tridgell
847cb760b4
HAL_ChibiOS: fixed fmuv4-beta hwdef for dup pin
2018-07-06 10:21:12 +10:00
Andrew Tridgell
bf6906819d
HAL_ChibiOS: fixed configure of cube-red
2018-07-06 10:21:12 +10:00
Peter Barker
3710c50c4e
GCS_MAVLink: handle MAV_CMD_ACCELCAL_VEHICLE_POS in GCS base class
2018-07-06 09:43:09 +10:00
Peter Barker
4775a67ea0
GCS_Common: handle command_long in GCS base class
2018-07-06 09:43:09 +10:00
Peter Barker
4ad065de99
GCS_MAVLink: handle command_int in base class
2018-07-06 09:43:09 +10:00
Peter Barker
37145253d9
AP_SerialManager: remove set_console_baud, factor out find_protocol_instance
2018-07-06 09:36:19 +10:00
Alexander Malishev
7a3eb69818
HAL_ChibiOS: allow arm without compass on omnibusf4pro
2018-07-06 09:04:50 +10:00
Andrew Tridgell
570470ac59
AP_AdvancedFailsafe: removed some old AVR code
2018-07-06 09:04:15 +10:00
Andrew Tridgell
fbf24f0492
HAL_ChibiOS: make serial number match HAL_PX4
2018-07-06 09:02:11 +10:00
Andrew Tridgell
840362f355
HAL_ChibiOS: fixed default revo compass orientation
2018-07-05 19:43:12 +10:00
Andrew Tridgell
15ee9593b5
HAL_ChibiOS: fixed duplicate pin definitions
...
thanks to @liang-tang for noticing
2018-07-05 12:07:55 +10:00
Andrew Tridgell
53dcf5bef8
HAL_ChibiOS: fixed build warning with MATEKF405
2018-07-05 11:48:40 +10:00
Andrew Tridgell
d280dbf119
AP_OSD: display --- when no airspeed available
2018-07-05 09:32:09 +10:00
Andrew Tridgell
cdf92c5158
AP_BattMonitor: fixed ESC telem scaling
2018-07-05 09:16:50 +10:00
Andrew Tridgell
f96c3c2c0f
AP_OSD: added check for get_telem_data()
2018-07-05 09:16:50 +10:00
Andrew Tridgell
84d2b1cd93
AP_OSD: make packed decimal the default
...
and fix SITL char spacing
2018-07-05 08:06:04 +10:00
Alexander Malishev
3fb034e350
AP_OSD: fixed packed dot
2018-07-05 08:06:04 +10:00
Andrew Tridgell
5c2c5efc35
HAL_ChibiOS: rename to CubeYellow
2018-07-05 07:53:48 +10:00
Andrew Tridgell
f289c71b89
HAL_ChibiOS: make CubeOrange IDs consistent with CubeBlack
2018-07-05 07:53:48 +10:00
Andrew Tridgell
47fec1859b
HAL_ChibiOS: rename cube-orange to CubeOrange
2018-07-05 07:53:48 +10:00
proficnc
5519986848
HAL_ChibiOS: Added CubeBlack hwdef
2018-07-05 07:53:48 +10:00
Peter Barker
6bf5ffdb6d
AP_NavEKF3: use compass singleton for logging
2018-07-04 20:11:27 +01:00
Peter Barker
baa818a812
AP_NavEKF2: use compass singleton for logging
2018-07-04 20:11:27 +01:00
Peter Barker
4e0c6b873f
DataFlash: use compass singleton for logging
2018-07-04 20:11:27 +01:00
Andrew Tridgell
9df4be7f49
AP_OSD: added blink for SITL backend
2018-07-04 20:53:25 +10:00
Andrew Tridgell
7d4a6795d8
AP_OSD: use a thread for SITL OSD
...
this allows for window scaling and should fix ubuntu 18 warning
2018-07-04 20:53:25 +10:00
Andrew Tridgell
7ce72fe571
AP_OSD: fixed sign of altitude
2018-07-04 18:47:14 +10:00
Andrew Tridgell
af46388d6c
AP_OSD: added option to pack decimal numbers
2018-07-04 18:47:14 +10:00
Andrew Tridgell
5ef0c454e3
AP_OSD: fixed sign on GPS coords
2018-07-04 18:47:14 +10:00
Kelly-Foster
dcc272bd6f
AP_OSD: widgets for BLHeli32 ESC amps, temp, rpm, and GPS lat/long
2018-07-04 18:47:14 +10:00
Andrew Tridgell
9702f4f822
AP_OSD: fixed vector orientation
2018-07-04 17:16:45 +10:00
Alexander Malishev
38c71bbfc7
AP_OSD: fixed up/down arrows
2018-07-04 17:16:45 +10:00
Alexander Malishev
64cfa3beef
AP_OSD: fixed vertical speed item
2018-07-04 17:16:45 +10:00
Alexander Malishev
e2b431f69f
AP_OSD: fixed speed vector calculation
2018-07-04 17:16:45 +10:00
Alexander Malishev
2ef82173b4
AP_OSD: fixed review issues
2018-07-04 17:16:45 +10:00
Alexander Malishev
e9600d9a08
AP_OSD: reduce width of the vspeed item
2018-07-04 17:16:45 +10:00
Alexander Malishev
f23a40d967
AP_OSD: fixed type in the script
2018-07-04 17:16:45 +10:00
Alexander Malishev
e59e7a3754
AP_OSD: added airspeed and climbrate
2018-07-04 17:16:45 +10:00
Alexander Malishev
982e1e45dc
AP_OSD: add wind speed/direction item
2018-07-04 17:16:45 +10:00
Alexander Malishev
d73a7c051d
AP_OSD: show direction of the groundspeed vector
2018-07-04 17:16:45 +10:00
Alexander Malishev
c05bae3ca2
AP_OSD: add compass item
2018-07-04 17:16:45 +10:00
Peter Barker
e400a0e351
AP_Arming: use ArmingMethod enumeration
2018-07-03 15:16:38 +10:00
Peter Barker
6979f0d3a0
AP_Arming: remove unused arming_method member
2018-07-03 15:16:38 +10:00
Peter Barker
598f82a2fe
AP_Arming: use singletons in AP_Arming
2018-07-03 13:44:11 +10:00
Peter Barker
051c811bfb
AP_Compass: make compass_cal_requires_reboot const
2018-07-03 13:44:11 +10:00
Peter Barker
e7b409924c
GCS_Common: send 0 rather than 1 in servo zero-rc-outputs
2018-07-03 12:12:25 +10:00
Peter Barker
f7daf1c676
GCS_MAVLink: rearrange code for clarity
2018-07-03 12:12:25 +10:00
Peter Barker
11df6debd0
GCS_MAVLink: move mavlink reboot code up to base class
2018-07-03 12:12:25 +10:00
Peter Barker
73bbe8b84e
GCS_MAVLink: send ack before board reboot
...
Based on https://github.com/ArduPilot/ardupilot/pull/6640
2018-07-03 12:12:25 +10:00
vierfuffzig
41e84fa627
AP_OSD: implement throttle and heading
2018-07-03 07:29:43 +10:00
Andrew Tridgell
94d8010a16
GCS_MAVLink: expose HUD throttle accessor
2018-07-03 07:29:43 +10:00
Jacob Walser
24e21b57ca
AP_Motors: add output_test_num api for motor testing
2018-07-02 11:31:58 -04:00
Jacob Walser
abcb845af5
AP_Motors: refactor output_test -> output_test_seq
2018-07-02 11:31:58 -04:00
Jacob Walser
9ce9f95692
AP_Motors: make output_test signatures consistent and ensure override
...
specifier on derived classes
2018-07-02 11:31:58 -04:00
Alexander Malishev
802f6a4a1c
AP_OSD: fixed horizon roll/pitch signs
2018-07-02 21:38:32 +10:00
Alexander Malishev
ec528b2c18
AP_OSD: fix home direction
2018-07-02 21:38:32 +10:00
Alexander Malishev
11131d34e3
AP_OSD: give credits to the original authors
2018-07-02 21:38:32 +10:00
Peter Barker
fc378eeae1
DataFlash: move log-transfer state variables into enumerated variable
2018-07-02 10:46:52 +10:00
Peter Barker
4c2925d693
AP_Compass: remove pointless initialisations
...
If you are allocating one of these on the stack you're doing something
wrong.
2018-07-02 10:44:34 +10:00
Andrew Tridgell
0af83f9364
AP_OSD: use correct SFML header file
2018-07-02 10:43:48 +10:00
Andrew Tridgell
d3bc281a10
HAL_ChibiOS: use generic ROMFS embedding system
2018-07-02 10:43:48 +10:00
Andrew Tridgell
8ba137bd9a
waf: moved ROMFS embed script into waf folder
2018-07-02 10:43:48 +10:00
Peter Barker
20d22f3629
AP_Math: quaternion requires isnan, so include math.h to get it
2018-07-02 09:31:11 +10:00
Peter Barker
493f958eb2
DataFlash: remove unused ReadBlock method
2018-07-02 09:00:51 +10:00
Andrew Tridgell
35192a6162
AP_OSD: added SITL OSD backend
2018-07-01 21:21:28 +10:00
Alexander Malishev
0169a9287d
AP_OSD: fixed issues with horizont and home
...
Fixed roll direction.
Fixed home direction at small distances
2018-07-01 20:26:53 +10:00
Alexander Malishev
daf13cb9f4
AP_OSD: add home item
2018-07-01 20:26:53 +10:00
Alexander Malishev
d2e2a5b2ea
AP_OSD: fixes in screen swithing methods
...
Do not switch to the next screen just after initialization.
Reduced auto switch interval to 1s.
Allow switch sreen in autoswitch mode just after transition.
2018-07-01 20:26:53 +10:00
Alexander Malishev
c0db1a3625
AP_OSD: fix warnings
2018-07-01 20:26:53 +10:00
Alexander Malishev
9b687e0e50
AP_OSD: use autoscroll in text messages, add artificial horizon
2018-07-01 20:26:53 +10:00
Alexander Malishev
1949166dde
AP_OSD: add two new methods to switch osd screen
2018-07-01 20:26:53 +10:00
Alexander Malishev
d0571f55ed
AP_OSD: use autoincrement mode to reduce spi traffic
2018-07-01 20:26:53 +10:00
Peter Barker
be19ae41d4
AP_HAL_SITL: increase debug for SIM connections
2018-06-30 10:11:10 +10:00
Peter Barker
c5d13847b2
AP_HAL_SITL: set cloexec on sitl-gps file descriptors
2018-06-29 21:53:14 +10:00
Peter Barker
6d6366df48
SITL: Sim_Vicon: set CLOEXEC on vicon file decsriptor
2018-06-29 21:53:14 +10:00
Andrew Tridgell
e5435e02ad
HAL_ChibiOS: report system ID in mavlink and logs
2018-06-29 20:27:36 +10:00
Andrew Tridgell
eb2c9dfe74
AP_HAL: define CHIBIOS_SHORT_BOARD_NAME if not defined
2018-06-29 20:27:36 +10:00
Peter Barker
e577a5564f
AP_HAL_SITL: correct segfault when uartg configured
2018-06-29 18:47:30 +10:00
Peter Barker
ed724bc2be
AP_HAL_SITL: strip -w parameter on SITL reboot
2018-06-29 10:54:27 +10:00
Andrew Tridgell
b4d527a9f8
HAL_PX4: support flashing bootloader with MAVLink command
2018-06-29 09:00:40 +10:00
Michael du Breuil
4299eb9ba8
AP_Terrain: Reduce memory consumption, simplify enable checking
2018-06-29 09:00:01 +10:00
Andrew Tridgell
ca3beb88b7
HAL_ChibiOS: allow for telem1 and telem2 for bootloader on fmuv3
2018-06-29 08:17:38 +10:00
Andrew Tridgell
6cf205bdbe
HAL_ChibiOS: make sure we populate up to uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
dd059b89f3
HAL_ChibiOS: added uartG for fmuv4 and fmuv5
2018-06-29 08:17:38 +10:00
Andrew Tridgell
759121f0d0
AP_SerialManager: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
9e7d93ff48
HAL_VRBrain: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
5862138a4b
HAL_SITL: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
3fe04e941f
HAL_PX4: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
9ae6734469
HAL_Linux: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
e120f8be24
HAL_F4Light: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
4ff57bd512
HAL_Empty: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
0a5d287326
HAL_ChibiOS: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
d1fcf2bab6
AP_HAL: added uartG
...
one more uart ...
2018-06-29 08:17:38 +10:00
Lucas De Marchi
1a45aa12f5
AP_Param: warn on last pass only about unknown parameters
...
Do not warn about unknown parameters on the first pass, i.e. when
AP_Param:load_all() is called. This is because we may still not know
about dynamically loaded parameters. When we call the second (last)
time, we expect to already know all possible parameters, so print a
warning to both console and the debug terminal.
2018-06-28 10:18:19 -07:00
Lucas De Marchi
7f0d5ddf21
AP_Param: stop panic()'ing on unknown parameters
...
Our track record on keeping parameters up to date with master is not
great and panic()'ing when loading them apparently is not helping
because every and each vehicle has a different file.
On aerofc load_defaults_file() is used in the same way as
load_embedded_param_defaults() is in which the panic() behavior has been
previously removed.
This finishes the removal of the panic param and add warnings to the
debug console when reading the parameters (rather than when counting
them).
2018-06-28 10:18:19 -07:00
Ebin
97a260a980
APM_Control: get_throttle_out_from_pitch() accepts dt as argument
2018-06-28 21:55:20 +09:00
Ebin
10914d88b7
SITL: all unchanged variables declared const in BalanceBot::update()
2018-06-28 21:55:20 +09:00
Ebin
657ff06380
APM_Control: added balancing function for BalanceBot
2018-06-28 21:55:20 +09:00
Ebin
a40de48809
AP_HAL_SITL: added BalanceBot to SITL_cmdline
2018-06-28 21:55:20 +09:00
Ebin
3a171c56b5
SITL: Added BalanceBot
2018-06-28 21:55:20 +09:00
Peter Barker
5d1d435451
AP_Arming: add type-correctness for is-armed check
...
Also, correct the constant we're testing against
2018-06-28 12:48:31 +10:00
Peter Barker
72d7181e0d
AP_Arming: remove pointless initialisations
...
These are part of a static object
2018-06-28 12:48:31 +10:00
Peter Barker
e3dc408295
AP_Arming: move copter-specific code into Copter subclass
2018-06-28 12:48:31 +10:00
Andrew Tridgell
963675689c
HAL_ChibiOS: fixed substitution of %BOARD%-BL
2018-06-28 11:35:13 +10:00
Andrew Tridgell
54dc67e2a9
HAL_ChibiOS: default bootloader product string to XX-BL
2018-06-28 11:35:13 +10:00
Andrew Tridgell
946d0208e5
HAL_ChibiOS: fixed stm32f7 cache bug in erase flash page
2018-06-28 11:35:13 +10:00
Andrew Tridgell
d183efa720
HAL_ChibiOS: fixed USB string of fmuv5 bootloader
2018-06-28 11:35:13 +10:00
Andrew Tridgell
2b7b499c63
HAL_ChibiOS: added support for RTC sig for fast boot
2018-06-28 11:35:13 +10:00
Andrew Tridgell
a3e44b3249
GCS_MAVLink: fix from review comment
...
thanks Pierre
2018-06-28 11:35:13 +10:00
Andrew Tridgell
f7f9d2b0e7
HAL_ChibiOS: added fmuv4 bootloader hwdef-bl.dat
2018-06-28 11:35:13 +10:00
Andrew Tridgell
3a5b3b4b1b
HAL_ChibiOS: fixed adding bootloader to ROMFS
2018-06-28 11:35:13 +10:00
Peter Barker
e332bece0f
AP_HAL_ChibiOS: embed any bootloader found for a board
2018-06-28 11:35:13 +10:00
Peter Barker
4a8614fbbd
GCS_MAVLink: handle MAV_CMD_FLASH_BOOTLOADER
2018-06-28 11:35:13 +10:00
Peter Barker
a81b3c8a7c
AP_HAL_ChibiOS: specify bootloader for sparky2
2018-06-28 11:35:13 +10:00
Peter Barker
f07b6f3d78
AP_HAL_ChibiOS: add support for flashing bootloader
2018-06-28 11:35:13 +10:00
Peter Barker
b9b0ef0c77
AP_HAL: add flash_bootloader to AP_HAL API
2018-06-28 11:35:13 +10:00
ChristopherOlson
1709c258bf
AP_Motors:TradHeli - fix metadata for H_COL_CTRL_DIR
2018-06-28 09:02:48 +09:00
Pierre Kancir
0ee6e41f6e
AP_IRLock: Replace find_object with SITL singleton
2018-06-27 14:59:33 -07:00
Patrick José Pereira
b66b4775bc
SITL: Replace find_object with SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-27 14:59:33 -07:00
Patrick José Pereira
32fa7e2c2a
AP_RangeFilter: Fix equality comparison with extraneous parentheses
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-27 14:59:33 -07:00
Michael du Breuil
2577e5ff25
AP_HAL: Don't always define GPIO pins, they may be connected to real
...
hardware
2018-06-27 15:25:44 +10:00
Michael du Breuil
72439a053b
AP_Notify: Handle LED pins being undefined, select appropriate drivers
2018-06-27 15:25:44 +10:00
Michael du Breuil
c5669a614e
AP_Notify: Remove unneeded init guards
2018-06-27 15:25:44 +10:00
Michael du Breuil
565a84efcb
AP_Notify: Remove unreachable ChibiOS defines, enable BoardLed
2018-06-27 15:25:44 +10:00
Michael du Breuil
abda44e886
AP_Notify: Move driver deletion to backend creation macro
...
Creates a dense array of drivers we want to update, reduces runtime
overhead, allows us to try detecting more backends then are present
2018-06-27 15:25:44 +10:00
Michael du Breuil
8e8e9a5a58
AP_Notify: Delete drivers that are not present
2018-06-27 15:25:44 +10:00
Michael du Breuil
d0cd37fabb
AP_Notify: Reduce flash consumption, remove unneeded middleware classes
2018-06-27 15:25:44 +10:00
Andrew Tridgell
10533fb249
HAL_ChibiOS: enable OSD font on OMNIBUSF7V2
2018-06-27 14:55:00 +10:00
Andrew Tridgell
ea3467348e
AP_OSD: fixed typo
2018-06-27 14:55:00 +10:00
Andrew Tridgell
a86c4d27e1
AP_OSD: fixed CI build error
2018-06-27 14:55:00 +10:00
vierfuffzig
aeaf695d83
AP_OSD: add ground speed item
2018-06-27 14:55:00 +10:00
Alexander Malishev
fcd351b5c0
AP_OSD: fixed gps stat and messages items, reformat
2018-06-27 14:55:00 +10:00
Alexander Malishev
af96673004
AP_OSD: added screen switch by rc channel
2018-06-27 14:55:00 +10:00
Alexander Malishev
e487f37fd7
HAL_ChibiOS: added font check on startup
...
Based on Andrew Tridgell suggestion
2018-06-27 14:55:00 +10:00
Alexander Malishev
79b289f97e
HAL_ChibiOS: reverted change in omnibus hwdef.dat
2018-06-27 14:55:00 +10:00
Andrew Tridgell
43d0a61da0
AP_OSD: fixed build
2018-06-27 14:55:00 +10:00
Andrew Tridgell
76fd0962e7
AP_OSD: fixes from review comments
2018-06-27 14:55:00 +10:00
Andrew Tridgell
06fdc50169
AP_OSD: switched to 2-d arrays
...
makes it a bit easier to read
2018-06-27 14:55:00 +10:00
Andrew Tridgell
2fb63828bb
AP_OSD: use fixed array sizes
...
the allocation didn't win anything as the backend is already allocated
2018-06-27 14:55:00 +10:00
Andrew Tridgell
2c29d1c297
AP_OSD: tidy ups
2018-06-27 14:55:00 +10:00
Andrew Tridgell
5dc3515c83
AP_OSD: fixed X range
2018-06-27 14:55:00 +10:00
Andrew Tridgell
8f8107d13f
AP_OSD: moved to new parameter system
2018-06-27 14:55:00 +10:00
Andrew Tridgell
8e8508a9f3
HAL_ChibiOS: enable OSD for MatekF405
2018-06-27 14:55:00 +10:00
Andrew Tridgell
cf19e7a3ae
HAL_ChibiOS: enabled OSD on KakuteF4
2018-06-27 14:55:00 +10:00
Alexander Malishev
c1d82a43c5
AP_OSD: initial version
2018-06-27 14:55:00 +10:00
Alexander Malishev
568e5a24b4
AP_Notify: initial OSD support
2018-06-27 14:55:00 +10:00
Alexander Malishev
8ce7ef1342
HAL_ChibiOS: added OSD support for MatekF405 and Omnibuspro
2018-06-27 14:55:00 +10:00
Andrew Tridgell
35f835a021
HAL_ChibiOS: improved OMNIBUSF7V2 support
2018-06-27 13:01:30 +10:00
Andrew Tridgell
7cce23671a
HAL_CbibiOS: removed unnecessary BOARD_SUBTYPE define
...
just causes build warnings
2018-06-27 11:37:45 +10:00
Andrew Tridgell
5bf078cc86
HAL_ChibiOS: fixed build with -Werror-sign-compare
2018-06-27 11:37:45 +10:00
Alexander Malishev
14db344c12
AP_RCProtocol: improve s-bus parsing
...
This relax s-bus timing requirement to allow not so perfect signals.
Fixes s-bus on s-bus pin in matekf405-wing
Also fixed comment a bit
2018-06-27 09:10:11 +10:00
Lucas De Marchi
49d08ba72a
Global: remove minlure
...
Minlure is a port of ArduPilot to Minnow Board connected to daughter
board. Very few of those were produced and nobody is flying with it.
It served its purpose and all the the improvements to ArduPilot remain
regardless of it not being supported anymore. Now it's just adding
maintenance work with no clear benefit, so pull the plug.
2018-06-26 07:32:08 -07:00
Lucas De Marchi
d31e85e738
AP_HAL_Linux: fix copy and paste error on gpio table
2018-06-26 07:32:08 -07:00
Peter Barker
9eb53e333b
AP_Compass: tidy consistency calculations
...
AP_Compass: normalize vectors in-place to save a few bytes (thanks MdB)
2018-06-26 18:37:55 +10:00
Michael du Breuil
a92c4aa9fd
AP_HAL: Update comment on UARTDriver::begin to reflect automatic
...
clearing
2018-06-26 02:18:18 +01:00
Michael du Breuil
3af6b78d67
AP_HAL_VRBrain: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
8680f1ab52
AP_HAL_SITL: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
512939a839
AP_HAL_PX4: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
7043738f3b
AP_HAL_Linux: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
153ee6ca8e
AP_HAL_ChibiOS: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
037e53ba8a
AP_HAL_ChibiOS: Reduce flash space of UARTDriver
...
Saves 32 bytes
2018-06-26 02:18:18 +01:00
Peter Barker
e7e0ee0b50
AP_Proximity: add methods covering sensor health, enable and present
2018-06-26 10:25:28 +10:00
Pierre Kancir
bffe3f6c21
AC_WPNav: add getter for crosstrack_error
2018-06-26 08:42:14 +09:00
Michael du Breuil
d977ca091a
AP_Arming: Correct an edge case that would not run compass checks
2018-06-26 09:26:29 +10:00
Patrick José Pereira
cd5c59773b
AP_HAL_SITL: Use SITL, baro, INS and compass singletons
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
a4d8ed4b75
AP_HAL_SITL: Use reinterpret_cast with AP_Param::find_object
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
ae378f0fb3
SITL: Use reinterpret_cast with AP_Param::find_object
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
f68b07df1f
SITL: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
00cb588257
AP_RPM: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
50613c3800
AP_Proximity: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
653784479e
AP_OpticalFlow: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
0c06bf89e5
AP_InertialSensor: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
e456655932
AP_Compass: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
37fbd6aaa1
AP_Beacon: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
4ae6bd2c7e
AP_Baro: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
819f08b7f7
AP_AHRS: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Andrew Tridgell
a0b4553a26
HAL_ChibiOS: fixed bootloader build issue
2018-06-25 21:22:31 +10:00
Andrew Tridgell
bf6fb72904
HAL_ChibiOS: fixed 32 bit flash writes
2018-06-25 21:22:31 +10:00