Commit Graph

23109 Commits

Author SHA1 Message Date
Peter Barker
547b641c91 AP_RSSI: add RADIO_STATUS.rssi as an AP_RSSI telemetry source 2020-06-09 10:20:29 +10:00
Randy Mackay
345029ec67 AP_NavEKF3: print extNav buff size 2020-06-09 09:42:14 +10:00
Randy Mackay
c4440a81f4 SITL: SIM_Vicon supports sending at 50hz 2020-06-09 09:42:14 +10:00
Randy Mackay
6c10655059 AP_NavEKF2: accept extnav at up to 50hz 2020-06-09 09:42:14 +10:00
Randy Mackay
0f212ca727 AP_NavEKF3: accept extnav at up to 50hz 2020-06-09 09:42:14 +10:00
Iampete1
fee5b998bf AP_Logger: add min MB free param 2020-06-09 09:23:25 +10:00
Iampete1
0d53ce4cd7 SRV_Channel: re-work timeout 2020-06-09 09:04:14 +10:00
Iampete1
66cbed78f5 SITL: JSON examples: update readme 2020-06-08 17:50:03 +10:00
Andrew Tridgell
5d9e0cb58d SITL: added robot.py pybullet example code 2020-06-08 17:50:03 +10:00
Andrew Tridgell
86d53c96d1 AP_Scripting: added opendog lua demo 2020-06-08 17:50:03 +10:00
Andrew Tridgell
ac5594566e SITL: rebuild matlab pnet for x86_64 linux 2020-06-08 17:50:03 +10:00
Andrew Tridgell
5b58b91626 SITL: allow connect back to originating port for matlab 2020-06-08 17:50:03 +10:00
Iampete1
f5e98a6d69 SITL: update MATLAB example 2020-06-08 17:50:03 +10:00
Iampete1
fbb4df97a3 SITL: SIM_JSON: update 2020-06-08 17:50:03 +10:00
Andrew Tridgell
44f727cfd2 SITL: removed use of extra port for JSON 2020-06-08 17:50:03 +10:00
Iampete1
c6603be64a SITL: MATLAB regenerate pnet.c for windows 2020-06-08 17:50:03 +10:00
Iampete1
99465b718f SITL: allow MATLAB pnet.c UDP no connect 2020-06-08 17:50:03 +10:00
Andrew Tridgell
843485ba5c SITL: fixed formatting of pnet.c 2020-06-08 17:50:03 +10:00
Andrew Tridgell
d9fc96f971 AP_Terrain: shortcut ocean tile creation 2020-06-08 13:56:42 +10:00
Andrew Tridgell
078de3205c AP_Terrain: added test option to terrain creation script 2020-06-08 13:56:42 +10:00
Andrew Tridgell
15f9f7009c AP_Terrain: fixed filling of all lattitudes in terrain generation script 2020-06-08 13:56:42 +10:00
Andrew Tridgell
6a1f43d5df HAL_ChibiOS: fixed build with our old compiler
gcc 4.9 doesn't like static_assert() in C code
2020-06-07 14:11:48 +10:00
Paul Riseborough
71ae9426c5 SITL: Fix hand launch behaviour
Launch acceleration should be multiplied by vehicle mass when calculating launch force.
10 m/s (1g) is much too low for a hand launch. 25 m/s (2.5g) over a shorter period is more realistic and will trigger the recommended value of TKOFF_THR_MINACC of 15 recommended for hand launches.
2020-06-07 11:53:02 +10:00
Peter Barker
c1de346150 GCS_MAVLink: avoid copying data twice in ftp transfers 2020-06-07 08:51:09 +10:00
duccan
cdcdd5ce27 AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
Rework after review:
- Kept old IMU and barometer definition of crazyflie 2.0 in hwdef
- Added comment regarding soft-reset command
- Added defaults.parm for crazyflie
2020-06-07 07:49:37 +10:00
duccan
0d96c7f7a5 AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1 2020-06-07 07:49:37 +10:00
Randy Mackay
9f26bd0a67 AP_BattMonitor: TYPE param swap for SMBus-Maxell and SMBus-Generic
Generic becomes type "7" which was previously Maxell.  Maxell becomes type 16
2020-06-05 16:57:39 -07:00
Randy Mackay
ff0460342b AP_Proximity: minor comment fix 2020-06-05 16:57:39 -07:00
Randy Mackay
2396a8176c AP_BattMonitor: comment fix 2020-06-05 16:57:39 -07:00
Randy Mackay
268c67d12d AP_BattMonitor: correct Maxell capacity 2020-06-05 16:57:39 -07:00
Randy Mackay
3de2dff6e3 AP_BattMonitor: simplify SMBus driver includes 2020-06-05 16:57:39 -07:00
Randy Mackay
4ea565e4ed AP_BattMonitor: Maxell driver inherits from SMBus_Generic 2020-06-05 16:57:39 -07:00
Randy Mackay
f869cd9aa6 AP_BattMonitor: complete rename of SMBus_Maxell to Generic 2020-06-05 16:57:39 -07:00
Randy Mackay
c13c037f7b AP_BattMonitor: rename SMBus_Maxell to Generic 2020-06-05 16:57:39 -07:00
Andrew Tridgell
2e7dc380c4 SITL: revert default physics step to 1200
this should help us pass CI
2020-06-06 08:17:25 +10:00
Andrew Tridgell
5349113104 SITL: improved the speedup code
more accurate sleeps using sleep debt system
2020-06-06 08:17:25 +10:00
Andrew Tridgell
750b220a5f SITL: simulations optimisations
- change to 600Hz physics rate by default
 - don't export rotational acceleration (not needed)
 - report speedup in terminal output at 0.5Hz (wall clock rate)
