Commit Graph

6100 Commits

Author SHA1 Message Date
Andy Piper
3483df5303 Tools: add Flywoo boards to board list and manifest 2021-08-18 17:06:09 +10:00
Andy Piper
6c26dd075b Tools: bootloader for FlywooF745Nano 2021-08-18 17:06:09 +10:00
Josh Henderson
70166c8173 autotest: add battery_charge_state ok & low tests 2021-08-18 15:32:28 +10:00
Peter Barker
12ac5174d7 autotest: check battery_status.charge_state is critical on failsafe 2021-08-17 14:40:55 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d53299ecb0 Tools: comment out the FETtecESC_safety_switch() function for now because it is failing
I do not understand why it is failing, and failed at fixing it.
2021-08-13 16:22:37 +10:00
Peter Barker
20f58afa93 Tools: complete rewrite of the ESC-configuration state machine
Co-authored-by: Dr.-Ing. Amilcar do Carmo Lucas <amilcar.lucas@iav.de>

tidy message sending using templates
Calculate and enforce the minimum update period.
Disable unused features to save flash
forced time gaps between all transmits
correct ESC reset functionality
Avoid re-initialization repeatition
Make sure we stop FETtec if safety is on (ignore reverse) this reduces duplicated code
Error count calculation changed
   as the telemetry error count is absolute only the overflow status can be safed and used for the percentage calculation
Update the README to add autotests information
FETtec needs a time gap between frames
  This allows running at high fast_loop_rates
do not send fast_throttle data if a configuration command just got sent
Example parameter configuration file is for a Quadcopter with ESCs connected to Telem2
remove two FIXME
fix compilation in master
Fix the ESC not re-initializing issue.
  Now we re-init whenever we loose connection
RVMASK parameter changes only take effect when not armed
Improve documentation
Always use the same wording when referring to fast-throttle commands
fix pre-arm check message
assure the length of the memmove is positive
Set HAL_AP_FETTEC_CONFIGURE_ESCS to 0 when no ESC hardware is available and you want to test the UART send function
2021-08-13 16:22:37 +10:00
Peter Barker
e263063600 autotest: a gap in the beginning of the SERVO_FTW_MASK is now allowed, test it
make sure the SERVO_FWT_MASK is valid:
  - it can have bit gaps between active channels, but channels higher than 12 are not allowed (AP_EST_TELEM limitation)
  - Explain that the FETtec ESC IDs inside the FETtec Firmware need to be contiguous and start at 1.
add tests for ESC power outages
add test that safety switch zeroes PWM for FETtec ESC
2021-08-13 16:22:37 +10:00
Peter Barker
3bc4cf710f autotest: add test for FETtecESC 2021-08-13 16:22:37 +10:00
Pierre Kancir
28706f5e23 Tools: link AP_FETtecOneWire 2021-08-13 16:22:37 +10:00
Mike Lyons
12ccb6df1d Tools: added name to GIT_Success.txt 2021-08-13 14:21:35 +09:00
Peter Barker
0d4bee8f7b autotest: except QRTL/QLAND from airmode tests due to non-armability
The test wasn't checking the return value for arming, so of course the
motors weren't spinning.... now we've fixed the checked-for-arming thing
these two modes were failing.
2021-08-13 13:40:28 +10:00
Peter Barker
8fc6e98900 autotest: raise exception for arm/disarm failures on switch/rc
Users were calling these without checking the return values. Make that
a non-issue
2021-08-13 13:40:28 +10:00
Peter Barker
5e81026e78 autotest: add option to hard-reset after every test 2021-08-13 08:01:20 +10:00
Peter Barker
013bee99f4 autotest: rover: wait ready to arm before running motor test 2021-08-13 08:00:52 +10:00
Peter Barker
d03cfb8615 autotest: Plane: wait for origin before enabling fence
we load into memory as origin-relative positions
2021-08-12 20:34:36 +10:00
bugobliterator
dba40481c6 Tools: add CubeOrange-periph to CI build test 2021-08-12 07:57:12 +10:00
bugobliterator
acab1478a2 AP_Periph: fix build error 2021-08-12 07:57:12 +10:00
Peter Barker
cccec5c21c autotest: add test for FRSkyD battery 2021-08-11 15:17:43 +10:00
bugobliterator
1d81eb5c47 AP_Periph: fix checking compass available before init 2021-08-11 07:47:56 +10:00
Andrew Tridgell
fadadfb50e waf: avoid problem with custom build server
this happens on custom build server when building into a new directory
2021-08-10 21:34:36 +10:00
Andrew Tridgell
11b073841f Tools: auto-build Swan-K1 2021-08-10 10:08:05 +10:00
Andrew Tridgell
5b95f92984 Tools: added Swan-K1 bootloader 2021-08-10 10:08:05 +10:00
Leonard Hall
3d68d9c32a Frame_params: update FILT to FLTE 2021-08-10 08:33:56 +09:00
xianglunkai
27dd97383c Tools: added name to GIT_Success.txt 2021-08-09 19:24:32 +09:00
Peter Barker
abb6521127 Revert "autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)"
This reverts commit 540a56adb8.

