chobits
ea1a6b2044
AP_GPS: set have_vertical_velocity if MAVLink GPS report it
2018-03-01 14:31:56 -07:00
night-ghost
b773334008
AP_HAL_F4Light: disable AP_Stats to reduce flash degradation
2018-03-02 07:23:35 +11:00
Peter Barker
dbe860152d
AP_NavEKF2: tight types on constants
...
This saves ~200 bytes on at stm32 build, at the expense of people having
to watch the type carefully when increasing the values
2018-03-01 20:27:19 +09:00
Peter Barker
3a99b2bce1
AP_NavEKF: move initialisation of EKF constants into header file
...
Various comments where getting out of sync with one-another, and
having everything in one place lets you match values against types.
2018-03-01 20:27:19 +09:00
night-ghost
c41d7d9486
AP_HAL_F4Light: build changed to use bootloader
...
also added generation of .apj images
2018-03-01 20:33:21 +11:00
Andrew Tridgell
312bde54b4
HAL_ChibiOS: added fmuv2 build for 1M flash boards
2018-03-01 15:25:55 +11:00
Francisco Ferreira
e4382c2232
AP_HAL_ChibiOS: fix CAN thread name
2018-02-28 11:37:55 +09:00
Francisco Ferreira
146143ff2e
AP_Rangefinder: adapt to new serial manager enum name
...
Lidar is now called Rangefinder
2018-02-28 08:04:16 +09:00
Francisco Ferreira
0340188a8f
AP_SerialManager: rename Lidar to Rangefinder
2018-02-28 08:04:16 +09:00
Francisco Ferreira
45531775cd
AP_Rangefinder: support multiple serial rangefinders
2018-02-28 08:04:16 +09:00
Francisco Ferreira
5999421c72
AP_RangeFinder: uLanding now uses the Lidar protocol
...
uLanding was using a specific protocol in serial manager, but that's not needed and would break following work
As previously, baudrate is hardcoded
2018-02-28 08:04:16 +09:00
Francisco Ferreira
972264637c
AP_SerialManager: remove special uLanding protocol type
...
Old protocol will be changed to Lidar on library init
2018-02-28 08:04:16 +09:00
night-ghost
75180c3c08
AP_HAL_F4light: fixes OSD compilation issue
2018-02-26 22:05:16 +11:00
Andrew Tridgell
6241ca4527
GCS_MAVLink: send 65535 for 16 bit meminfo
...
when above 65535 send 65535, so users don't get worried about low memory
on ChibiOS where they often have more than 64k available
2018-02-26 22:04:33 +11:00
Andrew Tridgell
2581965669
HAL_ChibiOS: fixed mini-pix IMU orientation
2018-02-26 19:16:24 +11:00
mirkix
234dcc1939
AP_HAL_Linux: fix BeagleBone Blue voltage divider
2018-02-23 18:35:55 +10:00
Peter Barker
e05cba5d2c
DataFlash: remove default reason of zero from Log_Write_Mode
...
All vehicles now supply this reason all the time
2018-02-22 10:30:10 +10:00
night-ghost
ab413b4605
AP_Notify: added personal support for AP_HAL_F4light
2018-02-22 08:10:32 +11:00
night-ghost
e2b628c471
AP_HAL_F4light: fixed compilation for boards AirbotF4, AirbotV2 and CL_Racing_F4. Corrected prefix for binaries
2018-02-22 08:10:32 +11:00
cclauss
094e284737
HAL_F4Light: print() is a function in modern Python
2018-02-22 08:08:07 +11:00
Mark Whitehorn
83f4bf3390
DataFlash: add load_average() to PM log message
2018-02-21 23:53:08 +10:00
Mark Whitehorn
919383a739
AP_Scheduler: add load_average() to PM log message
2018-02-21 23:53:08 +10:00
Mark Whitehorn
90d32abd47
DataFlash: add percent to UnitStructure
2018-02-21 23:53:08 +10:00
Peter Barker
6a862c6e24
SITL: make home location parsing verbose
...
Given we don't fail to start SITL if the home location fails to parse,
we should at least make the user very aware that their home location
string is bad.
This commit makes failures verbose, and outputs the parsed location
values rather than regurgitating the location string the user supplied;
it was very misleading in that the location could simply fail to parse
and thus be unused.
2018-02-21 23:51:56 +10:00
Dr.-Ing. Amilcar Do Carmo Lucas
d1a96ca4ff
AP_ADSB: fix spelling in comments
...
non-functional change
2018-02-21 22:15:45 +09:00
Paul Riseborough
6a1055389d
AP_NavEKF3: Fix origin height estimator indexing bug
...
EKF3 should use index 9 to access vertical position states
2018-02-21 17:04:30 +10:00
Jacob Walser
582ef7ca5c
GCS_MAVLink: handle reset params to defaults command
2018-02-20 10:49:09 +11:00
Andrew Tridgell
11cfa5fd01
HAL_ChibiOS: correct LSM9DS0 bus IDs to match HAL_PX4
2018-02-19 15:49:32 +11:00
Andrew Tridgell
ead72214ac
AP_OpticalFlow: support SP01 board
2018-02-14 18:27:00 +11:00
Andrew Tridgell
4d0c3b6581
HAL_ChibiOS: added pixartPC15 SPI device for SPI01
2018-02-14 18:27:00 +11:00
Andrew Tridgell
9e272b7a95
AP_Baro: support SP01 board
2018-02-14 18:27:00 +11:00
Andrew Tridgell
b61caa9c57
AP_InertialSensor: added SP01 board type
2018-02-14 18:27:00 +11:00
Andrew Tridgell
f61591c426
AP_Compass: added SP01 board type
2018-02-14 18:27:00 +11:00
Andrew Tridgell
f7ec2618a3
AP_BoardConfig: added SP01 board type
2018-02-14 18:27:00 +11:00
Andrew Tridgell
60b6f4c11d
AP_HAL: added crazyflie2
2018-02-14 18:27:00 +11:00
Andrew Tridgell
c4445a7dfd
AP_HAL_ChibiOS: initial hwdef for crazyflie2
2018-02-14 18:27:00 +11:00
Andrew Tridgell
a6e0bb4ed0
HAL_ChibiOS: fixed uart order for revo-mini
...
and setup right battery pins
2018-02-14 18:27:00 +11:00
Andrew Tridgell
fba962f7ff
HAL_PX4: allow for different LED pins
...
and fixed build
2018-02-14 18:27:00 +11:00
Andrew Tridgell
17b3607aa8
HAL_ChibiOS: fixed RCIN on revo-mini
...
this also adds an attempt at using 'N' (inverted) channels for
RCIN. This doesn't work yet, but would be better for the revo-mini, as
it would allow the normal RCIN pin to be used
2018-02-14 18:27:00 +11:00
Andrew Tridgell
c6879c679a
HAL_ChibiOS: re-enable USART1 on revo-mini
2018-02-14 18:27:00 +11:00
Andrew Tridgell
310acd333e
AP_HAL: use 1/0 not HIGH/LOW for LEDs in ChibiOS
2018-02-14 18:27:00 +11:00
Andrew Tridgell
427e00dd41
HAL_ChibiOS: switched to system timer for AP_HAL::micros()
...
this uses the ChibiOS system timer instead of a separate GPT timer for
the core ChibiOS timer. The advantage is it saves us a timer, plus it
changes ChibiOS to use a 1MHz clock on its timer, which gives us
higher resolution for delays.
This has a remarkable effect on timing jitter, reducing it greatly
2018-02-14 18:27:00 +11:00
Andrew Tridgell
ceeb5e6892
AP_HAL: use 1/0 not HIGH/LOW for LED polarity
...
this fixes the build for pixracerled driver on px4-v2
2018-02-14 18:27:00 +11:00
Andrew Tridgell
f357eec78b
HAL_ChibiOS: added more comments in hwdef.dat
2018-02-14 18:27:00 +11:00
Andrew Tridgell
9a95737d7d
HAL_ChibiOS: added lots of comments to FMUv3 hwdef.dat
...
this should help for developers of new boards
2018-02-14 18:27:00 +11:00
Andrew Tridgell
a057498e0c
HAL_ChibiOS: pull PA9 PA10 high on revo-mini
...
needed for correct operation of USB
2018-02-14 18:27:00 +11:00
Andrew Tridgell
0fdef97c76
AP_Notify: allow ChibiOS to use PixracerLED driver
2018-02-14 18:27:00 +11:00
Andrew Tridgell
66608e8cad
HAL_ChibiOS: improved mini-pix support
2018-02-14 18:27:00 +11:00
Andrew Tridgell
52815cd952
AP_Compass: fixed compass orientation for mini-pix
2018-02-14 18:27:00 +11:00
Andrew Tridgell
f85c82ee5d
AP_Baro: fixed baro scaling for LPS2XH
2018-02-14 18:27:00 +11:00
ljwang
59ee3c8f62
AP_HAL: support mini-pix
2018-02-14 18:27:00 +11:00
ljwang
9b99a0ce55
AP_HAL_ChibiOS: fixed mini-pix hwdef.dat
2018-02-14 18:27:00 +11:00
ljwang
231aa16835
AP_Compass: support mini-pix
2018-02-14 18:27:00 +11:00
ljwang
88effef51a
AP_Baro: support mini-pix using LPS25H SPI barometer
...
allow LPS22H and LPS25H to share a driver
2018-02-14 18:27:00 +11:00
Andrew Tridgell
c3f8d5580a
HAL_ChibiOS: undef log directory for skyviper-v2450
2018-02-14 07:39:27 +11:00
Andrew Tridgell
6cc007598e
AP_Scheduler: initialise _last_loop_time_s in init()
2018-02-13 17:15:05 +11:00
Andrew Tridgell
8907cb3b23
AP_Scheduler: time in seconds should be a float
2018-02-13 17:15:05 +11:00
Peter Barker
8288198ac8
AP_Scheduler: force single-precision floating point calculations
2018-02-13 17:15:05 +11:00
Andrew Tridgell
491715bec7
AP_Scheduler: added get_last_loop_time_s()
...
this gives compatibility with previous G_Dt in copter
2018-02-13 17:15:05 +11:00
Andrew Tridgell
f436901517
AP_Scheduler: fixed perf info to match previous behaviour
2018-02-13 17:15:05 +11:00
Andrew Tridgell
b7c4dea9d3
HAL_ChibiOS: gain back 250usec in loop time
...
if we have already called delay_microseconds_boost() then we know
we've given up time to drivers, so we can avoid the extra delay in the
HAL
2018-02-13 17:15:05 +11:00
Andrew Tridgell
e0c9d9b592
AP_Scheduler: fixed loop time available
2018-02-13 17:15:05 +11:00
Andrew Tridgell
24d6493453
AP_Scheduler: make loop times cover INS wait_for_sample
...
this matches past behaviour, and gives much more useful information to
a user wanting to know if their board it meeting its desired loop rate
2018-02-13 17:15:05 +11:00
Andrew Tridgell
434c3fffc7
AP_Scheduler: fixed filtered loop time
2018-02-13 17:15:05 +11:00
Andrew Tridgell
620d6ab4b8
AP_Scheduler: fixed merge issues
2018-02-13 17:15:05 +11:00
Peter Barker
73c0905b5e
AP_Scheduler: pass log-performance-bit at init time rather than update time
2018-02-13 17:15:05 +11:00
Peter Barker
4672e9d4eb
AP_Scheduler: resolve debug name conflict
2018-02-13 17:15:05 +11:00
Peter Barker
30d813a83e
DataFlash: move logging of PM messages to AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
d3c1b720c6
AP_Scheduler: move logging of PM messages to AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
d151b27e92
AP_Scheduler: move PERF: statustext sending into AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
baa6e04854
AP_Scheduler: change loop time to remove sleeping in wait_for_sample
2018-02-13 17:15:05 +11:00
Peter Barker
4909000441
AP_Scheduler: implement loop()
2018-02-13 17:15:05 +11:00
Peter Barker
096f7367bf
AP_InertialSensor: add ins() to AP:: namespace
2018-02-13 17:15:05 +11:00
Peter Barker
e713802c24
AP_Scheduler: add accessor for tick counter
2018-02-13 17:15:05 +11:00
Peter Barker
ae9d4d514d
AP_Scheduler: PerfInfo: allow specification of loop rate
2018-02-13 17:15:05 +11:00
Peter Barker
d1781532d4
AP_Scheduler: PerfInfo: add pragma-once to header
2018-02-13 17:15:05 +11:00
Tom Pittenger
793f50808d
AP_GPS: add param defaults for EMLID_EDGE for GPS_TYPE=9
2018-02-13 15:29:53 +11:00
Tom Pittenger
3105fd56bc
AP_BoardConfig: add param defaults for EMLID_EDGE for CAN_DRIVER=1
2018-02-13 15:29:53 +11:00
Tom Pittenger
a2f1f63ab3
AP_HAL: add param defaults for EMLID_EDGE for GPS_TYPE=9 and CAN_DRIVER=1
2018-02-13 15:29:53 +11:00
Alexey Bulatov
8369f125ce
AP_HAL: Edge: add define HAL_WITH_UAVCAN
2018-02-13 13:52:44 +11:00
Mark Whitehorn
da69832140
AP_HAL_ChibiOS: add #ifdef around toneAlarm thread stack declaration
2018-02-13 07:27:02 +11:00
Lucas De Marchi
755b1cdced
AP_HAL_Linux: rpi: sort include headers
2018-02-12 09:05:21 -08:00
Lucas De Marchi
90160a9c52
AP_HAL_Linux: rpi: use const var and fix formatting
...
Use a const variable instead of a define so we don't polute the
environment with a define specific to this function.
Also remove tabs and replace with proper coding style.
2018-02-12 08:46:36 -08:00
Dmitri Ranfft
05ebabbf6b
AP_HAL_Linux: fixed RPi version detection on kernel 4.9
2018-02-12 08:36:58 -08:00
murata
7be15cab45
AP_HAL: disable copter winch on f4light boards
2018-02-12 12:17:12 +09:00
Randy Mackay
ec98cab262
AP_WheelEncoder: hide parameters by default
2018-02-12 12:16:41 +09:00
mirkix
3aa211b325
AP_HAL: fix BeagleBone Blue external I2C number
2018-02-12 09:49:56 +09:00
Tom Pittenger
1db04772b2
AP_UAVCAN: non-functional change - fix style
...
non-functional change - fix style
2018-02-10 23:48:23 -08:00
Nikita Tomilov
2a34593ed3
AP_UAVCAN: Magnetic: allow more than one compass on one node
...
To do so, we make use of UAVCAN message MagneticFieldStrength2, which
has a field describing the sensor_id of the node which measurements were
sent, and if a node sends this message we register multiple
AP_Compass_UAVCAN backends for this node. The routing of the messages
between those backends is also implemented here.
2018-02-10 23:48:23 -08:00
Nikita Tomilov
00a013e5be
AP_UAVCAN: utilizing MagneticFieldStrength2 message
...
This makes AP_UAVCAN_Compass work with this message. This will be used
later on for Edge GNSS which has two compasses.
2018-02-10 23:48:23 -08:00
Mark Whitehorn
59b2d44323
AP_HAL_ChibiOS: make ToneAlarm compilation conditional on presence of
...
alarm pin
2018-02-11 14:55:23 +11:00
Mark Whitehorn
d569e35a0f
AP_HAL_ChibiOS: add toneAlarm support for ChibiOS on MindPX-v2
2018-02-11 14:55:23 +11:00
Mark Whitehorn
6baad37e47
AP_HAL_ChibiOS: add ICM208060-am to SPI device table in fmuv3/hwdef.dat
2018-02-11 14:55:23 +11:00
Mark Whitehorn
13c54c0543
AP_HAL_ChibiOS: add missing declaration in chibios_hwdef.py
2018-02-11 14:55:23 +11:00
Mark Whitehorn
3a40ba1d3e
AP_HAL_ChibiOS: add buzzer support to hwdef.dat for fmuv3
2018-02-11 14:55:23 +11:00
Mark Whitehorn
fb142422f6
AP_HAL_ChibiOS: pull ALARM_CHANNEL into pwmGroup
...
and improve formatting of HAL_PWM_ALARM in hwdef.h
2018-02-11 14:55:23 +11:00
Mark Whitehorn
8b216cf182
AP_HAL_ChibiOS: add ToneAlarm thread
...
fmuv4 hwdef.dat: remove PWM label from buzzer output pin
add buzzer pin labeled ALARM
remove timer PWM from HAL_PWM_GROUPs
2018-02-11 14:55:23 +11:00
Mark Whitehorn
d200f30cd7
AP_Notify: add ToneAlarm backend for ChibiOS
2018-02-11 14:55:23 +11:00
Randy Mackay
3bec25da85
AP_Compass: resolve compiler warnings
2018-02-10 08:54:34 +09:00
Andrew Tridgell
55358459c7
AP_AHRS: fixed AP_MODULE_SUPPORTED
2018-02-10 10:50:22 +11:00