Matthias Grob
21c82a4814
FlightTasks: hotfix guard against accessing no task
...
Safety guard for null pointer exception when accessing the current task
when none is running. This could only happen if the running task
was changed during the update because of command handling failing.
Note: This is fixed on master in a different, better way.
2021-01-26 20:34:31 +01:00
Daniel Agar
a6274bc5ed
rc/dsm: remove system field check, add new validity checks
...
- unfortunately we can't depend on the system field due to potential
external binding and non-genuine Spektrum equipment
- reject any DSM frame with duplicate channels
- add 16 channel mask
- tighten valid PWM range 990-2010us (±100% travel is 1102-1898µs)
- update RCTest rejected frame count
2021-01-01 22:58:47 +01:00
Nicolas Martin
4b0038bd43
positionControl: add check on sign before sqrtf
2020-11-19 10:01:56 -05:00
Beat Küng
5b2f41de12
ll40ls: fix rotation -> orientation
2020-11-19 11:15:30 +01:00
Matthias Grob
02c6f207ce
PX4 compile flags: disable Wlogical-op for GCC 10
...
There is a proper fix for this already on master
but it's a rabbit hole to cherry-pick it:
-> update matrix
-> dependency on changing ecl
-> dependency on a lot of autopilot changes
2020-11-18 11:47:06 -05:00
Daniel Agar
97ab8277ed
ROMFS: 50000_generic_ground_vehicle remove fmu-v2 exclude
...
- this allows px4_fmu-v2_rover to function until we have a better mechanism for including or excluding ROMFS dependencies #15711
2020-11-12 12:57:27 -05:00
AlexanderAurora
8068ed89f6
landing_slope: added wrap_pi to getLandingSlope and getFlareCurve
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/16132
2020-11-12 12:57:27 -05:00
Alex Mikhalev
a0a4b10885
Fix non-determinstic boot hang with crashdumps
...
On boot, if board_hardfault_init finds a hardfault stored in BBSRAM, it
checks if there is any data available on stdin to see if there is
somebody there to respond to a prompt. But on boards such as cubeorange
where there is not a serial console by default, the ioctl fails and
bytesWaiting is uninitialized. So it will non-deterministally hang the
boot process with no outside feedback if that value is not zero.
Signed-off-by: Alex Mikhalev <alexmikhalevalex@gmail.com>
2020-11-12 12:57:27 -05:00
Julian Kent
377dc909ed
Check that home position is valid in RTL ( #15964 )
2020-11-12 12:57:27 -05:00
Daniel Agar
8a516e5488
commander: preflight check don't read mag device_id
2020-11-12 12:57:27 -05:00
CUAVcaijie
d8778ac8df
Add a USB ardupilot * type
2020-11-12 12:57:27 -05:00
Jacob Dahl
92a9278a6a
fixed dps310 calibration coeffecient for c11
2020-11-12 12:57:27 -05:00
Julian Oes
508c09d610
commander: fix switch to loiter
...
Sometimes, the mission_result timestamp is the same as the
internal_state timestamp which would meant that we would not switch to
LOITER even though the takeoff is clearly done at that point.
2020-11-12 12:57:27 -05:00
Daniel Agar
efabca854f
ekf2: update ecl with bug fixes
...
- ecl/EKF: Improve robustness of yaw reset to bad inertial data (https://github.com/PX4/PX4-ECL/pull/914 )
- ecl/EKF: Use strength in Gauss (bug fix) (https://github.com/PX4/PX4-ECL/pull/933 )
2020-11-12 11:27:56 -05:00
Daniel Agar
bdcccb1723
sensors: force parameter update if mag device id still isn't set
2020-10-22 09:36:00 -04:00
Beat Küng
8592fe2358
tests: don't run battery_simulator
...
The battery migration interferes with the tests.
2020-10-20 11:43:41 -04:00
Beat Küng
5faf8bd52c
battery: disable secondary module by default
...
Avoid a GCS showing 2 battery indicators.
Alternatively we could also check the 'connected' flag, but this is more
explicit.
2020-10-20 11:43:41 -04:00
Beat Küng
977479c370
battery: fix isFloatEqual(), use matrix::isEqualF
...
Fixes param migration, e.g. if BAT_N_CELLS is set, migrates to
BAT1_N_CELLS.
2020-10-20 11:43:41 -04:00
Beat Küng
6da456e7f5
fix EscBattery: remove _battery.publish();
...
updateBatteryStatus() already publishes
2020-10-20 11:43:41 -04:00
Daniel Agar
9fcbf18d82
battery: fix duplicate uORB publish and minor cleanup
...
- run battery_status module on adc_report publications rather than a fixed schedule
2020-10-05 14:49:54 -04:00
Daniel Agar
3188408d81
boards: mRo Control Zero F7 fix RC input and cleanup sensors init
2020-10-05 14:49:54 -04:00
Daniel Agar
d3148f2656
commander: PreFlightCheck param_find all parameters immediately
...
- this ensures the relevant parameters are marked active immediately
before parameter sync
- fixes https://github.com/PX4/Firmware/issues/15872
2020-10-03 17:52:46 -04:00
Beat Küng
665effca3b
kakutef7: fix output ordering
...
Regression from d2254c2e44
, I overlooked that they were defined in
reverse order.
2020-10-03 17:52:46 -04:00
Alex Mikhalev
db37c632b4
uavcan: Increase uavcan main stack size
...
I observed stack overflows when executing `uavcan params list`, so the
stack size probably needs to be increased.
Signed-off-by: Alex Mikhalev <alexmikhalevalex@gmail.com>
2020-10-03 17:52:46 -04:00
Nicolas Martin
50d768c79d
mc_pos_control: fix acc Z sign
2020-09-29 09:33:43 -04:00
Daniel Agar
740c471021
boards: CUAV Nora/X7pro fix BOARD_DSHOT_MOTOR_ASSIGNMENT
...
- BOARD_DSHOT_MOTOR_ASSIGNMENT isn't needed if there's no remapping
2020-09-24 12:04:28 -04:00
Daniel Agar
8398e80fa5
boards: cubepilot orange/yellow fix BOARD_DSHOT_MOTOR_ASSIGNMENT
2020-09-24 12:04:28 -04:00
Daniel Agar
4f8bcec1d7
boards: cubeorange and cubeyellow disable serial console (used for ADSB on new carrier boards)
...
- add console builds (cubepilot_cubeorange_console) for hardware test rack and developers
2020-09-21 13:44:54 -04:00
Mirko Denecke
f01fbdf8b5
CubeOrange and CubeYellow IMU heating fix
2020-09-16 10:28:33 -04:00
Nicolas MARTIN
db529aa013
temperature compensation: change sensor id not found message
2020-09-16 10:28:33 -04:00
Nicolas MARTIN
cd3db45d27
thermal calibrtation: do not calibrate sensor without temperature sensor
2020-09-16 10:28:33 -04:00
David Sidrane
71db0903a9
NuttX Critical STM32H7 Interrupt Storm on I2C
2020-09-07 15:36:11 -04:00
Dusan Zivkovic
bfc59f6d88
FlightTaskAuto: update waypoints on every iteration when in offtrack state
2020-09-07 15:25:06 -04:00
Daniel Agar
2bc4a5a44b
commander: HITL skip auto disarm if lockdown
...
- auto disarm when locked down was added in #14766 to prevent user confusion in regular usage, but also breaks HITL where lockdown is enabled for safety
- fixes #15686
2020-09-06 19:30:02 -04:00
Jonathan Hahn
33cabba185
fw_pos_control_l1: fix swapped TECS time parameters ( #15685 )
...
Co-authored-by: Jonathan Hahn <hahn@wingcopter.com>
2020-09-04 15:14:00 -04:00
Matthias Grob
4cd7d44b4a
battery: switch to PublicationMulti for battery_status
2020-09-01 22:08:28 -04:00
Matthias Grob
7da7ebad3d
analog_battery: fix missing stdio include
...
This was not a problem before because battery.h
included the adc driver and implicitly snprintf
was defined through there.
2020-09-01 22:08:28 -04:00
Matthias Grob
a809e4cfc8
commander_params: remove some double spaces
2020-09-01 22:08:28 -04:00
Matthias Grob
4db9d7131e
syslink_main: remove empty lines and struct keyword
2020-09-01 22:08:28 -04:00
Matthias Grob
f92c5aa688
ina226/voxlpm: make sure parameter sub is reset
...
The subscription to parameter updates has to get
copied otherwise the change detection will not get
reset for next time.
2020-09-01 22:08:28 -04:00
Matthias Grob
165c8b23bf
battery: fix parameter migration and clarify
2020-09-01 22:08:28 -04:00
Matthias Grob
226f5f875d
BatterySimulator: remove SimulatorBattery
...
It loads the battery parameters but then overwrites them
with hardcoded values and it breaks the ModuleParams
parent/child hierarchy. Both is undesired.
2020-09-01 22:08:28 -04:00
Oleg
af9c6e6fce
batterry_status: fix checking default a_per_v
2020-08-28 16:28:54 -04:00
bresch
c3a410e19c
ll40ls: set default rotation to downwards facing
...
All the other distance sensors have their default rotation to downwards
facing as well
2020-08-28 16:28:54 -04:00
Daniel Agar
427b17d8a1
bosch/bmi055: fix accel temperature reading
...
- single register output is in 2's complement
2020-08-28 16:28:29 -04:00
CUAVcaijie
1672fc646f
boards: add UAVCAN timer override mechanism and CUAV X7 add CAN ( #15348 )
...
* X7Pro adds CAN driver
* UAVCAN timer selection moved to default.cmake
* Modify some details about @CUAVcaijie UAVCAN timer selection moved to default.cmake
* Put some timer parameters to micro_hal.h from board_config.h. Fix all h7 boards
Co-authored-by: honglang <honglang@cuav.net>
2020-08-28 16:28:29 -04:00
modaltb
c915f0dca9
modalai_fc-v1 - power_monitor/voxlpm: add support for voxlpm v3 (INA231 sensors)
2020-08-28 16:28:01 -04:00
Daniel Agar
0ff4fad95c
rm3100: remove read error message
2020-08-17 09:36:05 -04:00
Daniel Agar
38db7c8b00
lis3mdl: remove read error message
2020-08-17 09:36:05 -04:00
Daniel Agar
84895724cd
lis2mdl: remove read error message
2020-08-17 09:36:05 -04:00