Lorenz Meier
3c26ca99a0
Q estimator: Increase phase margin
2015-11-29 18:45:48 +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
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
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
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
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
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
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
5432d7a246
sensors: Param file cleanup
2015-11-22 14:01:52 +01:00
Lorenz Meier
86eb011f7d
MAVLink log: protect against empty field
2015-11-22 14:00:31 +01:00
Lorenz Meier
1bfde3823c
Commander: More efficient printing
2015-11-22 14:00:31 +01:00
Lorenz Meier
ff77884c2c
MAVLink app: Zero-initialize whole struct
2015-11-22 14:00:01 +01:00
Lorenz Meier
81039a2940
Commander: Fix home pos print
2015-11-22 13:59:24 +01:00
Lorenz Meier
d094a8f7bf
uORB sub: Do not call orb_set_interval with zero
2015-11-22 13:59:24 +01:00
Lorenz Meier
111287f6fb
Attitude EKF: Do not limit sensor speed
2015-11-22 13:59:24 +01:00
Lorenz Meier
719881b4a4
EKF: Run vehicle status updates at full rate
2015-11-22 13:59:24 +01:00
Lorenz Meier
17653113d5
FW att control: Run all topics at full rate
2015-11-22 13:59:24 +01:00
Lorenz Meier
6be674cb74
Navigator: Move to orb_check() API use
2015-11-22 13:59:24 +01:00
Lorenz Meier
65efee0d41
Commander: Be less verbose
2015-11-22 12:43:58 +01:00
Lorenz Meier
07df1be841
Simulator buffer: Ensure we do not become limited on message size
2015-11-22 12:25:01 +01:00
Lorenz Meier
4e6bb35392
sensors: Remove unneeded orb_set_interval() call
2015-11-22 12:12:22 +01:00
Lorenz Meier
6ebc26811f
Make MAVLink less chatty
2015-11-21 23:07:18 +01:00
Lorenz Meier
7579d7e901
Report takeoff state correctly
2015-11-21 22:39:38 +01:00
Lorenz Meier
e5dc027833
Commander: Fixed takeoff command, made feedback less verbose
2015-11-21 22:20:13 +01:00
Lorenz Meier
c6510bd2de
Merge branch 'master' of github.com:PX4/Firmware into driver_framework
2015-11-21 11:20:27 +01:00
Lorenz Meier
9f89426d5e
Merge pull request #3227 from thiemar/uavcan_param_save_fix
...
Don't call param_opcode unless there are dirty nodes [resolves PX4/Firmware#3160 ]
2015-11-20 22:32:14 +01:00
Lorenz Meier
aad434831e
Merge pull request #3230 from thiemar/uavcan_param_count_fix
...
Fix off-by-one error in parameter count [resolves PX4/Firmware#3162 ]
2015-11-20 22:32:01 +01:00
Roman Bapst
c9133b26f1
Merge pull request #3229 from PX4/mc_pos_alt_fix
...
Mc pos alt fix
2015-11-20 20:57:16 +01:00
tumbili
333d6ea12f
ekf: use airspeed directly, the other thing was just wrong
2015-11-20 14:59:53 +01:00
Ben Dyer
442c0d47ef
Fix off-by-one error in parameter count [ resolves PX4/Firmware#3162 ]
2015-11-20 23:32:54 +11:00
tumbili
5303a63da0
mc_pos_control: code formatting
2015-11-20 13:16:42 +01:00
tumbili
ff5db6b1be
fixed alt hold bug
2015-11-20 13:10:46 +01:00
Ben Dyer
a27a6acb54
Don't call param_opcode unless there are dirty nodes [ resolves PX4/Firmware#3160 ]
2015-11-20 22:29:40 +11:00
Lorenz Meier
9c80375a78
Navigator: Fix header file name typo
2015-11-20 11:36:57 +01:00
Lorenz Meier
a242c0ff6d
Commander: Add takeoff command handler. Do not check RC config in SITL RC mode
2015-11-20 11:15:17 +01:00
Lorenz Meier
e96fd83565
Navigator: Support takeoff command
2015-11-20 11:14:51 +01:00
Lorenz Meier
75e962ee7c
Merged master into driver_framework
2015-11-20 09:14:37 +01:00
Lorenz Meier
71320ac0fe
Commander: Add decimal hints
2015-11-20 09:01:15 +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
David Sidrane
d5c89c5392
BUGFIX:Take 2! CLI "commander calibrate acel" resulted in hardfault
...
Processes: 20 total, 4 running, 16 sleeping
CPU usage: 65.19% tasks, 0.56% sched, 34.24% idle
Uptime: 387.573s total, 135.045s idle
PID COMMAND CPU(ms) CPU(%) USED/STACK PRIO(BASE) STATE
0 Idle Task 135045 34.242 0/ 0 0 ( 0) READY
1 hpwork 7495 1.693 956/ 1592 192 (192) w:sig
2 lpwork 1576 0.376 572/ 1592 50 ( 50) w:sig
3 init 1655 0.000 1404/ 2496 100 (100) w:sem
170 top 9 0.000 1204/ 1696 100 (100) RUN
87 dataman 1 0.000 652/ 1192 90 ( 90) w:sem
105 sensors 31810 8.090 1644/ 1992 250 (250) w:sem
107 gps 1217 0.000 708/ 1192 220 (220) w:sem
109 commander 49016 17.027 3412/ 3596 215 (215) w:sig +100 184 head room
114 mavlink_if0 2607 0.564 2092/ 2392 100 (100) READY
115 mavlink_rcv_if0 27 0.000 804/ 2096 175 (175) w:sem
122 sdlog2 849 0.188 2068/ 2992 70 ( 70) READY
125 commander_low_prio 4678 0.000 2740/ 2872 50 ( 50) w:sem +200 132 head room
142 attitude_estimator_q 65555 16.933 1956/ 2096 250 (250) w:sem
144 position_estimator_inav 23877 6.208 4588/ 4992 250 (250) w:sem
148 mc_att_control 31210 7.902 1132/ 1496 250 (250) w:sem
150 mc_pos_control 2901 0.658 1044/ 1496 250 (250) w:sem
155 navigator 2219 0.470 828/ 1496 105 (105) w:sem
165 mavlink_if1 21195 5.079 2156/ 2392 100 (100) w:sig
167 mavlink_rcv_if1 116 0.000 1236/ 2096 175 (175) w:sem
2015-11-19 11:44:09 -10:00