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
Roman
6900f97b72
vtol_att_control: use airspeed_disabled flag instead of airspeed mode
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-07 14:01:51 +01:00
Roman
daa6c6ffc8
vtol_att_control: consolidated standard parameters & fix usage of hrt_elapsed time
...
- standard vtol was implementing many custom parameters although they
are generic and should be shared between the vtol types
- removed heavy usage of hrt_elapsed_time() which is a system call and
could be computationally expensive
2018-03-07 14:01:51 +01:00
Sander Smeets
2ef9c4ec35
VTOL force land even when transitioning to FW ( #8958 )
2018-03-01 16:51:50 -05:00
Daniel Agar
3b0b5645e1
vtol_att update poll fd before poll call
2018-03-01 18:27:57 +01:00
Roman
ea3586cfd9
tailsitter: stop fiddling with thrust during transition and just let
...
the mc pos controller handle it for now
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-01 12:16:27 -05:00
Roman
ee2163ce69
vtol_att_control: prevent segfault when no command line args given
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-03-01 11:35:34 -05:00
bresch
aca30fc612
VTOL standard - Remove pitch trim
2018-01-29 09:32:51 -05:00
bresch
920cb7a1a1
VTOL standard - Group multicopter weights in update_vtol_state()
2018-01-29 09:32:51 -05:00
bresch
d34767b871
VTOL standatd - Simplify multicopter weight in update_transition_state()
2018-01-29 09:32:51 -05:00
Daniel Agar
137a2444a8
VTOL standard respect VT_ELEV_MC_LOCK
2018-01-11 16:18:47 -05:00