9065 Commits

Author SHA1 Message Date
Lorenz Meier
a9fb11829f Commander: Fix scheduling so its not running at higher prio than control apps 2015-11-29 18:50:02 +01:00
Lorenz Meier
65002d279f Commander: Allow setting home position faster 2015-11-29 18:49:58 +01:00
Lorenz Meier
3c26ca99a0 Q estimator: Increase phase margin 2015-11-29 18:45:48 +01:00
Lorenz Meier
c28f394c3c Gyro sim: Remove unused perf counter 2015-11-29 13:42:42 +01:00
Lorenz Meier
f4f143927f MPU9K: Remove unused perf counter 2015-11-29 13:41:17 +01:00
Lorenz Meier
44d32a31d1 MPU6K: Remove unused perf counter 2015-11-29 13:41:02 +01:00
Erik de Castro Lopo
67d61488da sensors: Initialize _parameters 2015-11-27 17:51:12 +11:00
Erik de Castro Lopo
fb4bf7c59c MAVLink: Fix call to orb_advertise_multi
Previously, pointer to an uninitialized int was being passed as the
instance pointer. Now we pass a NULL pointer instead and the code
being called will use the default instance value of zero.
2015-11-27 17:51:12 +11:00
Erik de Castro Lopo
6c2c2b19a7 MAVLink: Only update rx count on successful read 2015-11-27 17:51:12 +11:00
Erik de Castro Lopo
0b3889e2e3 INAV: Valgrind fix
Make sure `struct position_estimator_inav_params params` is properly initialized.

At first there was no indication that this struct was un-initialized because valgrind
was issuing warnings about values that were derived (via float calculations) from
values in this struct. Maybe instruction re-ordering during optimization caused
this disconnect between the source of the problem and the symptom.
2015-11-27 17:51:12 +11:00
Erik de Castro Lopo
4f7ab6f4f3 uORBManager: Make orb_check fail safely
The `orb_check` function takes a pointer to a `bool` which it then passes
to `px4_ioctl`. However, if the call to `px4_ioctl` fails, the bool
doesn't get updated (neither set nor cleared). Therefore, in `orb_check`
we explicitly set the bool to `false` before passing the pointer to
`px4_ioctl`.
2015-11-26 15:42:09 +11:00
Erik de Castro Lopo
5e9a8d0c03 Baro sim: Add missing initializers 2015-11-26 13:29:11 +11:00
Erik de Castro Lopo
87202a08b1 Navigator: Reorder data members to fix valgrind warnings
During construction of an Navigator object, a pointer to the incomplete
object was passed to the RTL constructor which then called a method on
the incomplete Navigator object accessing uninitialized data.
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
Lorenz Meier
c1a2d19459 MAVLink Sim: Use time delta 2015-11-25 11:13:32 +01:00
Lorenz Meier
1216efc5b4 Estimator Q: Fixed code style 2015-11-25 11:12:36 +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
Lorenz Meier
17caae00aa Attitude estimator Q: Add performance counters for delay 2015-11-24 14:24:18 +01:00
Lorenz Meier
bd4497f883 Simulator: Add performance counters for delay 2015-11-24 14:23:59 +01:00
Lorenz Meier
d4c8be3933 Update driver framework with fixed DF list deletion 2015-11-24 09:29:00 +01:00
Mark Charlebois
36208255bd Address Sanitizer found delete vs delete[] issue
mavlink_main.cpp used new char[n] and delete vs delete[].

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-23 23:23:02 -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
da47e8ade8 Validator: Reset error state if no error condition triggers 2015-11-24 00:11:49 +01: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
f42b338f16 VDev: Switch to a timed wait semaphore 2015-11-23 19:51:45 +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
57b9ac05de Navigator: taking off now on takeoff command, but not yet holding altitude once completed. 2015-11-23 00:23:13 +01:00
Lorenz Meier
34f4c57456 commander: Handle takeoff state 2015-11-22 16:03:58 +01:00
Lorenz Meier
4950762d4e Navigator: Fix compile error 2015-11-22 15:55:49 +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
c81e9714c7 INAV: Robustify polling 2015-11-22 14:01:52 +01:00
Lorenz Meier
4fa0123652 Navigator: Only indicate timeout if we really time out 2015-11-22 14:01:52 +01:00
Lorenz Meier
4c60f4d98a Q estimator: Ensure init 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
e12766826c VDev posix: Initialize HRT work 2015-11-22 14:01:52 +01:00