Daniel Agar
55e3f80bab
mavlink handle MAV_ODOM_LP parameter in main
...
- fixes #11125
2019-01-01 22:21:02 +00:00
Julian Oes
29bfdb0c88
platforms: fix linking for qurt ( #11115 )
2018-12-29 16:21:52 -05:00
Matthias Grob
36248cb12e
PWMSim: publish disarmed value when not armed
2018-12-29 00:18:05 +01:00
Matthias Grob
05e45c2867
PWMSim: refactor only use one output number variable
2018-12-29 00:18:05 +01:00
Matthias Grob
986e6c96b5
PWMSim: refactor unused output loop
2018-12-29 00:18:05 +01:00
Matthias Grob
c22dbe130b
PWMSim: refactor to use math constrain
2018-12-29 00:18:05 +01:00
bazooka joe
1560364c04
fix home position timestamp to be the timestamp that the home was set and not when the message was sent
2018-12-27 11:04:24 -05:00
bazooka joe
f6cf95cee0
mavlink: fix uninitialized messages fields
...
zeroed uninitialized fields on home_position, mavlink_rc_channels_override, mavlink_mission_item, mavlink_mission_item_int
2018-12-27 11:04:24 -05:00
Daniel Agar
3cd3856d32
commander set home position timestamp properly
2018-12-27 10:52:01 -05:00
Julian
3e87013936
simulator: fix TCP on Cygwin-Windows
...
It turns out that `sendto` does not work for TCP on Cygwin-Windows,
instead we need to use `send`. This required some refactoring since we
need to have the internet protocol and the port stored as a member
variable.
This should fix that lockstep SITL simulation was not working on
Windows.
2018-12-27 07:49:12 +01:00
PX4 Build Bot
03c0760e4b
Update submodule micro-CDR to latest Sun Dec 23 21:17:02 UTC 2018
...
- micro-CDR in PX4/Firmware (b043cfac5e8635d9017ad6a13f45795ad6fda6fb): https://github.com/eProsima/micro-CDR/commit/8b3546e8848e4c07c16ec55730d3ad1aa94396ab
- micro-CDR current upstream: https://github.com/eProsima/micro-CDR/commit/7a76880f90dfe702f4fa1723e22d1dcb491d7b9e
- Changes: https://github.com/eProsima/micro-CDR/compare/8b3546e8848e4c07c16ec55730d3ad1aa94396ab...7a76880f90dfe702f4fa1723e22d1dcb491d7b9e
7a76880 2018-12-11 Julián Bermúdez Ortega - Badges (#24 )
2018-12-23 21:25:09 +00:00
Beat Küng
5b4a77a67b
params: add possibility to access files if flash-based params are enabled
...
- the flash-backend is selected by specifying nullptr as file or -1 as fd
- the default file is nullptr, and thus the FLASH
- 'param select' has no effect, FLASH is always the default
Thus there should be no functional change to existing setups.
2018-12-23 15:49:37 -05:00
Julian Oes
73ed9deac5
mixer: add missing include
2018-12-22 10:32:18 +01:00
Julian Oes
ea87bcb5a2
DriverFramework: update submodule
...
Now that the lockstep changes are merged to master.
2018-12-22 10:32:18 +01:00
Julian Oes
a1fc44d1f0
simulator: fix noise in airspeed
...
It turns out the noise of the airspeed depends on the least significant
bit of time which is now always 0 because time is quite regular with
lockstep. Therefore, we need a better source for the randomness. I chose
to use the sign of the y-gyro and it seems to work.
2018-12-22 10:32:18 +01:00
Julian Oes
aac7b8d7eb
platforms: fix NuttX build
2018-12-22 10:32:18 +01:00
Julian Oes
14e5ebbbbc
platforms: fix clock build for macOS (yet again)
2018-12-22 10:32:18 +01:00
Julian Oes
06c5037025
platforms: use CLOCK_MONOTONIC
...
For the non-lockstep case we want to use CLOCK_MONOTONIC if possible.
2018-12-22 10:32:18 +01:00
Julian Oes
547dd8511b
platforms: use define for lockstep scheduler
...
Instead of using the define __PX4_POSIX_SITL it makes more sense to have
a define just to determine if the lockstep scheduler should be used.
2018-12-22 10:32:18 +01:00
Julian Oes
73578a593f
simulator: bring -t argument back
...
The -t argument had been deleted because I didn't realize that it was
actually being used. Therefore, this brings it back and we now use -c
for TCP.
2018-12-22 10:32:18 +01:00
Julian Oes
d0251581d3
samv7: fix include
2018-12-22 10:32:18 +01:00
Julian Oes
1b685de70d
simulator: raise timeout
...
This is not suposed to ever trigger anyway.
2018-12-22 10:32:18 +01:00
Julian Oes
8b2c47523f
simulator: set socket options after opening socket
2018-12-22 10:32:18 +01:00
Julian Oes
e4af97b11b
simulator: fix printf format
2018-12-22 10:32:18 +01:00
Julian Oes
564cae86b5
simulator: remove doubled tcgetattr call
2018-12-22 10:32:18 +01:00
Julian Oes
8a5e0558e4
simulator: improve a couple of error messages
2018-12-22 10:32:18 +01:00
Julian Oes
1165739a56
sensors: check other gyros on timeout
...
@bkueng reviewed this and found that it is dangerous to continue on
timeout because we don't update other gyro sensors in the timeout case.
2018-12-22 10:32:18 +01:00
Julian Oes
8e4296d000
parameters: remove unneeded usleep
...
According to @bkueng this was to schedule other processes but can now be
removed.
2018-12-22 10:32:18 +01:00
Julian Oes
4efe4b0d15
platforms: reorg after rebase on new board config
...
The new board config changed everything, so I needed to move the
lockstep_scheduler repo.
2018-12-22 10:32:18 +01:00
Julian Oes
b4382d4a71
DriverFramework: updated submodule
2018-12-22 10:32:18 +01:00
Julian Oes
185ddb2ab6
lockstep_scheduler: format to PX4 style
...
Consistency over taste :(.
2018-12-22 10:32:18 +01:00
Julian Oes
fb9f72d029
lockstep_scheduler: modernize warnings
2018-12-22 10:32:18 +01:00
Julian Oes
85486e0469
platforms: let's try clockid_t as int
...
Who knows what this really is.
2018-12-22 10:32:18 +01:00
Julian Oes
f3aad419ac
DriverFramework: update submodule
...
Hopefully, we can fix the defines for macOS.
2018-12-22 10:32:18 +01:00
Julian Oes
7b43e96896
platforms: copied files from lockstep-scheduler
...
The files are copied from:
https://github.com/julianoes/lockstep-scheduler/
2018-12-22 10:32:18 +01:00
Julian Oes
3cbb2d8661
platforms: removed lockstep_scheduler submodule
2018-12-22 10:32:18 +01:00
Julian Oes
f36f85010c
simulator: fix casting warning on Windows
2018-12-22 10:32:18 +01:00
Julian Oes
393a665424
DriverFramework: update submodule
...
Fixes the unit test on macOS.
2018-12-22 10:32:18 +01:00
Julian Oes
e046a6255f
DriverFramework: update submodule
...
This brings a couple more build fixes.
2018-12-22 10:32:18 +01:00
Julian Oes
e41518a08b
platforms: clean up various build/linking issues
...
This makes sure lockstep is only built for SITL builds and fixes the
existing builds.
2018-12-22 10:32:18 +01:00
Julian Oes
23264fe579
kinetis: add missing include
2018-12-22 10:32:18 +01:00
Julian Oes
8cbe26c6f6
platforms: fix linking issues for NuttX build
2018-12-22 10:32:18 +01:00
Julian Oes
a193e4117c
drv_hrt: update signature of ts_to_abstime
2018-12-22 10:32:18 +01:00
Julian Oes
d75389b2e4
platforms: consolidate latency_buckets
...
These symbols were duplicated all over the place.
2018-12-22 10:32:18 +01:00
Julian Oes
b13600ed1a
platforms: remove TODO
...
It turns out Mac OS X v10.11.6 (El Capitan) is still covered by security
updates at this time, so not end-of-lifed, so we might as well keep
these legacy things.
2018-12-22 10:32:18 +01:00
Julian Oes
22b584b3b4
simulator: fix TCP connection init on macOS
...
When `connect()` fails, the state of the socket is unspecified and we
need to close the it and create it again.
It turns out retrying connect worked on Linux but it didn't on macOS.
2018-12-22 10:32:18 +01:00
Julian Oes
b2f1a59164
DriverFramework: update submodule
...
This fixes the build on macOS.
2018-12-22 10:32:18 +01:00
Julian Oes
6ed6941aba
DriverFramework: update submodule
...
This fixes the SITL speedup for macOS.
2018-12-22 10:32:18 +01:00
Julian Oes
546f89aee7
lockstep_scheduler: update submodule
2018-12-22 10:32:18 +01:00
Julian Oes
876d4ebd76
posix: remove appalling errno hack
2018-12-22 10:32:18 +01:00