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
7 years ago
Beat Küng
17cb5c4d58
hardfault_log: fix comment
7 years ago
Roman
49e349c753
updated sitl_gazebo: small tiltrotor fix to enable turns
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Julian Oes
38e5a06136
jMAVSim: update submodule again
...
This gets rid of a printf.
7 years ago
PX4 Jenkins
91d6f35fc8
Update jmavsim submodule Sat Feb 24 23:05:44 CST 2018
7 years ago
PX4 Jenkins
e0b32a6846
Update mavlink v2.0 submodule Sat Feb 24 02:43:15 EST 2018
7 years ago
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.
7 years ago
Matthias Grob
83ac74367c
Battery: move member initialization values to class declaration
7 years ago
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.
7 years ago
Matthias Grob
df7364d2e2
Battery: Correct unit for capacity parameter
7 years ago
Roman
ea8db53d15
fmu: removed obsolete _trim_pwm member and implemented proper fetching
...
of mixer trim values
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
04a89f7e9b
mixer lib: added methods to fetch the active trim values
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
29c60a1fd4
mixer_group: do not clamp offset to arbitrary value
...
- allow the user to apply an offset that covers the entire servo range
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
ChristophTobler
6a987b5a15
update submodule sitl_gazebo to include isinf() fix
7 years ago
Roman
2549b702f0
pwm_out_sim, simulator_mavlink: fixed code style
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
10bf6a4b59
params cmd: be less verbose
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
a1f169f752
updated sitl_gazebo for tiltrotor support
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
159834ce1b
posix-configs: set tiltrotor transition parameters
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
ddb2dd89db
simulator mavlink: support for quad tiltrotor mav type
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
e9c715f89b
pwm_out_sim: various fixes for tiltrotor simulation
...
- increased the number of pwm outputs
- handle PWM_SERVO_SET_MIN_PWM and PWM_SERVO_SET_MAX_PWM
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
2886fe8da3
posix-configs: added sitl startup script for gazebo quad tiltrotor model
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Roman
86c472d8ff
ROMFS sitl: added a mixer for the gazebo quad tiltrotor model
...
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
mcsauder
3ef6bc7d93
Update CMakeLists for the drivers/imu directory.
7 years ago
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.
7 years ago
Paul Riseborough
abb067c788
ecl: Use EKF version with external vision nav axis rotation bug fixes ( #8935 )
7 years ago
Daniel Agar
19e706fede
fw_att_control fix attitude setpoint publication
7 years ago
Daniel Agar
a0f115b9ae
fw_att_control consolidate flaps code
7 years ago
Daniel Agar
4cb71f209f
fw_att_control centralize manual setpoint generation
7 years ago
Daniel Agar
7fa858ad84
fw_att_control only store battery_status scale
7 years ago
Daniel Agar
94b8e4a2bf
fw_att_control remove commented warnings
7 years ago
Daniel Agar
dcc47020a4
fw_att_control update params before poll
7 years ago
Daniel Agar
bf42964432
fw_att_control don't store entire vehicle_land_detected message
7 years ago
Daniel Agar
97815df1a8
uorb_graph update fw_att_control special case
7 years ago
Daniel Agar
063714c42c
fw_att_control initialize all fields in header
7 years ago
Daniel Agar
15fb60c48f
fw_att_control delete unused loop_counter
7 years ago
Daniel Agar
1897b93cd2
fw_att_control rename fw_att_control_main.cpp to match class
7 years ago
Daniel Agar
426f2cce2e
fw_att_control split header into separate file
7 years ago
Daniel Agar
80de3f48c8
fw_att_control remove debug code
7 years ago
Daniel Agar
559e2c211a
fw_att_control move to ModuleBase
7 years ago
Daniel Agar
a35abf2453
rename nuttx board support packages for consistecy ( #8777 )
7 years ago
Beat Küng
7b5b1c4f23
mc_att_control: update & reset d-term lowpass filter only when frequency changes
7 years ago
Beat Küng
5b7c062f67
mc_att_control_main: remove unused _rates_sp_prev
7 years ago
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.
7 years ago
Beat Küng
ca9c3b18ff
mc_attitude_control: avoid using a static variable for last_run
...
and call hrt_absolute_time() only once.
7 years ago
Beat Küng
54d1395206
IMU_GYRO_CUTOFF, IMU_ACCEL_CUTOFF: reduce minimum to 0, allowing to disable filtering
7 years ago
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
7 years ago
Beat Küng
8d9e9d3a7b
RC input: allow disabling the RC filtering via RC_FLT_CUTOFF
...
The default value of 10 Hz adds noticeable lag.
7 years ago
Daniel Agar
8fc659dcb2
commander only copy actuator_controls if engine failure enabled
7 years ago
Daniel Agar
43c7f7edbe
commander remove vehicle_attitude usage
7 years ago
Daniel Agar
71fef78bdd
commander remove unused include
7 years ago