Daniel Agar
ca81175b07
rename drivers/px4fmu -> drivers/pwm_out
...
- split out header
5 years ago
Beat Küng
2b360bfd48
rcS: fixes for SYS_USE_IO=0
...
rc.io is called from 2 places in rc.interface:
- if [ $OUTPUT_MODE = io -o $OUTPUT_MODE = uavcan_esc ]:
- 'set OUTPUT_MODE io' is only set within USE_IO=yes, so removing
the check in rc.io has no effect.
- in case of UAVCAN, we also want the IO for RC, now covered in the next
case.
- Further down ('Start IO for RC input if needed.').
This is intended to start IO for RC only, when fmu is already started.
However the previous check '$USE_IO = yes' in rc.io prevented that.
In addition we don't start rc_input in case of $USE_IO = no.
Fixes no RC on Pixhawk 2 with SYS_USE_IO=0.
5 years ago
Beat Küng
349469cf75
refactor pwm_out_sim: use mixer_module and run on work queue
...
Tested with SITL + HITL
5 years ago
Beat Küng
d8ef1b59b9
ROMFS: add dshot startup support
5 years ago
BazookaJoe1900
02e861b16e
enable silent compare of parameter ( #12850 )
...
Remove false errors after comparing parameters that doesn't exists.
as described in #12832
5 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
romain
e1d9438f79
sih: remove SYS_SIH parameter and extend SYS_HITL
6 years ago
Julian Oes
3ebf030a02
ROMFS: change shebang from #!zsh to #!/bin/sh
...
This was required for shellsheck.
6 years ago
David Sidrane
729d1c32d3
Rename nxphlite-v3 to NXP fmuk66-v3 ( #10927 )
6 years ago
Daniel Agar
abb3817d31
boards new split VENDOR_MODEL naming convention
6 years ago
Beat Küng
37338e442f
NuttX shell scripts: replace operator == with =
...
- NuttX supports both versions
- POSIX shell only supports '='
7 years ago
mcsauder
c390d02f1c
Tidy up an OUTPUT_DEV set/unset in rc.interace and rcS.
7 years ago
mcsauder
0d0fcb140c
Updated rc.vtol_defaults to correct PWM_AUX behavior for VTOL airframes. Added PWM_AUX_RATE to rc.vtol_default and set parameters directly instead of environment variables.
7 years ago
bresch
740e409016
PWM - Add PWM_MIN and PWM_MAX parameters for MAIN and AUX ( #10452 )
7 years ago
David Sidrane
f5295d7700
rc.interface:Use tune_control
7 years ago
bresch
04c765f497
Failsafe PWM - Add PWM_MAIN/AUX_FAILx parameters to set "failsafe" values.
7 years ago
Beat Küng
5ebd0116de
rc.interface: allow setting a custom MIXER_FILE
7 years ago
Beat Küng
a00f7ebf47
sitl scripts: refactor to use existing rc.vehicle_setup from NuttX
7 years ago
Beat Küng
fcd3a04b07
rc.interface: remove unnecessary fmu start for RC input
...
RC input is now handled via rc_input module
7 years ago
Beat Küng
9ba2e91fa1
ROMFS: avoid empty 'then else' clause, it's an error in bash
...
Use 'if ! <cmd>' instead.
7 years ago
mcsauder
1fe526b8eb
Updated and added full stops to comments and did some comment/whitespace formatting in the startup scripts.
7 years ago
Daniel Agar
658237f36a
px4fmu move RC input to new rc_input driver
7 years ago
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.
7 years ago
mcsauder
8da1e67050
Move OUTPUT_MODE logic from rcS to rc.interface.
7 years ago
mcsauder
ee3e34cd06
Move UART mapping comments back to top level rcS script. Deprecate PWM_ACHDIS and replace with PWM_AUX_OUT and set PWM_AUX_DIS value directly in vtol airframe config files. Replace tone_alarm instances with tune_control and default tune enums, and relocate an OUTPUT_MODE == fmu logic block in rcS.
7 years ago
mcsauder
bccda56ed3
Re-order hardware specific logic in rc.interface.
7 years ago
mcsauder
6f63553824
Move MNT_MODE_IN / MOUNT_MODE_OUT logic block to rc.interface and move dataman, send_event, and load_mon startup just below uorb and tone_alarm startup in the rcS script.
7 years ago
mcsauder
1d7dbdddca
Add pwm failsafe -c argument to rc.interface, reference issue #9775 .
7 years ago
mcsauder
71ceb0cfd6
Copy/paste logic in rc.interface to group MIXER and MIXER_AUX logic, alphabetize hardware list in rc.interface, alphabetize set/unset lists in rcS, and add -p argument to pwm failsafe calls per issue #9775 .
7 years ago
Daniel Agar
00c34d8a2b
AV-X board support
7 years ago
Beat Küng
77cea8844f
ROMFS: fix SYS_USE_IO==0
...
When SYS_USE_IO was disabled, px4io would not start and thus there was no
RC. SYS_USE_IO=0 is interesting on Quads to avoid the IO and reduce output
latency.
Tested on Pixhawk 1 and Pixhawk 4
7 years ago
nathan
f754d092f8
Initial omnibusf4sd target support
...
Flight tested: ekf2 w/ mag and compass by @nathantsoi : https://logs.px4.io/plot_app?log=79b81031-cf1e-41f0-890b-d6cd7d559766
NOTE: external I2C devices need a pullup. I have tested with a 3.3v 2.2k pullup.
Working:
- mpu6000, bench tested and verified via nsh
- fmu
- all 6 ch output bench tested w/ pwm and oneshot via nsh
- ppm input bench tested
- dsm input bench tested
- bmp280, bench tested and verified via nsh
- hmc5883, bench tested and verified via nsh, but requires an external i2c pullup
- gps on uart6
- startuplog, nsh, mavlink on uart4, but params are not sent for some reason. RSSI pin is TX, MOTOR 5 is RX (normal mode, 57600 baud)
- rgbled over i2c, bench tested and workingp
- sbus via the shared sbus/ppm pin (which includes an inverter to the mcu SBUS in pin), remove the solder bridge or jumper to the ppm pin before use
Not yet implemented:
- ADC
- OSD: passthrough video is untested, use at your own risk until a basic driver is implemented.
7 years ago
Beat Küng
06df2fcb65
rc.interface: disable AUX mixer on NXPHLITE_V3
7 years ago
Beat Küng
37a082255a
rc.interface: enable aux mixer for FMU-v5
7 years ago
Beat Küng
a56d2ab981
rc.interface: merge 'ver hwcmp' for different boards
7 years ago
Daniel Agar
4e6ca271e7
more px4fmu-v1 cleanup ( #7981 )
8 years ago
David Sidrane
62a2351a72
ROMFS:Removed FMUv1 from rcS etal
8 years ago
sanderux
220bd82b93
Per channel PWM disarmed values
8 years ago
Beat Küng
0668d61665
SYS_FMU_TASK: add param to start fmu as task (default=work queue)
8 years ago
Beat Küng
9e4d1235ac
pwm command: fix -e param (it was just ignored)
...
to keep the behavior the same, remove the -e flags from all pwm commands
that use it in the scripts.
8 years ago
Beat Küng
3f3ac414e3
fix rc.interface: do not append .mix when setting MIXER_AUX
...
Because further down the mixer file is set as:
set MIXER_AUX_FILE /etc/mixers/${MIXER_AUX}.aux.mix
8 years ago
Beat Küng
ce2502a74c
rc.interface: fix indentation
8 years ago
Lorenz Meier
494d2c9ecf
ROMFS: Enable robust PWM command mode during startup
8 years ago
Lorenz Meier
cbe04d5f9b
FMUv5: Not supporting AUX yet
8 years ago
Lorenz Meier
9e2eac41ff
ROMFS startup: Fix variable expansion for new NuttX scheme
8 years ago
Lorenz Meier
a777cad102
ROMFS: output cosmetics on startup script
8 years ago
David Sidrane
dd2fe5d42f
Document and fix '${varname}' usage
8 years ago
Lorenz Meier
f60bde9edd
Protect variables correctly during expansion
8 years ago
David Sidrane
4494182bfc
Update rc.interface
8 years ago
Lucas De Marchi
f51595ab16
Fix setting output mode in the wrong place
...
Make it common with other boards
8 years ago