Polling this message caused issues on reboot - shouldn't be a problem
but is.

Retrying that showed that the Tracker GUIDED test failed reliably due to
a yaw problem.
2021-08-07 16:18:05 +10:00
Pierre Kancir
231ee84ab9 Tools: correct author name formatting
prevent error
fatal: --author 'pierre.kancir.emn@gmail.com' n'est pas de la forme 'Nom <email>' ni ne correspond à aucun auteur existant
2021-08-06 23:52:49 +10:00
Peter Barker
44d5885d99 autotest: augment blending test to ensure GPS switch events make log 2021-08-06 15:30:18 +10:00
Andrew Tridgell
2b1e80c70d Tools: copy board_list.py for build_binaries.py 2021-08-06 10:00:08 +10:00
Andrew Tridgell
3c0238ce8b Tools: break out boards list
this is to help with the custom build server
2021-08-06 07:35:37 +10:00
Andrew Tridgell
0ea26b4d3a AP_Periph: fixed float16 conversions for scalars
libcanard does already convert scalars, but doesn't convert arrays. By
calling fix_float16 on scalers we were double converting, which
reduced resolution.
2021-08-05 19:04:41 +10:00
Peter Barker
540a56adb8 autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)
It is a useful superset
2021-08-05 18:35:11 +10:00
Peter Barker
27fcb3a100 autotest: fix simstate error message 2021-08-05 18:35:11 +10:00
Peter Barker
ca35d01baa autotest: move upload_simple_relhome_mission up 2021-08-05 10:38:03 +10:00
Andrew Tridgell
37935262ff AP_Periph: fixed formatting errors 2021-08-05 09:43:35 +10:00
Andrew Tridgell
751b901ed9 Tools: fixed printf format errors 2021-08-05 09:43:35 +10:00
Josh Henderson
162b3b70cf Autotest: use MAV_POS_TARGET_TYPE_MASK, remove POS_TYPE_MASK_FORCE 2021-08-03 12:48:38 +10:00
Andrew Tridgell
54d92551d1 waf: add files from ROMFS_custom to ROMFS
this allows for lua scripts in the root of the source tree as ROMFS_custom/scripts/*.lua

it also allows for any other custom data files that may be
needed. This is cleaner for custom scripts than having the files in
AP_HAL_ChibiOS/hwdef/BOARD/scripts, and allows for the same scripts
working in SITL, Linux and ChibiOS
2021-08-03 10:57:38 +10:00
Peter Barker
8e72dc32d1 autotest: add test home is restored persistently on wdog reset 2021-08-03 10:36:50 +10:00
Andrew Tridgell
e6f15ed6c0 autotest: cope with WriteStreaming() in doc tests 2021-08-03 10:23:36 +10:00
Josh Henderson
1cb11a5ff2 Tools: autotest change smartbatt param names 2021-08-03 09:36:26 +10:00
Iampete1
27b324742e Tools: sim_vehicle: pass on slave comandline CMD 2021-08-03 09:22:19 +10:00
Andrew Tridgell
19a9e1a416 Tools: cope with build_binaries.py being copied out
the build server uses a copy of build_binaries.py, so __file__ isn't
the right directory
2021-08-01 13:28:09 +10:00
Andrew Tridgell
a0da76243d autotest: reboot after AHRS_ORIENTATION test
the EKF can be left very unhappy by this test
2021-07-31 10:01:14 +10:00
Peter Barker
d40587062e AP_Periph: use AP::compass().available in place of enabled() 2021-07-30 12:19:42 +10:00
Braedon O'Meara
de91058b1a Tools: Add tmux support to run_in_terminal_window.sh
Added in an option so that if running SITL in a tmux session it will open a new window in tmux.
More or less an alternate option to screen.
It will detect if its running in a tmux session by checking the $TMUX and $TERM env variables.
I put it before other options because when I am running a tmux session even in a GUI environment
I would prefer a new Tmux window compared to a new terminal.
This will only run if youre already in a tmux session it will not launch a new session.
2021-07-30 12:05:15 +10:00
Peter Barker
2ae483cee0 autotest: stop uploading artifacts to autotest server
github action's CI is good at this
2021-07-30 11:32:59 +10:00
Andrew Tridgell
69376cdb5f Tools: added mRo M10095 bootloader 2021-07-30 10:20:52 +10:00
Andrew Tridgell
4b0736ecf4 Tools: added bootloader for G491 2021-07-30 10:20:52 +10:00
Andrew Tridgell
adb8e1fc7e Tools: added mRo-M10095 board type 2021-07-30 10:20:52 +10:00
Andrew Tridgell
f507e85f10 Tools: added Nucleo-491 2021-07-30 10:20:52 +10:00