David Sidrane
4b63d629a9
sensors:Added Backward compatible N Brick Support FMUV4pro & FMUv5
...
This change implements the publishing of batery_status messages
for each brick on the system, using multi-pub.
Backward compatiblity is achived by always publishing the
batery_status of the bick that has been selected by the HW
Power Controller (PC) on instance 0.
The batery_status.system_source will be true in one and
only one batery_status publication when a valid bit is
set in system_power.brick_valid. However, if USB is connected,
and both brikcs are not providing voltages to the PC
that are in the Under/Over Voltage Window (set in HW)
the system_source may be false in all publications.
2017-07-17 21:02:50 -10:00
David Sidrane
8e8510f398
Added Power Brick related battery_status.msg fields
...
system_source - This battery status is for the brick that is
supplying VDD_5V_IN
priority - Zero based, This battery status is for the brick
that is connected to the Power controller's
N-1 priority input. V1..VN. 0 would normally be
Brick1, 1 for Brick2 etc
Battery now assigns connected from the api in the
updateBatteryStatus, as well as system_source and priority
2017-07-17 21:02:50 -10:00
Julien Lecoeur
71136dcedf
Log_writer_file: Increase stack size
...
Test flights reported the warning `[load_mon] log_writer_file low on stack! (292 bytes left)`
Increase stack size from 1060 to 1072 (=8 + 1060 rounded to next multiple of 8).
2017-07-18 08:24:37 +02:00
Julien Lecoeur
940f2c3cca
Update libuavcan submodule, fix arm-none-eabi-gcc 7.1.0 warnings
2017-07-18 08:24:37 +02:00
Julien Lecoeur
abcb920df4
Fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7.1.0
...
BMP280: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
gnss: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
fmu: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
timer.c: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
px4cannode_led: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
Fix -Werror=implicit-fallthrough on gcc7
2017-07-18 08:24:37 +02:00
David Sidrane
4349f49610
PX4 System:Expunge the nuttx adc structure from the system
...
This PR is preliminary ground work for FMUv5.
PX4 does not use the NuttX adc driver. But used the same format
for the data returned by the nuttx ADC driver.
There was a fixme:in src/platforms/px4_adc.h "this needs to be
a px4_adc_msg_s type" With this PR the need for
src/platforms/px4_adc.h goes away as the driver drv_adc.h now
describes the px4_adc_msg_t.
2017-07-17 22:28:29 +02:00
Carl Olsson
d92377a6e6
ekf2: remove unused function ( #7529 )
...
* ekf2: remove unused function
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
* ekf2: removed unused variable _mag_decl_saved
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2017-07-17 17:24:23 +10:00
Beat Küng
c59d7baad8
replay: add backward compatibility for updated sensor_combined topic
2017-07-16 14:08:37 +02:00
Beat Küng
cef3a29ac9
refactor replay: split timestamp offset into separate method
2017-07-16 14:08:37 +02:00
Nicolae Rosia
950273dbcf
msg: ekf: switch to uin32_t for deltas, should be more than enough
...
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com >
2017-07-16 14:08:37 +02:00
Nicolae Rosia
0a22a9c47c
change gyro & accel dt from float to uint64. This has the benefit of
...
calculating the estimator timeslip correctly.
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com >
2017-07-16 14:08:37 +02:00
Beat Küng
4ccbeb47c0
land_detector_main: fix documentation: rover -> ugv
2017-07-14 11:57:11 +02:00
Beat Küng
0949599f0a
dataman: fix compilation error
...
error: invalid conversion from ‘int’ to ‘dm_item_t’
and
error: no ‘operator++(int)’ declared for postfix ‘++’
2017-07-14 11:57:11 +02:00
Beat Küng
1c7941fc89
land_detector: fix too long lines in module documentation
2017-07-14 11:57:11 +02:00
Dennis Mannhart
eb17d4b5f3
MC landdetector: update description
2017-07-14 11:57:11 +02:00
Beat Küng
cf5df4489f
dataman: extend module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
318c4497bd
dataman: fix typo
2017-07-14 11:57:11 +02:00
Beat Küng
8a83fb7dc2
land_detector: use ModuleBase & add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
8d7481f9ac
load_mon: use ModuleBase & add documentation
2017-07-14 11:57:11 +02:00
Beat Küng
a63699060d
ekf2: use ModuleBase & add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
28e5268497
dataman: rename to .cpp & add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
682dabded1
replay: use module base class & add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
05b0c412c8
sensors: extend module doc a bit
2017-07-14 11:57:11 +02:00
Beat Küng
6463bd4f6f
sensors: use ModuleBase & add documentation
2017-07-14 11:57:11 +02:00
Beat Küng
a43f135ad4
minor documentation updates to some commands
2017-07-14 11:57:11 +02:00
Beat Küng
35aa95c25f
perf_counter.c: mention that the latency buckets are in us
2017-07-14 11:57:11 +02:00
Beat Küng
488bc9d7f3
hardfault_log.h: fix comments
2017-07-14 11:57:11 +02:00
Beat Küng
3f6769d41e
uorb: add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
3b64be44f4
ModuleBase: add wait_until_running() method
2017-07-14 11:57:11 +02:00
Beat Küng
6778be2c6e
mavlink: remove 'p' from px4_getopt()
...
It is not handled and not documented.
2017-07-14 11:57:11 +02:00
Beat Küng
053eb12329
Module documentation: switch to Markdown
2017-07-14 11:57:11 +02:00
Beat Küng
59bde454b5
ModuleBase: instanciate -> instantiate
2017-07-14 11:57:11 +02:00
Beat Küng
f691ae2a4f
mavlink: update usage & module description
2017-07-14 11:57:11 +02:00
Beat Küng
317c8bf557
uorb: update usage
2017-07-14 11:57:11 +02:00
Beat Küng
7361244359
logger: convert to use ModuleBase
2017-07-14 11:57:11 +02:00
Beat Küng
5bdbfa9b5c
send_event: convert to use ModuleBase
2017-07-14 11:57:11 +02:00
Beat Küng
2cf88156a9
cmake: remove -Os from COMPILE_FLAGS in px4_add_module()
...
This is already added to the global list, and we already removed this
flag previously, but some of them sneaked back in.
2017-07-13 16:53:28 +02:00
José Roberto de Souza
2f2e3a7e7c
modules: dataman: ram_flash: No need to write/erase data that do not need to persist
...
Just update in RAM is enough.
2017-07-13 15:21:26 +02:00
José Roberto de Souza
10f54e718e
modules: dataman: Optimize memory usage
...
Use the size of each item type instead of the biggest one.
In AeroFC that runs is constrained mode it was using 7860 bytes
and now it uses 6930 bytes almost 1KB less.
2017-07-13 15:21:26 +02:00
Lorenz Meier
dbc7d805f2
Navigator: Fix pause mode to not continue to next waypoint if already set
2017-07-11 13:23:12 +02:00
José Roberto de Souza
9a05c5f137
mavlink: Send command long when component id is broadcast
...
Check for the broadcast systemd id to block forward of broadcast
commands.
2017-07-11 09:52:22 +02:00
Sander Smeets
48be61160d
Float value correction
2017-07-10 21:15:08 +02:00
Sander Smeets
70178266f0
VTOL pusher assist: return vehicle to level position
2017-07-10 21:15:08 +02:00
bresch
81c46b6f92
VTOL Standard - Disable pusher-for-pitch strategy in manual control
2017-07-10 21:13:28 +02:00
Lorenz Meier
57a2ea0cd1
Navigator: Do not change target position if user is only changing altitude
...
This is important for multicopters for drift-free altitude changes and important for fixed wing to keep the current loiter center.
2017-07-10 18:36:03 +02:00
Lorenz Meier
f2b8291587
Logger: Run at lower priority than core control pipeline
...
This should ensure that controllers run first and log data copying happens after.
;
2017-07-09 21:59:01 +02:00
Lorenz Meier
df173d4d8a
Sensors: Do not update calibration when armed. Run at lower priority than attitude control and estimator
...
This ensures that the massive (several hundred params if temperature compensation is enabled) param load is not done in flight. We also lower the priority to ensure that attitude controllers and estimators which might consume sensor data directly execute immediately, which should reduce their latency.
2017-07-09 21:58:48 +02:00
Lorenz Meier
3bdd0e95dd
EKF2: Show time slip on console
2017-07-09 21:58:41 +02:00
Lorenz Meier
75faf5c7bd
Preflight checks: Increase accel warn limit range
2017-07-09 16:38:56 +02:00
Lorenz Meier
1a12326d7d
Reserve value in ENUM for simple mode
2017-07-09 14:43:24 +02:00