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
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
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
8cbe26c6f6
platforms: fix linking issues for NuttX build
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
546f89aee7
lockstep_scheduler: update submodule
2018-12-22 10:32:18 +01:00
Julian Oes
11b7411bf8
platforms: cleaned up defines
2018-12-22 10:32:18 +01:00
Julian Oes
843033d530
platforms: remove unused function
2018-12-22 10:32:18 +01:00
Julian Oes
4ef0d74ea3
platforms: remove old lockstep functionality
...
These functions won't be used any longer with the new implementation.
2018-12-22 10:32:18 +01:00
Julian Oes
14642edfda
gps/devices: updated submodule
2018-12-22 10:32:18 +01:00
Julian Oes
98ae0186e9
px4_sem: use px4_sem on all POSIX system
...
This uses the "fake" px4_sem based on mutex and condition_variable on
all POSIX system, not just macOS and Cygwin. This means that we can
change px4_sem_timedwait under the hood and inject the simulated time.
2018-12-22 10:32:18 +01:00
Julian Oes
4af0c939ec
lockstep_scheduler: update submodule
2018-12-22 10:32:18 +01:00
Julian Oes
5ff3c40179
Added lockstep_scheduler as submodule
...
This is just an intermediate step until we can copy the sources over.
2018-12-22 10:32:18 +01:00
Julian Oes
db6de38b19
Work in progress to support a speed factor in SITL
...
These contains some rough changes trying to get SITL to speed up by a
SPEED_FACTOR.
This platform time code probably requires some more thought and refactor
but this gets a demo at 4x working.
2018-12-22 10:32:18 +01:00
Julian Oes
d70b0f1c8c
Replace sleep with px4_sleep
...
This is another step to isolate time from the system.
2018-12-22 10:32:18 +01:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Julian Oes
e485885344
platforms: remove unused Rate class
2018-12-22 10:32:18 +01:00
Christian Rauch
92117da3a8
check CONFIG_ARCH_MATH_H
2018-12-21 05:43:21 -08:00
Beat Küng
c659d2bcc2
mixer: minor refactoring to reduce header include dependencies
...
- avoid including <px4_defines.h> from the math headers
- avoid driver include <drivers/drv_mixer.h> from the mixer
2018-12-13 09:50:07 +01:00
Kārlis Seņko
c1d50d35d3
Move common shmem parameter declarations to shmem.h.
2018-12-11 09:21:15 -05:00
Daniel Agar
1efad64f0c
bebop move flow driver to board directory
2018-12-04 01:06:54 -05:00
Daniel Agar
02c34763f0
tone_alarm_sim readd to sitl and drop DriverFramework
...
- fixes #10925
2018-11-29 07:40:22 -05:00
Daniel Agar
48df19c8df
move dyn_hello to examples and restore testing
2018-11-26 14:40:14 -08:00
Daniel Agar
fecdfe5fbc
move posix/tests/hrt_test to systemcmds/tests/hrt_test
2018-11-26 14:40:14 -08:00
Daniel Agar
e45e7aa8a6
move posix/tests/hello to examples/hello and include everywhere
2018-11-26 14:40:14 -08:00
Daniel Agar
85c5fb4295
muorb test move to modules/muorb/test
2018-11-26 14:40:14 -08:00
Daniel Agar
c3448c19c4
make vcdevtest a generic cdev test
2018-11-26 14:40:14 -08:00
Daniel Agar
f692ad04d0
boards organization
2018-11-26 14:40:14 -08:00
Mara Bos
3c660acca8
Add unit test for dynamically loading modules on posix.
2018-11-24 01:58:09 +01:00
Mara Bos
e9fb17c51a
Always use FILE* for standard output.
...
The threads running commands for clients through the Posix daemon used
to write to a char buffer through snprintf (etc.) which was then written
directly to the file descriptor, whereas in the other case printf
(etc.) was used to write to stdout (FILE*). Both versions used some
macro's and repeated code to have the same output.
This change unifies these two cases by using a FILE* in both cases. The
(line) buffering is done by the standard C library's implementation
(just like with stdout), and px4_log.c now uses the same code in all
cases (using fprintf, etc.) for printing (colored) output.
2018-11-23 12:15:41 +01:00
Daniel Agar
f1bf7172e7
make vdev file flags and priv consistent with nuttx
2018-11-23 08:15:48 +01:00
Daniel Agar
246b879aea
require MODULE_NAME
2018-11-10 13:52:34 -05:00
Daniel Agar
571364c617
delete baro_report (alias for sensor_baro_s)
2018-11-06 07:43:43 +08:00
Daniel Agar
acc24da0c2
delete gyro_report (alias for sensor_gyro_s)
2018-11-06 07:43:43 +08:00
Daniel Agar
2a83a40491
delete accel_report (alias for sensor_accel_s)
2018-11-06 07:43:43 +08:00
Beat Küng
bec43b0b28
mc_att_control: run rate controller first and increase fmu prio by one
...
The rate controller is now run directly after a gyro publication, and
as soon as it publishes the actuator controls, the output driver (fmu/...)
runs.
Test on a Pixracer:
Reduces fmu control latency from 219us to 134us.
If we run the rate controller last (same order as before, just increase
the prio), the latency is 201us.
CPU load is unchanged.
The drawback is that the attitude to rate setpoint generation is delayed
by one cycle (4ms), but it will be reduced to 1ms as soon as we run at
1kHz.
2018-10-30 20:20:25 -04:00
David Sidrane
71f809a20c
px4_micro_hal:Add STM32 stm32_gpiosetevent
2018-10-30 19:29:15 -04:00
Mara Bos
96a33d1afc
Enable __attribute__((format)) on px4 logging functions.
...
This makes the compiler warn about invalid format strings.
2018-10-27 12:44:51 +02:00
Bart Slinger
c762a12bfa
bebop2 shutdown motors on force_failsafe
2018-10-03 15:35:25 -04:00
Beat Küng
afc1be2296
px4_micro_hal: fix typo
2018-10-03 10:30:10 +02:00
David Sidrane
dc59e19bbb
Moved PX4_SOC_ARCH_ID from px4_micro_hal to board_common
2018-10-03 10:30:10 +02:00
David Sidrane
8bec5fc37b
px4_micro_hal:Define PX4_SOC_ARCH_ID
2018-10-03 10:30:10 +02:00
Bart Slinger
9530b6c24d
bebop 2 disable motors on kill ( #10605 )
2018-09-30 11:40:51 -04:00
Beat Küng
f2f9a7aadc
px4_module.h: remove unnecessary ;
2018-09-25 07:53:29 +02:00
Beat Küng
fe924334c2
px4_cli: add px4_get_parameter_value CLI helper method
2018-09-25 07:53:29 +02:00
Beat Küng
4e6139d9fb
Posix: add '#pragma GCC poison exit'
...
Generally exit() should not be used on Posix, because it exits the whole
program instead of only the task.
2018-08-31 18:11:58 +02:00
Beat Küng
fe502ffd33
fix tone_alarm: avoid using exit()
...
On POSIX it exits the process.
2018-08-31 18:11:58 +02:00