mcsauder
ac8f44268b
Added remaining two channels of PWM_AUX_DIS disarm parameter set commands, remove trailing whitespace from pwm_params_aux.c and pwm_params_main.c, gps/params.c and added block comment headers to separate sections instead of whitespace.
2018-07-30 09:36:44 +02:00
Julian Oes
80cac6561f
sensors: no temperature compensation in HITL
...
Temperature compensation is not supported in HITL. Therefore, don't try
and fail. This basically removes the confusing error message that we get
in HITL.
2018-07-24 18:56:36 +02:00
Beat Küng
875ee794ef
sensors: do not advertise topics before we have valid data
...
Modules generally do not check for a valid timestamp, thus we need to avoid
publishing invalid data.
This is for example problematic in the attitude_estimator_q, if the
system has no mag: it will copy the (invalid) data and then fails to
initialize, as there is no more mag data coming in.
2018-07-23 22:32:17 +02:00
Beat Küng
c166ea9ed5
sensors: fix potential busy loop when a gyro driver is stopped
...
When a gyro driver is stopped, the topic is unadvertised and
orb_group_count() returns a smaller count. This can have the effect, that
we poll on a certain gyro fd, but since _gyro.subscription_count is reduced
we never do the orb_copy for that fd.
This cannot happen when armed. And only someone playing with the shell
can trigger it (sensor failures do not have that effect).
2018-07-18 08:10:13 +02:00
Beat Küng
891a09f488
sensors: make sure to do an orb_copy, even if a gyro is disabled
...
This makes sure that poll() never returns immediately.
accel & mag are only updated to keep the code in sync.
2018-07-18 08:10:13 +02:00
Daniel Agar
8985403c00
FMU relocate MOT_SLEW_MAX and THR_MDL_FAC parameters centrally
2018-07-17 19:59:41 -04:00
Daniel Agar
c26ca49f36
PWM parameters centralize under sensors and add aux 7&8
2018-07-17 19:59:41 -04:00
Daniel Agar
3b580514ae
delete unused airspeed.true_airspeed_unfiltered_m_s
2018-07-16 01:09:19 -04:00
Daniel Agar
9a4de09325
sensors remove airspeed negative check
2018-07-16 01:09:19 -04:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
3ba97297d5
tests simple timing microbenchmark
2018-07-01 09:25:22 +00:00
Beat Küng
02fc68a53e
commander arming: disable stick (dis-)arming when arming switch/button is used
...
A reason for using switch arming in the first place is that you cannot
accidentally disarm in-air with the sticks during acrobatic flights.
It also adds a low-throttle arming requirement for switch arming.
2018-06-27 10:41:21 +02:00
Beat Küng
f241e49ebf
voted_sensors_update: initialize _last_magnetometer & _last_airdata
2018-06-13 16:19:34 +02:00
Beat Küng
226d7c79da
sensors: initialize adc only if BOARD_NUMBER_BRICKS > 0
...
Fixes the SITL startup error:
ERROR [sensors] no ADC found: /dev/adc0 (9)
Introduced in 8404889098
2018-06-13 15:54:45 +02:00
Daniel Agar
20aabd3566
move systemlib/airspeed to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
d73d20bcce
systemlib delete unused systemlib.h
2018-06-12 09:06:30 +02:00
Mohammed Kabir
7f1686171b
sensors : add parameter for maximum flow rate
2018-06-09 13:38:04 +02:00
Mohammed Kabir
b3c5e53333
Unify optical flow height limiting
2018-06-09 13:38:04 +02:00
Philipp Oettershagen
e12b470cac
Subsystem_info status flags & checks: Small fixes according to @bkueng's review
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
0b71c52225
Subsystem_info status flags & checks: Suppress sensor failover warnings in Hardware in the loop (HITL)
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
302cb0a285
Subsystem_info status flags & checks: Moved the set_health_flags helper functions out of the /lib/ folder and into the module/commander folder because they are actually only needed there
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
bd2af289f5
Subsystem_info status flags & checks: Code style fixes and cleanup to avoid strcmp() as suggested by @LorenzMeier
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
e4d863b95f
Subsystem_info status flags & checks: Separate the functionality to a) set the health flags inside commander and b) to publish them from external modules
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
075009be2f
Subsystem_info status flags & checks: 1) Set health flags in commander directly instead of publishing via uORB 2) move publish_subsystem_info into lib/ folder"
2018-06-06 18:54:24 +02:00
Philipp Oettershagen
6f1f414b49
Subsystem_info status flags & checks : Initial commit, updating the health flags in a centralized way mostly in commander and the votedSensorsUpdate function.
2018-06-06 18:54:24 +02:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
Daniel Agar
fc74e06341
sensors add conversion library dependency
2018-05-21 01:32:16 -04:00
nathan
59c1d3fc92
remove unnecessary param_find for mag and baro
...
in parameters.cpp
per @dagar: As soon as commander starts it runs the preflight checks which does the param_find.
2018-05-20 11:54:17 +02:00
Beat Küng
f2516bbf5f
system_params: add SYS_HAS_MAG and SYS_HAS_BARO params
...
This allows to use PX4 on systems that do not have a mag or a baro,
such as the Omnibus F4 SD.
2018-05-20 11:54:17 +02:00
Daniel Agar
4e32cb17df
clang-tidy modernize-use-equals-default
2018-05-18 22:48:55 +02:00
alessandro
3ed093ba59
Add baro temperature to sensor voter observation ( #9411 )
...
When determining the confidence of a barometer sensor, we should
consider the temperature as well, alongside the pressure.
Low-noise baros can show the same pressure reading for a second
or two when not moving and in an indoor location.
2018-05-04 12:40:10 -04:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Daniel Agar
8404889098
delete unused ADCSIM
...
- set BOARD_NUMBER_BRICKS to 0 for boards without analog power bricks
2018-04-29 21:48:54 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Beat Küng
a8645b51d5
voted_sensors_update: reduce flash usage by allowing compiler to dedup equal strings
...
reduces roughly 130 bytes. Almost enough to pass CI.
2018-04-11 07:47:06 +02:00
Daniel Agar
fda2edb7c4
sensors only publish airspeed if finite
2018-03-26 09:42:50 -04:00
Daniel Agar
a48e3bf68d
sensors fix uninitialized diffferential_pressure message
...
- fixes coverity CID 260383
2018-03-24 13:39:31 -04:00
stmoon
ed261c76da
add timestamp for sensor_preflight
2018-03-24 07:57:04 +01:00
Beat Küng
7937f9e82c
refactor Battery: replace BlockParam* with Param* classes
2018-03-22 08:19:08 +01:00
Daniel Agar
3a0a896a9c
sensors move to matrix lib
2018-03-22 08:17:32 +01:00
Beat Küng
2bcc5cf3e5
imu filter defaults: set IMU_GYRO_CUTOFF to 80 and MC_DTERM_CUTOFF to 30
...
tested on at least 5 different vehicles, including AeroFC. The values
should be conservative, good setups (with low vibrations) can increase
these values even further.
increasing IMU_GYRO_CUTOFF allows for better tuning gains (increased P).
2018-03-13 20:54:49 +01:00
Andreas Antener
198708ba2e
rotation: updated board rotation meta data
2018-02-28 10:08:58 +01:00
Beat Küng
54d1395206
IMU_GYRO_CUTOFF, IMU_ACCEL_CUTOFF: reduce minimum to 0, allowing to disable filtering
2018-02-19 17:02:31 +01:00
Beat Küng
8d9e9d3a7b
RC input: allow disabling the RC filtering via RC_FLT_CUTOFF
...
The default value of 10 Hz adds noticeable lag.
2018-02-19 09:29:46 -05:00
Daniel Agar
232b38a669
RCX_REV params add enum metadata
2018-02-10 20:37:47 -05:00
Daniel Agar
f621c334a8
sensors don't find parameters that are unused by QGC
2018-02-10 20:37:47 -05:00
Daniel Agar
5b80adeadb
move SENS_EN_MB12XX to mb12xx driver
2018-02-10 20:37:47 -05:00
Daniel Agar
dbb3621bdb
move SENS_EN_TFMINI to tfmini driver
2018-02-10 20:37:47 -05:00