Commit Graph

424 Commits

Author SHA1 Message Date
Lorenz Meier fd9978c805 Battery: Trigger RTL a little later 2016-04-25 08:44:51 +02:00
Lorenz Meier 3003ed8d40 Make battery failsafe limits configurable 2016-04-25 08:44:51 +02:00
Julian Oes a302e79bb6 param_shmem: be less chatty, printf cleanup 2016-04-24 20:03:10 +02:00
Lorenz Meier 1ecfaff6ea Fix up power consumption estimation 2016-04-23 17:51:24 +02:00
Lorenz Meier b402cd9336 Battery: Fix code style 2016-04-23 15:51:44 +02:00
Lorenz Meier ba817c7e45 Battery handling: Make critical state accessible 2016-04-23 15:47:20 +02:00
Lorenz Meier 4b0f1a6fb1 Battery lib: Fix interfaces and params 2016-04-23 14:25:21 +02:00
Lorenz Meier c2f88c78b4 Fix battery current integration issue 2016-04-21 21:32:18 +02:00
Mark Whitehorn f097e118df assign timestamp 2016-04-19 21:19:44 +02:00
Gustavo Jose de Sousa 955af32b1c systemlib: properly check for MULT_COUNT value
Checking with preprocessor directives doesn't have any effect because
MULT_COUNT is an enum value rather than a macro. Thus, since MULT_COUNT is
undefined from the preprocessor perspective, even if the number of items in
`enum MULT_PORTS` (except MULT_COUNT) was greater than 33, the error wouldn't
be raised.
2016-04-18 11:38:28 +02:00
James Goppert f73af95b38 Added SYS_MC_EST_GROUP to allow fine grained algorithm selection. 2016-04-14 15:22:25 -04:00
Julian Oes 22847e49e7 param_shmem: fix style 2016-04-12 13:15:50 +02:00
Julian Oes 9cfffc9747 param_shmem: do fsync after param write 2016-04-12 13:15:50 +02:00
Julian Oes 4ddd1bbf03 battery: fix segfault
The name was set NULL which lead to a segfault on POSIX.
2016-04-11 18:01:47 +02:00
Julian Oes 1cc43a00d6 battery: astyle 2016-04-11 18:01:47 +02:00
Julian Oes 32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
tumbili 2f7601370b mixer multirotor: initialise min_out with correct value 2016-04-11 17:47:40 +02:00
Beat Küng 215aa78f30 fix coding style for gps drivers 2016-04-11 11:23:01 +02:00
Beat Küng b3ed8b70d2 systemlib scheduling_priorities: include the more generic px4_tasks.h
this makes sure the header can also be used under POSIX
2016-04-11 11:23:01 +02:00
Beat Küng ec819737c1 systemlib: make err() & errx() work for POSIX 2016-04-11 11:23:01 +02:00
Julian Oes 60d66dc23f param_shmem: before saving update the param 2016-04-05 13:02:53 +02:00
Daniel Agar 6888545037 remove @unit enum 2016-03-25 20:33:25 -04:00
Lorenz Meier e28b9edc8b Fix MAVLink log output and priorities 2016-03-24 14:21:36 +01:00
Julian Oes bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Julian Oes 2d4179a35b mavlink: refactor mavlink_log
This moves the mavlink_log interface from ioctl to uORB and enables the
mavlink statusmessage output for Snapdragon. The API changes will lead
to changes in all modules that are using it.
2016-03-24 13:09:16 +01:00
Lorenz Meier 76a8bea1c1 Fix mixer reporting 2016-03-24 12:07:06 +01:00
Julian Oes 4a1e9d610b param_shmem: fix the "unknown param id" bug
The recent workaround to flag all params as used did not include
param_for_used_index(). However, this function got used in the case if
one param had not been received by QGC and was requested by its index.
2016-03-22 20:38:11 +01:00
Julian Oes 61baef4b65 param_shmem: fix format 2016-03-18 11:26:29 +00:00
Julian Oes 06d7a9c491 param_shmem: fixes for params on Snapdragon
On Snapdragon we can't yet use the "used" mask for parameters and
therefore need to send all of them down to the ground station. All
params were set to used in an earlier commit but the count and index
function didn't reflect this change. This is fixed now, therefore we can
successfully receive all params in QGC.
2016-03-18 11:26:29 +00:00
Daniel Agar 8ffcfdb492 systemlib fix comment formatting 2016-03-14 09:12:34 +01:00
Daniel Agar 12d0febaea system param @unit 2016-03-14 09:12:34 +01:00
Daniel Agar 91e3073e11 circuit_breaker param metadata 2016-03-14 09:12:34 +01:00
Julian Oes 881a2a5860 param_shmem: make all params used
This is a workaround for the fact that the used information is not
shared between the ADSP and the Linux side on the Snapdragon. By
flagging all params used, we can at least receive them on QGC.
2016-03-10 22:26:31 +01:00
Lorenz Meier 17b86d97e2 System lib format fixes 2016-03-06 18:05:45 +01:00
Julian Oes 1cebfde840 gps: make the driver compile and run on QURT 2016-03-06 18:02:50 +01:00
Lorenz Meier 98e65a2c3a Do not check mode switch for now 2016-03-06 17:54:11 +01:00
Mark Whitehorn 1551898f5a fix typo in comment 2016-03-01 09:21:58 +01:00
Lorenz Meier 73125b52d6 More autostart items for serial link 2016-02-19 20:36:04 +01:00
jwilson 75fad09263 Fixed problem causing a failure to obtain the shared memory lock on the AppsProc. 2016-02-19 16:59:49 +01:00
jwilson 4adfea7fa9 Resolved shared memory parameter problems and removed additional debug code. 2016-02-19 16:59:49 +01:00
Julian Oes 4b2be9c9d4 param_shmem: remove debug noise 2016-02-19 16:59:46 +01:00
Mark Charlebois 791ec37f43 Code formatter fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Mark Charlebois caa94d58a6 Manually integrated Jim's changes from integrate2_jim branch
Signed-off-by: Jim Wilson <jywilson99@hotmail.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Mark Charlebois bd76042de2 Added muorb to posix eagle build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:45 +01:00
Mark Charlebois dab1f835c7 Code cleanup and ifdefs required for qurt build
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.

Changes include code cleanup for shmem_posix.c.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:45 +01:00
Mark Charlebois 8b22bde071 Code format fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:45 +01:00
Mark Charlebois 94a1332cfa Removed extraneous ifdef __PX4_QURT
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois 8c4064e346 Removed bad integration changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois 4c9492e10f Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois 9f1aca90b3 Removed bad integration changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00