Andrew C. Smith
12a34c9fcf
Minor changes made to FMU module and the DSM code to properly catch Spekrum DSM data.
2017-01-21 12:13:40 +01:00
David Sidrane
33486d5047
FMU gpio operations now conditional on BOARD_FMU_GPIO_TAB in board_config
...
return -EINVAL on any GPIO ioctl operation when there are
no GPIO pins defined in the board config. I.E.
BOARD_FMU_GPIO_TAB is not defined.
BOARD_FMU_GPIO_TAB is now optional and if it is defined
then the logical BOARD_HAS_FMU_GPIO is defined and
will enable the px4fmu driver to perform the physical GPIO
operations.
2017-01-21 11:45:36 +01:00
David Sidrane
23eb07ff3e
Only perform GIOP operations on defined IO ( #6381 )
...
Check if the table entry fo the IO requested is defined
so that 0 is never passed to px4_arch_gpioXXXX functions.
2017-01-18 09:53:16 -10:00
Lorenz Meier
9275436043
FMU: Add missing headers
2016-12-27 21:00:51 +01:00
Anton Matosov
3a17c07b1e
Implement RC and DL failsafe action handling for multirotors
...
Move RC and DL failsafe actions handling from navigator to commander (credits to @AndreasAntener)
Separate manual kill switch handling via manual_lockdown to prevent override and release of software lockdown by RC switch
Other changes:
Add failsafe tune
Fix LED blinking for Pixracer
Return back support for rc inputs in simulator but now it is configurable via cmake
2016-12-27 00:38:13 +01:00
Lorenz Meier
97ce9edcac
FMU: Tighter compile checks and correct use of unsubscribe
2016-12-19 20:39:03 +01:00
Mark Whitehorn
e5f4f50a52
add param_find for THR_MDL_FAC
2016-12-16 18:12:17 +01:00
Mark Whitehorn
381a565ce3
add THR_MDL_FAC parameter handling to FMU
2016-12-15 23:39:53 +01:00
Mark Whitehorn
08d36fe2af
move initial pwm trim update to pwm_ioctl load case
2016-12-15 00:13:59 +01:00
Lorenz Meier
ac3aa3e85c
FMU driver: Avoid trashing existing publicacations for RC, motor outputs, etc.
2016-12-13 16:14:15 +01:00
Paul Riseborough
da6d4398e9
px4fmu: publish mixer saturation data to uORB
2016-12-13 16:14:15 +01:00
Mark Whitehorn
dbc149c224
change trim units from absolute usec to normalized values
2016-12-10 12:56:39 +01:00
Mark Whitehorn
e80ef34b0d
retest FMU control latency
2016-12-10 12:56:39 +01:00
Mark Whitehorn
009a413438
fix argument order in pwm_limit_calc call, clean up
...
note that FMU does not update AUX pwm outputs if no RC signal
2016-12-10 12:56:39 +01:00
Mark Whitehorn
5601ca19de
astyle
2016-12-10 12:56:39 +01:00
Mark Whitehorn
0ccfcab010
fmu trims still not working
2016-12-10 12:56:39 +01:00
Mark Whitehorn
82bfaf3967
debugging fmu mode_pwm4 not recognized
2016-12-10 12:56:39 +01:00
Mark Whitehorn
ea83b67bd8
add trim parameter handling
2016-12-10 12:56:39 +01:00
Bartosz Wawrzacz
619efa7b45
[PX4IO/PWM driver] Added trim values to the PWM output drivers
2016-12-10 12:56:39 +01:00
Lucas De Marchi
66628a4cf1
aerofc: forbid gpio changes
...
We export an "empty" table, but there's no protection when doing
ioctl().
2016-11-28 09:21:12 +01:00
James Goppert
893714dc6a
aerofc: Fixes for init
2016-11-28 09:21:12 +01:00
Benoit3
83e9e1c382
The goal of this patch is to allow compatibility with GR12/GR16/GR24 graupner receiver by :
...
- allowing decoding of SUMD frame with failsafe bit set
- updating stack failsafe state with the sumd failsafe info
Refer to #5817 issue
2016-11-12 14:28:57 +01:00
Mark Whitehorn
4cc97aa705
fix another bug in fmu mode
2016-10-24 18:22:18 +02:00
Lorenz Meier
3bed398a1e
FMU: scan longer
2016-10-23 19:58:52 +02:00
Siddharth Bharat Purohit
b75ff417ea
fmu: fix typo introduced in 78b0d1a which adds PWM1 mode
2016-10-22 08:37:13 +02:00
Julian Oes
78b0d1a01f
tap: add landing gear capability
...
This configures the PWM output for the landing gear.
2016-10-20 23:17:05 +02:00
Lorenz Meier
7b2898eaee
Fix merge collision
2016-10-19 18:29:34 +02:00
Lorenz Meier
3f5f74399e
Increased SBUS buffer size for more reliable SBUS and DSM parsing
2016-10-19 15:32:30 +02:00
Julian Oes
af5d2c488c
st24: fix RC lost detection based on error count
...
The packet_count was actually an error_count, therefore we should
process RC input only when the error_count since the last packet is 0.
Also, this commit fixes the RSSI scaling for st24.
2016-10-19 09:22:57 +02:00
Daniel Agar
2771b92dc0
px4fmu trivial style fix
2016-10-09 23:47:09 -04:00
Lorenz Meier
ed62957474
Increase RC buffer size
2016-10-08 17:18:06 +02:00
Lorenz Meier
4cfd84b56a
FMU driver: Ensure correct binding pulses for Spektrum, time out any receiver which has more than one second no signal.
2016-10-08 16:56:04 +02:00
Mark Whitehorn
a56d50599d
subscribe to vehicle_command topic and implement RX_PAIR command
...
add spektrum satellite bind command to fmu
open fmu file descriptor to issue ioctl
2016-10-08 16:19:45 +02:00
Roman
c2a511d81d
multirotor mixer slew rate limiting: naming and fixes
...
- avoid dividing by zero when calculating max delta output
- better comments when calculating max delta output
- better naming of functions and variables
Signed-off-by: Roman <bapstroman@gmail.com >
2016-09-30 13:55:53 +02:00
Roman
8b889caa33
slew rate limiting: implemented for fmu
...
Signed-off-by: Roman <bapstroman@gmail.com >
2016-09-30 13:55:53 +02:00
Beat Küng
d297d31c23
input_rc.msg: remove timestamp_publication, use timestamp instead
2016-09-19 13:02:31 +02:00
Dennis Shtatnov
e91821d2a2
Merge Crazyflie motor driver with FMU
...
Comment corrections
2016-09-04 19:12:08 +02:00
Lorenz Meier
8b66a76432
Fix FMU init
2016-08-15 10:49:43 +02:00
David Sidrane
6f973f1d6c
Better Portability with clear naming
2016-08-12 13:55:16 +02:00
Lorenz Meier
d21023c966
FMU: Power on radio if prsent
2016-08-12 13:55:16 +02:00
Lorenz Meier
c3022bf713
FMU: Accomodate serial only RC input
2016-08-12 13:55:16 +02:00
Julian Oes
ccea9c9e6f
fmu: flash safety button correctly even disabled ( #5189 )
...
If the circuit breaker to disable IO safety is engaged, the safety
button should still blink in the appropriate pattern: double flash for
safety off, solid on for armed.
2016-08-01 02:18:36 -07:00
Julian Oes
a71cfe92f1
fmu: whitespace fix
2016-07-28 08:49:22 +02:00
Julian Oes
664092b7d4
fmu: support ESC calibration
...
The FMU was lacking support to do the ESC calibration. This is needed
for Pixracer.
2016-07-28 08:49:22 +02:00
Julian Oes
3289e0cee6
fmu: don't disarm with disarmed set
...
If disarmed PWM values have been set, we can't accept a disarm command.
If we did, the PWM output stop alltogether after the high pulse of the
ESC calibration.
2016-07-28 08:49:22 +02:00
Julian Oes
d63870ad71
fmu: don' de-initialize
...
Once the PWM outputs are initialized, there is no point in
de-initializing them again.
2016-07-28 08:49:22 +02:00
Mark Whitehorn
981353f439
fix bug in RC scan for SUMD input
2016-07-16 16:35:03 +01:00
Lorenz Meier
acc8acd059
FMU driver: Fix typo
2016-06-26 22:27:45 +02:00
Mark Whitehorn
40a7bd009f
implement Spektrum bind function for Pixracer R14 ( #4887 )
2016-06-23 23:27:51 +02:00
Lorenz Meier
7398164fcc
Updated PX4 use / API of low level GPIO and other hardware-centric system facilities
2016-05-28 14:56:17 +02:00