Randy Mackay
bc0da915c4
AP_Math: add SplineCurve library
...
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
includes corrections from peer review
4 years ago
Leonard Hall
af7403f4e9
AP_Math: add SCurve library
...
SCurve const more local variables
rename update to get_jerk_vel_pos_at_time
removed unused update
debug output in SITL
fixes to ensure finished at end of path
fixes including validity check
includes corrections from peer review
4 years ago
Randy Mackay
0e506a71a1
AP_Math: remove control's limit_vector_length
...
these have been moved to Vector2f and Vector3f
4 years ago
Randy Mackay
e2b46d05dc
AP_Math: Vector2,3 get limit_length methods
4 years ago
Leonard Hall
3bb0482795
AP_Math: add update_pos_vel_accel to control
...
also add shape_vel, shape_pos_vel and stopping_distance
also add calculation of kinematic limits
4 years ago
Randy Mackay
67f2c79717
AP_InternalError: added invalid_arguments failure
...
this is intended to catch problems where we have unexpectedly received
invalid arguments. For example an out-of-bounds target speed that
should have been caught somewhere else.
running out of bits so we use a single bit to capture invalid inputs to or output from a calculation
4 years ago
Peter Barker
f0094bac40
autotest: remove copied-in duplicate of pymavlink rotmat
4 years ago
Peter Barker
dfa342a79f
autotest: correct rc-values-good debug
4 years ago
Peter Barker
7d9daccdf7
autotest: fix mavproxy switch test
...
The order in which we fix the environment means that we need to be
listening on the correct port for rc values - so just fix it in the test
4 years ago
Peter Barker
d384ba6585
autotest: increase time permitted for Copter to turn east
...
Sometimes they turn almost 360 which takes a while
4 years ago
Peter Barker
2c6bdd200c
autotest: fix make_safe_filename for Valgrind
...
Valgrind treats this as a format string so the % is bad
4 years ago
Peter Barker
18ded114ae
Tools: param_metadata; stop prettifying XML before emitting
...
indent is not available on our documentation server:
[build_parameters.py]
Traceback (most recent call last):
File "./param_parse.py", line 422, in <module>
do_emit(XmlEmit())
File "./param_parse.py", line 415, in do_emit
emit.close()
File "/home/wiki/build_wiki/ardupilot/Tools/autotest/param_metadata/xmlemit.py
", line 24, in close
etree.indent(self.paramfile)
AttributeError: module 'lxml.etree' has no attribute 'indent'
4 years ago
Peter Barker
018b1425ce
AP_AdvancedFailsafe: remove APM from description
4 years ago
Peter Barker
cee348d082
Tools: make and declare bisect-helper.py flake8-compliant
4 years ago
Peter Barker
ee79895a4e
Tools: make and declare examples.py flake8-compliant
4 years ago
Peter Barker
79d34b3b64
Tools: make and declare build_binaries.py flake8-compliant
4 years ago
Peter Barker
fff4aa8bde
autotest: increase allowed time for climb_before_turn to get home
4 years ago
Josh Henderson
fb789a07ce
AC_WP_Nav_OA: origin_loc & dest_loc should use _terrain_alt_oabak
4 years ago
Sergey Bokhantsev
ef95bf088c
AP_Motors: Constrain get_throttle_hover value with allowed range
4 years ago
Peter Barker
f988064e48
Tools: add a tool to help determine best speedup for autotest
4 years ago
Peter Barker
d2c00f7b26
autotest: ensure RC thread is killed after each run_test
...
Every run_test starts a thread. del is not being called. So clean it
up in the caller
4 years ago
Peter Barker
500679ec5b
autotest: correct creation of default parameters
...
Simulation won't start if nothing is connected to 5760 - so just connect
mavproxy there
4 years ago
Samuel Tabor
a301808e7a
SITL: Add parsing of airspeed to SIM_JSON
4 years ago
Iampete1
0b8cdaf392
AP_Scripting: add mission command receve function, binding and example
4 years ago
Iampete1
849ad8c6de
AP_Mission: support MAV_CMD_DO_SEND_SCRIPT_MESSAGE
4 years ago
Iampete1
82228469c8
AP_Scripting: add reset_remianing battery binding
4 years ago
Iampete1
9fdceeded3
AP_BattMoniter: add reset remaining per-instance rename existing to _mask
4 years ago
Iampete1
0fe38da522
GCS_MAVLink: rename battery reset function
4 years ago
Randy Mackay
d343c569c2
AP_Arming: check for only first compass being disabled
...
If only the first compass is disabled, users may expect other enabled compasses to be used but they won't be
4 years ago
Randy Mackay
64c4b6a42b
AP_Compass: remove unused set_use_for_yaw
4 years ago
Ari Krupnik
c6bf7475f2
Rover: fixing typo in comment
4 years ago
Peter Barker
ba972b6b46
autotest: fix --map option
4 years ago
Peter Barker
d621fe0cde
autotest: correct sub gripper mission
...
Ordinarily not run because gripper is disabled
4 years ago
Peter Barker
e8f96efe72
autotest: wait for stats initialisation before rebooting
...
If the RTC time we reset parameters (STAT_RESET) is zero then we reset all parameters.
In SITL we only set that time if we see a GPS due to the AP_RTC RTC_TYPES parameter default bitmask value of 1
So if you reboot SITL fast enough while STAT_RESET is zero you can see that STAT_BOOTCNT does not increase. Easily reproducible in SITL; start with -w and type reboot in several times before SITL sees the GPS come up and you can see STAT_BOOTCNT doesn't increase.
Fix is to ensure STAT_RESET is non-zero before rebooting.
4 years ago
Peter Barker
40bc087359
Blimp: correct compilation for do_aux_function sig change
4 years ago
Andrew Tridgell
46f35a6910
AP_Baro: work around bad WHOAMI read on DPS310
...
this fixes an issue with bad read of WHOAMI on a mRoPixracerPro. We
don't know how the sensor gets in a state where WHOAMI can't be read,
but toggling CS does fix it
4 years ago
Michelle Rossouw
ded488fd9f
Blimp: Remove most commented out code and other cleanups
4 years ago
Andrew Tridgell
9683647fd1
waf: added blimp target
4 years ago
Michelle Rossouw
cd18e16ffb
autotest: added blimp simulator type
4 years ago
Michelle Rossouw
7d42c3c834
SITL: Added simple blimp simulator
4 years ago
Michelle Rossouw
ac893b4013
AP_Vehicle: added blimp vehicle type
4 years ago
Michelle Rossouw
8bc0f100a2
AP_Param: added blimp frame type
4 years ago
Michelle Rossouw
d06161e8ee
AP_HAL_SITL: Added support for blimp simulator
4 years ago
Michelle Rossouw
b98bbcb678
Blimp: initial implementation of blimp vehicle type
4 years ago
Peter Barker
30ebe6cde9
autotest: augment test DO_AUX_FUNCTIION test for FAILED AND DENIED
4 years ago
Peter Barker
b245b027f7
Rover: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago
Peter Barker
cb8ca17035
ArduPlane: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago
Peter Barker
ce9800e597
ArduCopter: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago
Peter Barker
e5a8acb227
RC_Channel: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago
Peter Barker
115e895c82
GCS_MAVLink: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago