Commit Graph

631 Commits

Author SHA1 Message Date
Lorenz Meier 0c2b6bf9d1 POSIX: Set the thread name for better debugging 2015-12-01 10:27:39 +01:00
Lorenz Meier 9ee4760fe0 Barosim: Simplify to a plain loop without reschedules or sub interfaces. Behaves now. The DriverFramework needs closer inspection for busy-running threads. 2015-11-30 00:41:46 +01:00
Lorenz Meier c28f394c3c Gyro sim: Remove unused perf counter 2015-11-29 13:42:42 +01:00
Erik de Castro Lopo 5e9a8d0c03 Baro sim: Add missing initializers 2015-11-26 13:29:11 +11:00
Lorenz Meier e7d2295565 Bumped max SITL args to 10 2015-11-25 22:01:35 +01:00
Lorenz Meier 176fb3b185 Gyrosim: Code style fix 2015-11-25 11:16:28 +01:00
Lorenz Meier 24767547e9 Baro sim: Code style fix 2015-11-25 11:16:16 +01:00
Lorenz Meier 6a80d8b3dc Baro sim: Code style fix 2015-11-25 11:16:00 +01:00
Lorenz Meier 58aa8107de Accelsim: Code style fix 2015-11-25 11:15:43 +01:00
Mark Charlebois f3126e9d3a Fixes for DriverFramework, accelsim and gyrosim
DriverFramework was updated to properly delete nodes in managed lists.

Baro was fixed to use DriverFramework.

Accelsim was fixed with change to DriverFramework to return < 0 when start()
is called and the driver was already started, or stop() is called but the
driver was not running.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-24 22:46:20 -08:00
Mark Charlebois 1aeca4f64d Fixed code format and removed unused std::list
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-23 23:09:10 -08:00
Mark Charlebois 0a8075ee33 Fixed accelsim
Accelsim runs the accel and mag separately now.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-23 21:30:33 -08:00
Lorenz Meier a7cb170cc4 PX4 semaphores: Formatting fix 2015-11-23 22:05:17 +01:00
Lorenz Meier 86a66fe771 POSIX Formatting change 2015-11-23 21:50:51 +01:00
Lorenz Meier 1b91f78430 Add timed wait semaphore 2015-11-23 19:51:15 +01:00
Lorenz Meier e2894c4a46 Added timed wait semaphore 2015-11-23 19:50:44 +01:00
Lorenz Meier 2730d8ab20 Fix HRT init compile error 2015-11-22 15:50:14 +01:00
Lorenz Meier f6a6c41af5 POSIX: More Travis compile fixes 2015-11-22 15:30:36 +01:00
Lorenz Meier 17882cee78 Fix Travis build error 2015-11-22 15:17:07 +01:00
Lorenz Meier 65cca56c29 Code style fix 2015-11-22 14:07:27 +01:00
Lorenz Meier 9c13e4c4be Fix race in task create 2015-11-22 14:01:52 +01:00
Lorenz Meier 734ec9094e Posix tasks: Initialization and locking 2015-11-22 14:01:52 +01:00
Lorenz Meier e3b13e1324 HRT: initialize queue 2015-11-22 14:01:52 +01:00
Lorenz Meier c003305472 HRT thread: Fix style 2015-11-22 14:01:52 +01:00
Lorenz Meier cda3c28661 HRT driver: Initialize work struct 2015-11-22 14:01:52 +01:00
Lorenz Meier 274eb39208 Tone alarm: Reset work when resetting notes 2015-11-22 14:01:52 +01:00
Lorenz Meier 0a883fd11d HRT thread: Do not make implicit assumptions about struct members 2015-11-22 14:01:52 +01:00
Lorenz Meier 3af906b9a8 Ensure g_hrt_work is zero-initialized 2015-11-22 14:01:52 +01:00
Lorenz Meier a3e15e161c Gyro sim: do not spam output 2015-11-22 14:01:52 +01:00
Lorenz Meier 2749a57641 Add gyro instrumentation 2015-11-22 14:00:31 +01:00
Lorenz Meier 5a0c09c98d Merge branch 'master' into driver_framework 2015-11-22 13:59:01 +01:00
Roman de22fd4b4b SITL shell: do not save command if it replicates the previous one 2015-11-22 09:40:17 +01:00
Lorenz Meier a521066a0d Fixed accel sim code style 2015-11-21 17:47:18 +01:00
Lorenz Meier 6acb8850d4 Baro sim: Initialize to 100 Hz 2015-11-21 17:46:18 +01:00
Lorenz Meier 3b38004725 Accelsim: fix device ID 2015-11-21 17:45:40 +01:00
Lorenz Meier 4b56587188 Gyrosim: fix rate and device id, also output of info command 2015-11-21 17:45:06 +01:00
Lorenz Meier 7c7ef7f767 Fix system boot commandline handling 2015-11-21 17:10:43 +01:00
Lorenz Meier cbbdb8af9b Gyro sim: add missing call initializer 2015-11-21 14:23:15 +01:00
Lorenz Meier 4576e515e2 Merge branch 'master' into driver_framework 2015-11-20 09:46:25 +01:00
Lorenz Meier 1f33451690 POSIX: Fix code style 2015-11-20 09:46:05 +01:00
Lorenz Meier 12e09d70a9 Merge branch 'master' into driver_framework 2015-11-20 09:24:13 +01:00
Lorenz Meier 3c8a52a72b POSIX shell: Fix enter handling 2015-11-20 09:23:57 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Mark Charlebois 59b1e6b559 Added qurt stub for pthread_cont_init
Updated to latest DriverFramework

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 20:15:14 -08:00
Mark Charlebois 34410e7ce4 Changes for updated DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 19:03:10 -08:00
Roman 5103ba1c23 implemented better shell for SITL 2015-11-19 09:09:51 +01:00
Mark Charlebois 054b5420a6 Code style fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 20:35:16 -08:00
Mark Charlebois 169a873457 Fix compiler complaint about bogus uninitialized variable
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 20:33:38 -08:00
Mark Charlebois af155b8e59 Fixed SITL build
The SITL build seems to run correctly now

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 13:02:39 -08:00
Mark Charlebois b8c40ecb6b Enabled DriverFramework drivers for SITL build
The code here works only for SITL at the present time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 11:58:21 -08:00