Beat Küng
d10848c129
aerocore NuttX defconfig: lower CONFIG_DEV_PIPE_SIZE to 70
...
This saves almost 2kb of RAM when using the mavlink shell. 70 matches the
size of the mavlink message. Since the pipe is blocking, a process writing
a lot of data will just wait, data will not be dropped.
The mavlink shell is the only process creating a pipe.
8 years ago
Beat Küng
cfcc75d444
mavlink shell: check if there's enough free buffer to send the mavlink message
...
if there is not, the process on the other end of the pipe will just block.
This improves reliability over slow links.
8 years ago
Beat Küng
644d237ce6
posix-configs scripts: remove unneeded 'sleep 1'
...
There is no need to wait, and it would be the wrong way of doing
startup synchronization.
8 years ago
Beat Küng
b1e27f4395
simulator: handle ctrl-c during startup correctly
...
This makes sure the px4 process does not hang when Ctrl-C is pressed
during startup.
8 years ago
Beat Küng
9597e708df
sensors: remove sensors_init
...
The initialization code is redundant and incomplete (only the first sensor
is done). I verified that all drivers already set this on startup.
For the mags, they all set their maximum supported update rate.
For the baro, the call can silently fail, as for example the MS5611 which
does not support 150Hz update. But it also sets the maximum in
initialization.
Tested on Pixhawk & pixracer.
8 years ago
Beat Küng
019386a5a0
bmi160: remove debug output
8 years ago
Beat Küng
828bb983e8
rpi startup scripts: start dataman so that missions can be flown
8 years ago
Beat Küng
2a6eac578d
rpi: add HIL config
8 years ago
Beat Küng
32995a5bc1
state_machine_helper: remove unneeded code to disable sensor publication
...
In HIL mode we do not start the sensors anymore, so this is not needed.
Also it did not work (I did not try to find the reason, just noticed the
sensors kept publishing in HIL mode)
8 years ago
Beat Küng
af1984ac07
sensors: do not warn about baro in HIL mode
8 years ago
Beat Küng
bc91005e7a
voted_sensors_update: increase accel & gyro timeout in HIL mode
8 years ago
Beat Küng
3a737097ee
rpi px4.config: switch to ekf2
8 years ago
Beat Küng
541e53fdcf
jmavsim_run.sh: add -i to specify the IP
8 years ago
jwilson
62200e2a81
WIP: Temporary fix for a problem which prevents arming on the Snapdragon Flight board.
8 years ago
Julian Oes
0c926106f1
param_shmem.c: comment out locking on Snappy
...
The param locking doesn't seem to be working on Snapdragon, so let's
just comment it out again.
8 years ago
Julian Oes
9235c0fd67
Update jMAVSim submodule
...
This fixes the compass, see:
https://github.com/PX4/jMAVSim/pull/55
8 years ago
jwilson
4f9245cc9c
Resolves a conflict in the type of the index parameter in the dm_read and dm_write function signature, caused by a recent change in the dataman code. This problem was causing the loading of the flight stack to fail on the aDSP.
8 years ago
Julian Oes
24819ce7b1
commander: no datalink failsafe on ground
...
On SITL startup we got a datalink lost failsafe message whenever home
was initialized. The reason that in standalone SITL, there is usually no
datalink connected. However, on ground, we shouldn't really failsafe,
therefore it makes sense not to enter the state in the first place.
8 years ago
Beat Küng
c715228b8f
LandDetector: save & initialize total flight time
8 years ago
Beat Küng
bac10bcfb8
rcS: do not wipe flight time param on autoconf
8 years ago
Michael Schaeuble
06c5cb506a
Enable ICM 20608 on Pixhawk Pro
8 years ago
Beat Küng
561a5c5422
Tools/px_mkfw.py: use the same args to get the git version as px_update_git_header.py
8 years ago
Mathieu Bresciani
d67b6efda3
PixHawk Pro: Update mag IDs to have external higher priority
8 years ago
Lorenz Meier
daf668e687
Fixed wing land detector: Fix RTL logic with a temporary altitude limit workaround
8 years ago
zthorson
b8e72789cd
px4fmu-v4: Formatting fixes
...
Signed-off-by: zthorson <zachthorson@gmail.com>
8 years ago
zthorson
a716b105f5
px4fmu-v4: Only close down fmu drivers on reset if they weren't running
...
Signed-off-by: zthorson <zachthorson@gmail.com>
8 years ago
zthorson
63857c6afc
px4fmu-v4: Fix for HIL Unable to Set Control Surfaces. Fixes #5651
...
The sensor_rest command added to the startup script for px4fmu_v4 hardware
was leaving the /dev/pwm_output0 driver open. This would prevent the
pwm_out_sim module from registering as a simulated driver. The result
would cause the system to properly boot in HIL mode, but you would not
be able to set any control surfaces.
Since sensor_rest and peripheral_reset are only used on initialization, the
drivers can be shut down after they have performed their reset functions.
Signed-off-by: zthorson <zachthorson@gmail.com>
8 years ago
Daniel Agar
e63ee9d8bd
fw_att wheel controller enable param (default off)
8 years ago
Beat Küng
ca05e64a9f
replay: update & add some comments
8 years ago
Beat Küng
eaa9e6a019
ekf2: set att.timestamp to now in replay mode before ekf is initialized
...
logger will always log this topic, and a 0 timestamp will look worse in
FlightPlot. This will show a period of 0 attitude instead before ekf
is initialized.
8 years ago
Beat Küng
01541bb10d
logger: switch from ekf2_replay to ekf2_timestamps topic, enable by default
8 years ago
Beat Küng
1d48d7e053
ekf2 replay: add statistics output when replay finished
...
The error counter is an indicator that the logger missed samples or dropped
due to a too small write buffer.
8 years ago
Beat Küng
2a11a2bc0b
ekf2 replay: switch from ekf2_replay to ekf2_timestamps topic
8 years ago
Beat Küng
aabdc4125b
ekf2: publish ekf2_timestamps topic
8 years ago
Beat Küng
df3ef3660b
ekf2_timestamps.msg: add new message with ekf2 timestamps
8 years ago
Beat Küng
473192aa81
replay: some API refactoring & extensions
...
in preparation to the updated ekf2 replay
8 years ago
Beat Küng
ba89839f65
replay: make sure ReplayEkf2::handleTopicUpdate is protected, not private
8 years ago
Beat Küng
1d93b1bce3
nuttx configs: increase CONFIG_NFILE_DESCRIPTORS from 51 to 53
...
this is needed due to the additional topics logged with the logger
8 years ago
Beat Küng
037280c17d
sitl: add iris_replay startup script, handle $replay_mode in sitl_run.sh
...
usage:
export replay_mode=ekf2
export replay=<abs_path_to_log.ulg>
make posix none
8 years ago
Beat Küng
63203625bc
replay: add ekf2 replay method (can be selected with 'export replay_mode=ekf2')
8 years ago
Beat Küng
e251c64c5f
refactor replay: add some overrideable methods
8 years ago
Beat Küng
df8c1a1489
logger: log ekf2_replay topic if EKF2_REC_RPL is set
8 years ago
Beat Küng
9d54f62d37
replay: check if topic timestamp is smaller than logging start
...
This could happen and then the sleep duration would wrap and be huge.
8 years ago
Beat Küng
1d5f51e6a4
replay: don't add subscription if formats don't match
8 years ago
Beat Küng
4eea89bb42
refactor replay: move topic publication into separate method
8 years ago
Beat Küng
45ffb190e3
logger: add -p <topic> option to poll on a topic instead of running at fixed rate
...
this will be needed for fast replay. In addition, this option disables
the orb interval.
It can be removed again once we have time simulation.
8 years ago
Beat Küng
2220c3a60d
ekf2: use sensors timestamp for published topics when in replay mode
...
when doing fast replay, hrt_absolute_time() will not match the replayed time
thus we just use the same timestamp as the input sensors.
8 years ago
Beat Küng
018846fadf
ekf2_replay.msg: use timestamp instead of time_ref, remove unused time_usec_vel
8 years ago
Beat Küng
dcdfcbe64f
posix_sitl_default cmake: add ekf2_replay
...
so that CI will build it
8 years ago
Beat Küng
aa56822f9d
ekf2_replay: fix double/float conversion compile warning
8 years ago