2020-06-06 08:17:25 +10:00
Andrew Tridgell
7c2d13c571 SITL: added simulation of pressure altitude for multicopter
this gives us a ceiling of 5.4km above sea level for the default
copter
2020-06-05 11:35:53 +10:00
Siddharth Purohit
c0eb27cc35 AP_Compass: pull compass calibrator out into a separate thread 2020-06-05 09:38:40 +10:00
bugobliterator
c914a91be9 AP_Compass: add support for per mag calibration 2020-06-05 09:38:40 +10:00
bugobliterator
95493e4569 SITL: add support for per mag calibration 2020-06-05 09:38:40 +10:00
Peter Barker
86687d240d AP_NavEKF3: avoid compiler warnings from -Wclass-memaccess
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp: In member function ‘void NavEKF2_core::InitialiseVariables()’:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:343:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct NavEKF2_core::ext_nav_vel_elements’; use assignment or value-initialization instead [-Wclass-memaccess]
  343 |     memset(&extNavVelNew, 0, sizeof(extNavVelNew));
      |                                                  ^
In file included from ../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:4:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.h:518:12: note: ‘struct NavEKF2_core::ext_nav_vel_elements’ declared here
  518 |     struct ext_nav_vel_elements {
      |            ^~~~~~~~~~~~~~~~~~~~
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:344:58: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct NavEKF2_core::ext_nav_vel_elements’; use assignment or value-initialization instead [-Wclass-memaccess]
  344 |     memset(&extNavVelDelayed, 0, sizeof(extNavVelDelayed));
      |                                                          ^
In file included from ../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:4:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.h:518:12: note: ‘struct NavEKF2_core::ext_nav_vel_elements’ declared here
  518 |     struct ext_nav_vel_elements {
      |            ^~~~~~~~~~~~~~~~~~~~
2020-06-05 08:42:45 +10:00
Peter Barker
b02d9abd32 AP_NavEKF2: avoid compiler warnings from -Wclass-memaccess
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp: In member function ‘void NavEKF2_core::InitialiseVariables()’:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:343:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct NavEKF2_core::ext_nav_vel_elements’; use assignment or value-initialization instead [-Wclass-memaccess]
  343 |     memset(&extNavVelNew, 0, sizeof(extNavVelNew));
      |                                                  ^
In file included from ../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:4:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.h:518:12: note: ‘struct NavEKF2_core::ext_nav_vel_elements’ declared here
  518 |     struct ext_nav_vel_elements {
      |            ^~~~~~~~~~~~~~~~~~~~
../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:344:58: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct NavEKF2_core::ext_nav_vel_elements’; use assignment or value-initialization instead [-Wclass-memaccess]
  344 |     memset(&extNavVelDelayed, 0, sizeof(extNavVelDelayed));
      |                                                          ^
In file included from ../../libraries/AP_NavEKF2/AP_NavEKF2_core.cpp:4:
../../libraries/AP_NavEKF2/AP_NavEKF2_core.h:518:12: note: ‘struct NavEKF2_core::ext_nav_vel_elements’ declared here
  518 |     struct ext_nav_vel_elements {
      |            ^~~~~~~~~~~~~~~~~~~~
2020-06-05 08:42:45 +10:00
James Jacobsson
8a87322d93 AP_HAL_Chibios: Adjust MatekF765-Wing voltage and current scales
The new values matches the ones from here:
http://www.mateksys.com/?portfolio=f765-wing#tab-id-5

Also verified to be a lot more accurate in real life.
2020-06-04 10:06:22 +10:00
Alexander Maryanovsky
d73043fc2f SITL: get_wall_time_us() to use a monotonic clock on non-Windows systems 2020-06-04 10:05:22 +10:00
Phillip Kocmoud
0d5a0f392c hwdef.dat update x2.1-777 2020-06-04 09:51:27 +10:00
Andrew Tridgell
571fbf8f71 HAL_ChibiOS: update power VALID pins 2020-06-04 09:51:27 +10:00
Andrew Tridgell
863807c9fb HAL_ChibiOS: use more consistent naming for power VALID pins
this uses _VALID for an active high pin and _nVALID for an active low
pin. It uses _OC for active high overcurrent and _nOC for active low
overcurrent
2020-06-04 09:51:27 +10:00
Andrew Tridgell
f896213770 AP_AHRS: drop rotate prefix on 2D rotates 2020-06-04 09:49:52 +10:00
Andrew Tridgell
d7b20c6e48 AP_Scripting: added micros() 2020-06-04 09:49:52 +10:00