25446 Commits

Author SHA1 Message Date
Beat Küng
693e9ffd46 mc_att_control: remove unused include <systemlib/param/param.h> 2018-03-26 16:20:57 +02:00
Beat Küng
1e09139fcc refactor mc_att_control: move private method declarations above private data members 2018-03-26 16:20:57 +02:00
Beat Küng
b04a3a969d refactor mc_att_control: use ModuleParams & Param classes 2018-03-26 16:20:57 +02:00
Beat Küng
22e8204de8 refactor mc_att_control: move class initializer to member initializer 2018-03-26 16:20:57 +02:00
Beat Küng
d68d9b522b fix mc_att_control: add missing orb_unsubscribe 2018-03-26 16:20:57 +02:00
Beat Küng
673fa75e58 mc_att_control: refactor to ModuleBase & add module documentation 2018-03-26 16:20:57 +02:00
Daniel Agar
25300a6b11 VtolLandDetector add airspeed finite check 2018-03-26 09:42:50 -04:00
Daniel Agar
fda2edb7c4 sensors only publish airspeed if finite 2018-03-26 09:42:50 -04:00
Alessandro Simovic
9d3dfb7864 libtunes: addressing comments of #9117 2018-03-26 14:54:23 +02:00
Alessandro Simovic
6e1c495268 libtunes: added TUNE_MAX_STRENGTH 2018-03-26 14:54:23 +02:00
Alessandro Simovic
80d80835a0 libtunes: fixed some type conversions and other minor changes 2018-03-26 14:54:23 +02:00
Alessandro Simovic
92b89368f1 libtunes: fixed playback of string melodies 2018-03-26 14:54:23 +02:00
Alessandro Simovic
7d9b09b5e5 libtunes: made logic in Tunes::set_control() more obvious 2018-03-26 14:54:23 +02:00
Alessandro Simovic
4e479b7f04 libtunes: renamed config_tone() to reset() 2018-03-26 14:54:23 +02:00
Alessandro Simovic
6ce839ea1e libtunes: added tone strength as state and output to libtunes
Since the tune library also contains logic how tunes can be overriden,
a user of the tunes library cannot know the strength of the current tune
without replicating some logic. Easy solution is to add strength to the
output of Tunes::get_next_tune().
2018-03-26 14:54:23 +02:00
Alessandro Simovic
acdc81ea0a libtunes: cleanup / docs 2018-03-26 14:54:23 +02:00
Alessandro Simovic
d455c1e7e1 libtunes: Repeating tunes can be interrupted without override
Otherwise the only way of interrupting a repeated tune would be with the override flag, which should only be used rarely.
Now repeating tunes have lowest priority, followed by one-shot tunes, followed by anything with an override flag.
2018-03-26 14:54:23 +02:00
Alessandro Simovic
34836a2b21 libtunes: allow custom tune (id 0) to be used to stop playback.
Override flag must still be set to true!
2018-03-26 14:54:23 +02:00
Alessandro Simovic
2cf93df918 libtunes: _repeat was uninitialized. Defaulting to false now.
Bugfix: This fixes a bug where libtunes might indicate that there are more tones to play even after the last note of a tune.
2018-03-26 14:54:23 +02:00
Alessandro Simovic
f47443f283 libtunes: (bugfix) sending a custom msg tune overrides everything
Custom msg tune can override any tune playing, regardless of the tune_override flag.
2018-03-26 14:54:23 +02:00
Matthias Grob
2acd431fcb mc_att_control: revert to tested cutoff frequency
Revert the disabled d term filter which needs to be enabled
after reducing IMU filtering and was probably unintentionally
during a rebase.
2018-03-26 14:23:03 +02:00
Daniel Agar
19a4f0988c gyrosim fix transfer hardcoded buffer index
- fixes coverity CID 196758
2018-03-24 13:39:31 -04:00
Daniel Agar
a48e3bf68d sensors fix uninitialized diffferential_pressure message
- fixes coverity CID 260383
2018-03-24 13:39:31 -04:00
Daniel Agar
fc829b8519 pwm_out_sim PWM_SERVO_SET_MIN_PWM fix index check
- fixes coverity CID 264261
2018-03-24 13:39:31 -04:00
Daniel Agar
8c43408a92 pwm_out_sim PWM_SERVO_SET_MAX_PWM fix index check
- fixes coverity CID 264263
2018-03-24 13:39:31 -04:00
Daniel Agar
0ef5d892a1 navigator precland initialize all fields
- fixes coverity CID 264259
2018-03-24 13:39:31 -04:00
stmoon
ed261c76da add timestamp for sensor_preflight 2018-03-24 07:57:04 +01:00
Alexandr Kondratev
be52dcf5e3 BMP280 improve external device flag parameter naming (#8806) 2018-03-23 12:55:26 -04:00
Daniel Agar
d2712dcb05
mc_pos_control move to matrix lib (#9141) 2018-03-23 12:53:49 -04:00
Roman
cc26c34691 airspeed driver: un-advertise differential pressure topic
Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-23 09:57:28 -04:00
bresch
81a80e0d56 Airmode - Minor rewording 2018-03-23 10:35:08 +01:00
bresch
c9d72c0d07 PWMSim : add MC_AIRMODE support 2018-03-23 10:35:08 +01:00
bresch
7ef3ae8828 Multicopter mixer - Recompute safe roll_pitch_scale if not in air-mode
If not in air-mode the mixer is not able to apply positive boosting
and roll_pitch_scale is recomputed to apply symmetric - reduced - thrust.
This has the consequence to cut completely the outputs when the thrust is
set to zero.
2018-03-23 10:35:08 +01:00
Beat Küng
56ea1a82aa linux_pwm_out: add MC_AIRMODE support 2018-03-23 10:35:08 +01:00
Beat Küng
20c7387c87 snapdragon_pwm_out: add MC_AIRMODE support 2018-03-23 10:35:08 +01:00
Beat Küng
2b6ca2cf82 uavcan_main: use parameter_update to check for param updates
this avoids calling param_get() on every loop iteration.
2018-03-23 10:35:08 +01:00
Beat Küng
72d22c4297 cleanup uavcan_main: replace warnx with PX4_{INFO,ERR,DEBUG} 2018-03-23 10:35:08 +01:00
Beat Küng
f21ab05f48 mixer_multirotor: fix comment thrust_gain -> thrust_scale
Added in 262d9c790bf0d3cd652.
2018-03-23 10:35:08 +01:00
Beat Küng
0d9693347f fmu + px4io: fixes for MC_AIRMODE parameter
- fmu: in case of _mot_t_max==0 _airmode was not set in the mixer
- px4io: param_val is a float
2018-03-23 10:35:08 +01:00
bresch
99ce9cc2a8 Airmode - Add support for UAVCAN 2018-03-23 10:35:08 +01:00
bresch
6976232a20 Airmode - Add airmode parameter for multicopter mixer 2018-03-23 10:35:08 +01:00
bresch
851c3657d1 Multicopter mixer - Use already computed value instead of recomputing it 2018-03-23 10:35:08 +01:00
bresch
803eb9ac32 Multicopter mixer - Simplify and correct mistakes of roll-pitch motor saturation handling 2018-03-23 10:35:08 +01:00
bresch
450e7c6774 Multicopter mixer - Remove arbitraty boost gain during saturation 2018-03-23 10:35:08 +01:00
bresch
096e2ec629 Multicopter mixer - Always unsaturate high-saturated motors when possible 2018-03-23 10:35:08 +01:00
bresch
df194b1de4 Multicopter mixer - Rewrite unnecessarily complicated conditions 2018-03-23 10:35:08 +01:00
bresch
5da2842dbc Multicopter mixer - Always unsaturate low-saturated motors when possible 2018-03-23 10:35:08 +01:00
Martin Trgina
01f5f8862a Support of HITL simulation for Intel Aero FC (#9132)
* Adding pwm_out_sim
* pwm_out_sim driver will be by default part of Aero FC PX4 Nuttx drivers
* tap_esc is off when SYS_HITL 1
2018-03-22 16:47:58 -04:00
Daniel Agar
dffb4f23b3
Jenkins add px4fmu bloaty comparison to last successful master build (#9142) 2018-03-22 13:42:24 -04:00
Daniel Agar
44e3bd6c1c navigator follow_target move to matrix lib 2018-03-22 11:16:34 -04:00