Matthias Grob
706500f19c
Commander: make RC override multicopter only
...
AAs discussed in the devcall this functionality is only useful for
rotary-wing (multicopter) flying since it's a big safety hazard to
accidentally bring a fixed wing out of an auto mode e.g. a mission
and fly away in a straight line or into an obstacle.
6 years ago
Matthias Grob
5c1ab06343
Commander: pure refactor of RC override conditions
6 years ago
Bob Long
84a0d16386
Clarify weird behavior of the LIS3MDL
...
See issue #12514
6 years ago
Beat Küng
b71bae414b
param: fix potential nullptr dereferencing on param import
...
NuttX 7.28 seemed to handle this gracefully, but officially passing NULL
results in undefined behavior, and with 7.29 leads to a hardfault.
This happens on configs with flash-based params, on the first unsuccessful
import attempt.
6 years ago
Matthias Grob
aaad71faab
commander_params: enable automatic disarming after land detection by default
6 years ago
Daniel Agar
9986a88697
mavlink: split BATTERY_STATUS from SYS_STATUS update and handle all bricks ( #12034 )
6 years ago
Timothy Scott
51d4239eee
Commented out rover SITL test
6 years ago
Timothy Scott
ecf396443f
Minor bugfix
6 years ago
Timothy Scott
b9a2c9daf8
Fixed uninitialized variable
6 years ago
Mark Sauder
4a02475dd1
rcS: reduce a few LOC in AUTOCNF logic ( #12467 )
...
* Set/unset rcS vars at beginning and end of rcS script and reduce a few LOC checking SYS_AUTOCONFIG with improved logic.
* Restore current placement of set/unset vars in rcS script to leave only the SYS_AUTOCONFIG logic modification.
* Replace set AUTOCNF no after inadvertent deletion.
6 years ago
Beat Küng
e6aa035209
hotfix for logger: use '%i' instead of '%zu'
...
Work-around for https://github.com/PX4/Firmware/issues/12485 .
This can be reverted after the root-cause is fixed.
6 years ago
bresch
ea0e164145
FlightTask - Rename state_prev to last_setpoint
6 years ago
bresch
37a9b90945
FlightTask - Move checkSetpoints function in each FlightTask to be tailored to the specific needs and avoid checking all the setpoints
6 years ago
bresch
24811cf550
FlightTask smoothVel - Initialize ekf reset counters when task is activated
6 years ago
bresch
1414f50cea
FlightTask - When switching task, pass the last setpoints of the previous task to the new task
...
This is done to allow proper initialization of the new FlightTask and
give it a chance to continue the setpoints without discontinuity. The
function checkSetpoints replaces the setpoints containing NANs with an
estimate of the state. The estimate is usually the current estimate of
the EKF or zero.
The transition FlightTask also provides an estimate of the current
acceleration to properly initialize the next FlightTask after
back-transition. This avoid having to initialize the accelerations to
zero knowing that the actual acceleration is usually far from zero.
6 years ago
bresch
d24c415fd7
PID rate controller - Add controller gain to support Ideal PID form (ISA standard)
6 years ago
Timothy Scott
7c05073044
Fixed overflowing tslc.
6 years ago
Timothy Scott
e25ad348e8
Added message handler for UTM_GLOBAL_POSITION
6 years ago
Anthony Lamping
efad34e55e
jenkins: pub_test needs to start px4 in daemon mode
6 years ago
Beat Küng
f613581b70
Jenkinsfile-compile: add kakutef7 to nuttx build targets
6 years ago
Beat Küng
84bca7e4d0
shellcheck: disable SC2181
...
The combination of 'if mycmd' and a logical expression is not supported in
NuttX.
6 years ago
Beat Küng
d95aae4619
Generic-arm-none-eabi-gcc-cortex-m7: use SP float depending on NuttX config
...
Not all m7 boards support double, as for example the STM32F745.
6 years ago
Beat Küng
6e833ed7a8
boards: add Holybro KakuteF7
6 years ago
Beat Küng
098afad9e0
missing SD card error tune: play only twice instead of repeating endlessly
6 years ago
Beat Küng
f803e54eee
ToneAlarmInterface: add support for non-pwm-based buzzers
6 years ago
Beat Küng
92c2d7ae36
CBRK_BUZZER: allow to disable startup sound
...
The 'if [ $LOG_FILE = /dev/null ]' block can be removed, because
STARTUP_TUNE is already set in that case.
6 years ago
Beat Küng
d8da9db04c
fix atxxxx osd driver: use correct device id
6 years ago
Beat Küng
5fe4c61b42
rc_input: add RC_PORT_CONFIG param to configure RC port
...
The parameter will only be available if the board defines an 'RC' serial
port in SERIAL_PORTS (in default.cmake).
6 years ago
Beat Küng
b7a0e1ef03
boards: simplify RC port configuration by using NuttX ioctl's
...
A board only needs to define:
#define RC_SERIAL_PORT "/dev/ttyS4"
Then it can optionally define one or more of the following:
#define RC_SERIAL_SWAP_RXTX
#define RC_SERIAL_SINGLEWIRE
#define RC_INVERT_INPUT(_invert_true) px4_arch_gpiowrite(GPIO_SBUS_INV, _invert_true)
6 years ago
Beat Küng
9a1ad97c11
fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14
6 years ago
Beat Küng
a3c920db7d
board_defaults: remove unnecessary 'set MIXER_AUX none'
...
On all of these boards '$USE_IO = no' will hold.
6 years ago
Beat Küng
4b0afff33a
fmu-v5 init.c: remove unused include
6 years ago
Beat Küng
fcb7372554
atxxxx: fix comment
6 years ago
Beat Küng
1112828dcf
adc: allow board to not define BOARD_ADC_HIPOWER_5V_OC or BOARD_ADC_PERIPH_5V_OC
6 years ago
Beat Küng
5d8710d539
bmp280: fix device_id initialization
6 years ago
Martina Rivizzigno
1fb80612f3
CollisionPrevention: address https://github.com/PX4/Firmware/pull/12179
...
review comments
6 years ago
Martina Rivizzigno
ac67d5603f
CollisionPrevention: compute the attitude_sensor_frame outside for loop
6 years ago
Martina Rivizzigno
560c9f972a
CollisionPrevention: use the maximum timestamp between offboard and
...
distance sensor such that if one of the two fails the vehicle goes into
failsafe, do not switch off CollisionPrevention if it fails
6 years ago
Martina Rivizzigno
8aad105265
mc_pos_control: increase stack size by 100 bytes
6 years ago
Martina Rivizzigno
02bdc2c46b
CollisionPrevention: use FlightTasks convention for private/public methods,
...
add doxygen on header file
6 years ago
Martina Rivizzigno
8637a9255e
CollisionPrevention: add failsafe for stale distance data
6 years ago
Martina Rivizzigno
0ee770e853
logger: log obstacle_distance_fused instead of obstacle_distance
6 years ago
Martina Rivizzigno
ff6a4d9e71
stream mavlink message OBSTACLE DISTANCE
6 years ago
Martina Rivizzigno
e6e4d846fb
add uORB message obstacle_distance_fused with data from offboard
...
obstacle_distance and distance sensor
6 years ago
Martina Rivizzigno
a9b1946bea
CollisionPrevention: make sure that vehicle tilt compensation is
...
correct for all sensor orientation
6 years ago
Martina Rivizzigno
2439dc09ae
CollisionPrevention: refactor code to make it more readable
6 years ago
Martina Rivizzigno
b6eea508bb
CollisionPrevention: make sure that the timestamp is updated for distance
...
sensors even if they are out of range
6 years ago
Martina Rivizzigno
09bfb00c88
Obstacle_distance: use only one increment in float directly
...
CollisionPrevention: rename a few variables to make the code more readable
6 years ago
Martina Rivizzigno
d216b45202
cm8jl65: use paramter to set sensor orientation
6 years ago
Martina Rivizzigno
6a0ed6af93
cm8jl65: add field of view
6 years ago