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
08534588cd
fw_pos_control: get vtol parameter values if vehicle is vtol
...
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
Andreas Antener
198708ba2e
rotation: updated board rotation meta data
2018-02-28 10:08:58 +01:00
Beat Küng
40675bd1f4
logger: fix potential semaphore counter overflow
...
When the timer callback is called at a higher rate than the logger can
execute the main loop (which is never the case under normal conditions),
the semaphore counter will increase unbounded, and eventually lead to
an assertion failure in NuttX.
The maximum semaphore counter is 0x7FFF, and when the logger runs at
default rate (3.5ms), the logger task must be blocked for 0x7FFF*3.5/1000
= 114 seconds continuously for an overflow to happen.
I see 2 cases where that could happen:
- the logger execution blocks somehow, or busy-loops in an inner loop
- a higher-prio task runs busy and hogs the CPU over a long period of time
2018-02-27 21:01:29 +01:00
Matthias Grob
611ab577d8
Battery: Fix estimate initialization
...
On the Intel Aero and probably also other specific platforms
the first measured voltage values despite connected battery are unuasable.
The solution here is to start filtering and determining warning
only after a measurement above 2.1V was received.
2018-02-24 16:27:44 +01:00
Matthias Grob
83ac74367c
Battery: move member initialization values to class declaration
2018-02-24 16:27:44 +01:00
Julian Oes
3917eb2d00
mavlink: don't send wrong time
...
This prevents the autopilot from sending an invalid unix timestamp.
Usually, if no time is set yet by a GPS, the date is somehow set
to 2000-01-01, therefore we can ignore anything earlier than 2001.
2018-02-23 16:14:02 +01:00
Matthias Grob
df7364d2e2
Battery: Correct unit for capacity parameter
2018-02-23 15:30:17 +01:00
Roman
2549b702f0
pwm_out_sim, simulator_mavlink: fixed code style
...
Signed-off-by: Roman <bapstroman@gmail.com>
2018-02-22 15:10:22 -05:00
Roman
10bf6a4b59
params cmd: be less verbose
...
Signed-off-by: Roman <bapstroman@gmail.com>
2018-02-22 15:10:22 -05:00
Roman
ddb2dd89db
simulator mavlink: support for quad tiltrotor mav type
...
Signed-off-by: Roman <bapstroman@gmail.com>
2018-02-22 15:10:22 -05:00
Julian Oes
4cac6d1a44
tune_control: added define for tune strength
...
This adds a define for the tune strength instead of hard-coding it with
a magic number.
2018-02-22 15:24:46 +01:00
Daniel Agar
19e706fede
fw_att_control fix attitude setpoint publication
2018-02-21 21:07:29 -05:00
Daniel Agar
a0f115b9ae
fw_att_control consolidate flaps code
2018-02-21 21:07:29 -05:00
Daniel Agar
4cb71f209f
fw_att_control centralize manual setpoint generation
2018-02-21 21:07:29 -05:00
Daniel Agar
7fa858ad84
fw_att_control only store battery_status scale
2018-02-21 21:07:29 -05:00
Daniel Agar
94b8e4a2bf
fw_att_control remove commented warnings
2018-02-21 21:07:29 -05:00
Daniel Agar
dcc47020a4
fw_att_control update params before poll
2018-02-21 21:07:29 -05:00
Daniel Agar
bf42964432
fw_att_control don't store entire vehicle_land_detected message
2018-02-21 21:07:29 -05:00
Daniel Agar
063714c42c
fw_att_control initialize all fields in header
2018-02-21 21:07:29 -05:00
Daniel Agar
15fb60c48f
fw_att_control delete unused loop_counter
2018-02-21 21:07:29 -05:00
Daniel Agar
1897b93cd2
fw_att_control rename fw_att_control_main.cpp to match class
2018-02-21 21:07:29 -05:00
Daniel Agar
426f2cce2e
fw_att_control split header into separate file
2018-02-21 21:07:29 -05:00
Daniel Agar
80de3f48c8
fw_att_control remove debug code
2018-02-21 21:07:29 -05:00
Daniel Agar
559e2c211a
fw_att_control move to ModuleBase
2018-02-21 21:07:29 -05:00
Beat Küng
7b5b1c4f23
mc_att_control: update & reset d-term lowpass filter only when frequency changes
2018-02-19 17:02:31 +01:00
Beat Küng
5b7c062f67
mc_att_control_main: remove unused _rates_sp_prev
2018-02-19 17:02:31 +01:00
Beat Küng
f346b00ee0
mc_att_control rate controller: use a butterworth lowpass filter on the D-term
...
The filter is disabled by default, thus the behavior is unchanged.
2018-02-19 17:02:31 +01:00
Beat Küng
ca9c3b18ff
mc_attitude_control: avoid using a static variable for last_run
...
and call hrt_absolute_time() only once.
2018-02-19 17:02:31 +01:00
Beat Küng
54d1395206
IMU_GYRO_CUTOFF, IMU_ACCEL_CUTOFF: reduce minimum to 0, allowing to disable filtering
2018-02-19 17:02:31 +01:00
Beat Küng
4bf1980ff6
MC_ROLL_P, MC_PITCH_P: increase maximum value to 12
...
- use the same value for both
- lower control latency allows increasing these gains
2018-02-19 17:02:31 +01:00
Beat Küng
8d9e9d3a7b
RC input: allow disabling the RC filtering via RC_FLT_CUTOFF
...
The default value of 10 Hz adds noticeable lag.
2018-02-19 09:29:46 -05:00
Daniel Agar
8fc659dcb2
commander only copy actuator_controls if engine failure enabled
2018-02-19 15:28:47 +01:00
Daniel Agar
43c7f7edbe
commander remove vehicle_attitude usage
2018-02-19 15:28:47 +01:00
Daniel Agar
71fef78bdd
commander remove unused include
2018-02-19 15:28:47 +01:00
Daniel Agar
50e96b24b0
commander remove unused differential pressure check
2018-02-19 15:28:47 +01:00
Daniel Agar
ecf46b4f91
commander remove globallocalconverter
2018-02-19 15:28:47 +01:00
Daniel Agar
2c7d45064e
mavlink EXTENDED_SYS_STATE initialize landed and vtol state
2018-02-19 15:28:47 +01:00
Daniel Agar
4e45d7959c
commander remove gps receiver checks
2018-02-19 15:28:47 +01:00
Vasily Evseenko
135162522a
Don't use ADSB messages with undefined fields in navigator ( #8900 )
...
Don't use ADSB messages with undefined fields in navigator
2018-02-18 11:08:40 +01:00
Daniel Agar
a1f660119c
fw_pos_control_l1 consolidate message updates
2018-02-17 18:11:43 +01:00
Daniel Agar
458d8f7b02
fw_pos_control_l1 move to ModuleBase
2018-02-17 18:11:43 +01:00
Martina
f932217fdc
mavlink_receiver: decode obstacle_distance message
2018-02-16 19:59:31 +01:00
ChristophTobler
f9cb575ced
mavlink_receiver: add evh/evv to vision msg
...
this will be used by the ekf2 at some point
2018-02-15 11:26:01 -05:00
Avinash Reddy Palleti
12c343317c
Add aerofc baudrate to list
...
Adding aerofc baudrate 921600 into the list
2018-02-15 10:23:59 +01:00
Beat Küng
2517d3854c
printload: fix buffer overflow on NuttX
...
The NuttX config variable CONFIG_TASK_NAME_SIZE does not include the
null terminator byte, thus the buffer needs to be longer by 1 byte.
2018-02-14 11:17:44 +01:00
ChristophTobler
80eca30689
microRTPS_bridge: mark task as not running when running stop()
2018-02-13 20:50:00 -05:00