Commit Graph
129 Commits
Author SHA1 Message Date
Lorenz Meier 9fb2a408bf baro sim: Code style 2015-12-01 12:43:49 +01:00
Lorenz Meier f0a4979da6 Merged master into driver_framework 2015-12-01 12:34:02 +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
David Sidrane 731daec744 Added missing conditional compilation control for FMUV4 2015-11-28 09:13:15 +01:00
Erik de Castro Lopo 5e9a8d0c03 Baro sim: Add missing initializers 2015-11-26 13:29:11 +11: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 274eb39208 Tone alarm: Reset work when resetting notes 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 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 cbbdb8af9b Gyro sim: add missing call initializer 2015-11-21 14:23:15 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Mark Charlebois 34410e7ce4 Changes for updated DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 19:03:10 -08: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
tumbili 6200cf6d86 reduce gyro update rate to 400 Hz 2015-11-18 16:11:10 +01:00
Mark Charlebois 62eba58fb4 Code format fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 17:46:22 -08:00
Mark Charlebois befec98e17 Fixed adcsim
Was missing call of base class init().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 17:42:33 -08:00
Mark Charlebois b6963be9eb Fixed gyrosim
Was not calling base class init()

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 17:35:54 -08:00
Mark Charlebois 618626103f Use DevMgr::getNextDevicePath()
Also, a fix for number of args passed for accelsim.

Updated to newest version of DriverFramework.

DF drvices show up now in list_devices

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 16:57:57 -08:00
Mark Charlebois dbe3b0e52b Re-enabling code to handle DF framework
Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 13:51:39 -08:00
Mark Charlebois 40b488d693 Updated to latest DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 11:59:30 -08:00
Lorenz Meier a26d7c35cd Baro sim: use right IOCTL API 2015-11-14 11:17:28 +01:00
Lorenz Meier fc0ff0d2f6 Baro sim: Initialize struct 2015-11-14 10:31:37 +01:00
Lorenz Meier fa2b1ffa14 Tone alarm: IOCTL interface fix 2015-11-14 00:09:26 +01:00
Lorenz Meier fd0584e95d Gyro sim IOCTL fix 2015-11-14 00:08:01 +01:00
Lorenz Meier 6c43b6c964 Baro sim: fix baro ioctl interface 2015-11-14 00:06:18 +01:00
Lorenz Meier b05294d4b4 Accel sim: Fix ioctl interface 2015-11-14 00:05:45 +01:00
Lorenz Meier 4c47fa70a8 Airspeed: No module file 2015-11-13 23:58:14 +01:00
Lorenz Meier df08ee52cf Tone alarm: no module file 2015-11-13 23:57:57 +01:00
Lorenz Meier aac1afd83d Gyro sim: No module file 2015-11-13 23:57:23 +01:00
Lorenz Meier 72bd43d972 GPS sim: no module file 2015-11-13 23:57:09 +01:00
Lorenz Meier 50820157ce Baro sim: No module file 2015-11-13 23:56:51 +01:00
Lorenz Meier 3607d80de2 ADC sim: no module file 2015-11-13 23:56:38 +01:00
Lorenz Meier 643fccb014 Accel sim: No module file 2015-11-13 23:56:23 +01:00
Lorenz Meier a3f2c7ac13 Baro sim: Code style 2015-11-12 15:32:48 +01:00
Lorenz Meier b50c332c76 Accel sim: Code style 2015-11-12 15:32:40 +01:00
Lorenz Meier dda6ec3d5f Fix missing errno header 2015-11-12 15:28:26 +01:00