Julien Lecoeur
34717f7005
Merge pull request #11288 from PX4/pr-tiltrotor_noairspeed_transition_check
...
tiltrotor: fix transition check when airspeed is invalid
2019-02-05 10:09:48 -05:00
Julien Lecoeur
57f9104420
VTOL tiltrotor: respect VT_ELEV_MC_LOCK
2019-02-03 22:33:42 -05:00
Daniel Agar
60f2a92e3d
replace <cfloat> with <float.h>
...
- <cfloat> isn't available in the NuttX c++ library
2019-01-06 19:20:57 -05:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Matthias Grob
c303e36ed0
vtol_att_control: small comment typo
2018-12-03 16:14:32 +01:00
Daniel Agar
f9a3235709
remove unused parameter VT_AIRSPD_RULE ( #10897 )
...
- fixes #10896
2018-11-22 17:43:33 -05:00
Roman Bapst
90bfdb6f0a
VTOL rate control architecture improvements ( #10819 )
...
* attitude and rate setpoint message: use 3D array for thrust demand
* FixedWingAttitudeControl: rework airspeed scaling
* move airspeed and scaling calculation into separate method
* if vtol in hover and airspeed disabled use minimum airspeed instead of trim airspeed
2018-11-21 20:32:40 -05:00
Roman
deed462e62
tiltrotor back-transition improvements:
...
- do not set zero throttle during the entire back-transition because otherwise
we need to make the back-transition really short
- added ramping up of throttle setpoint during backtransition to avoid
step inputs
- back-transition ends after back-transition time and not when motors are fully
rotated updwards. previously the vehicle would enter hover mode at high speed
which was not handled well by the mc position controller
Signed-off-by: Roman <bapstroman@gmail.com >
2018-11-06 22:10:38 +01:00
Roman
96f3feb088
weathervane: get rid of passive strategy
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-09-19 08:27:07 +02:00
Roman
e17f0802cc
tecs msg: changed flight_path_angle to height rate as clearly we are
...
looking at height rates
Signed-off-by: Roman <bapstroman@gmail.com >
2018-09-17 10:27:08 -04:00
TSC21
ca42483794
update msgs fields from camelCase to snake_case so rosidl_generate_interfaces() is able to generate code for ROS IDL files
2018-07-30 21:40:28 +02:00
Daniel Agar
b1d3bb0403
stop ignoring Wmissing-field-initializers and fix ( #9912 )
2018-07-22 12:45:52 -04:00
Daniel Agar
9a4de09325
sensors remove airspeed negative check
2018-07-16 01:09:19 -04:00
Daniel Agar
02d4405a62
c++11 default destructors
2018-06-30 19:55:08 -04:00
Daniel Agar
e468a9bbcc
move systemlib/pwm_limit to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
d0bde9ab2a
replace geo _wrap_pi with matrix::wrap_pi
2018-06-12 09:00:52 +02:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
Daniel Agar
4e32cb17df
clang-tidy modernize-use-equals-default
2018-05-18 22:48:55 +02:00
Beat Küng
13ab5ed0d0
px4_main_t: fix method declaration throughout the code base
...
px4_main_t is defined as:
typedef int (*px4_main_t)(int argc, char *argv[]);
which matches with the definition in NuttX, given to task_create
2018-05-09 07:59:46 +02:00
Daniel Agar
977ab4e7b8
improve end to end control latency measurement ( #9388 )
2018-05-02 03:03:32 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Roman
e7e791fb1a
tailsitter: use forward transition throttle for climb-rate controlled mode
...
- the mc pos controller will decrease throttle during the transition
and thus the vehicle will not pick up enough airspeed to complete the
transition
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-18 17:23:38 -04:00
Hamish Willee
1a0c312f28
Fix description of VT_FW_ALT_ERR
2018-04-17 08:28:05 +02:00
Roman
c206e0f1ac
vtol_type.cpp: close pwm output device file descriptor
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
bd434636e9
vtol_type: avoid code duplication
...
- created one method which has access to the pwm output device
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
41a9ac0acb
vtol_att_control: initialise VT_FW_MOT_OFFID correcly for standard vtol
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
df53dce6e1
vtol_type.h: initialise flag_idle_mc correctly
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
cd49c4bc17
vtol_type: improve comments
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
79ff1436b8
vtol_att_control: move handling of motor state and idle speed selection
...
to VtolType class
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Roman
744f806214
vtol_att_control: merge methods to disable a selection of motors
...
- moved methods used to modify channel maximum pwm value to VtolType
class so that the can be shared by the differnt vtol types
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-12 09:19:47 +02:00
Daniel Agar
00f98c64db
VTOL preserve PWM min and max when enabling/disabling actuators
2018-04-12 09:19:47 +02:00
Beat Küng
90513e719e
ASSERT: remove some inappropriate asserts
...
Since assertions lead to crashes, we need better failure handling. In all
the cases in this patch, the assert is not required.
All the ones with the task id should be replaced with the module base
class.
Ah yes, and this reduces flash space, since the ASSERT macro will expand to
a printf that contains the source file name.
2018-04-11 07:47:06 +02:00
Roman
d6a86dfa56
tailsitter: do not condition transition on airspeed if airspeed disabled
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-04-05 08:48:36 +02:00
Roman
2257cfc0fa
vtol_att_control: set flag in_transition_to_fw properly
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-30 00:46:23 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Daniel Agar
ac7242987c
delete unused tailsitter_recovery library ( #9103 )
2018-03-21 14:09:36 -04:00
Daniel Agar
2ce8b6a984
delete VT_FW_PITCH_TRIM parameter ( #9014 )
2018-03-07 09:08:59 -05:00
Roman
ac2b3ccadc
vtol_att_control: default front transition throttle to 100%
...
- the main idea is to prevent airspeed less systems to stall after a
transition
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
e4ea7262fd
tailsitter.cpp: small cosmetic fix
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
03338935e0
vtol_att_control: make sure blending airspeed is smaller than transition airspeed
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
e0ca38e794
standard vtol: fix mc weight calculation
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
23257bf6ee
standard vtol: simplify blending weight calculation
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
b66bc712af
tailsitter: avoid doing same calculation twice
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
1d8f588d37
vtol_att_control: switch from division to multiplication for variable
...
calculation
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
9e16543dbe
tiltrotor: represent time since transition in seconds
...
- more intuitive
- avoids tons of divisions
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
ae2e6c7a18
tailsitter: represent time since transition in seconds
...
- more intuitive
- avoids tons of divisions
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
bf22f02567
tailsitter: removed usage of hrt_elapsed and small cleanup
...
- do not call hrt_elapsed_time since it's expensive
- remove P2 front transition phase (was not even used)
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
196d0e40b4
standard vtol: use time in second since transition start instead of using
...
microseconds
- seconds is more intuitive
- avoids tons of divisions by 1e6f
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
5a2a5127fa
tailsitter: removed common vtol parameters
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
07a84f2246
tiltrotor: removed common vtol parameters
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00