Commit Graph

438 Commits

Author SHA1 Message Date
Lorenz Meier 6de02c460a Battery estimation: Widen thresholds and filter more 2016-05-03 12:35:35 +02:00
Lorenz Meier 4c61f52269 Code style fixes 2016-05-03 11:42:28 +02:00
Lorenz Meier ff3e17df0d Systemlib: Add FW and OS versioning 2016-05-03 11:39:39 +02:00
Lorenz Meier 05885e4e5f Add support to enable FrSky telemetry on TELEM2 2016-04-30 12:00:56 +02:00
Lorenz Meier bf0ea86bd9 Fix battery params to better defaults 2016-04-29 20:34:32 +02:00
Lorenz Meier 18b72241ce System params: Update choices for ESP8266 2016-04-29 14:58:41 +02:00
Lorenz Meier 567364317a Fix formatting in battery 2016-04-29 11:16:41 +02:00
Lorenz Meier 1b133931a6 Battery charge estimation: Refactor the filtering strategy and move it to the backend, doing integration before and filtering the resulting charge estimate 2016-04-29 11:05:44 +02:00
Lorenz Meier 3345a586d2 Battery: Initialize lowpass value properly 2016-04-28 13:24:53 +02:00
Lorenz Meier a676af3d42 Battery: Deal with symmetric throttle 2016-04-28 13:05:44 +02:00
Julian Oes e3c9135ac2 param_shmem: fix bug where params didn't stick
There was the case where a param was changed on the Linux side but the
change did not get saved on the DSP side because the param was not in
the local list of changed params on the DSP side. On save, the param
index is now refreshed, and param_get is called on all params that have
changed. This is a hacky workaround but resolves the problem for now.
2016-04-26 10:21:01 +02:00
Julian Oes 1cf7de8fdb perf_counter: perf_print_counter now works on QURT 2016-04-25 12:48:48 +02:00
Julian Oes 662c097803 perf_counter: add function to set a count
This needed the set function which sets elapsed to change the name to
avoid ambiguities.
2016-04-25 12:48:48 +02:00
Lorenz Meier faa85a2eba Battery: Add proper units 2016-04-25 09:36:28 +02:00
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