24 Commits

Author SHA1 Message Date
Daniel Agar
f7452bff4d ROMFS: startup remove bootlog.txt 2020-11-16 09:19:35 -05:00
Daniel Agar
08bf71b73d
drivers/tone_alarm and tune_control small improvements/cleanup
- drivers/tone_alarm: move to ModuleBase and purge CDev (/dev/tone_alarm0)
 - drivers/tone_alarm: only run on tune_control publication (or scheduled note) rather than continuously
 - drivers/tone_alarm: use HRT to schedule tone stop (prevents potential disruption)
 - msg/tune_control: add tune_id numbering
 - systemcmds/tune_control: add "error" special case tune_id
 - move all tune_control publication to new uORB::PublicationQueued<>
 - start tone_alarm immediately after board defaults are loaded to fix potential startup issues
 - for SITL (or other boards with no TONE output) print common messages (startup, error, etc)
2020-10-05 21:39:26 -04:00
Daniel Agar
9b12647ac4 px4io: delete broken test and unnecessary limit
- delete broken px4io test and if_test
 - delete px4io limit (a fixed 400 Hz limit was always set at boot)
2020-07-30 10:29:07 -04:00
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.
2020-03-26 10:33:27 -04:00
Nik Langrind
ba5efa5642 px4io: When running HITL, don't publish actuator_outputs. Fixes #13471.
When running in HITL mode, pwm_out_sim publishes actuator_outputs.

px4io unconditionally publishes the uOrb actuator_outputs. When HITL
is configured, the px4io copy of the uOrb has all zeros.

The result is that there are two publications, one valid, and one
all-zeros. This causes the HIL_ACTUATOR_CONTROLS mavlink message
to be incorrect (all-zeros) and the SERVO_OUTPUTS_RAW mavlink
message to be inconsistent, as it takes the data from one or the
other uOrb randomly each cycle.

The fix is to let px4io know that HITL is in effect when it is
started, and modify px4io to suppress publication in this case.

This is a bigger more complicated fix than I would like, but I
think it is conceptually correct.

Signed-off-by: Nik Langrind <langrind@gmail.com>
2019-11-17 11:19:35 +01:00
Julian Oes
3ebf030a02 ROMFS: change shebang from #!zsh to #!/bin/sh
This was required for shellsheck.
2018-12-19 07:36:43 +00:00
Beat Küng
37338e442f NuttX shell scripts: replace operator == with =
- NuttX supports both versions
- POSIX shell only supports '='
2018-09-27 23:39:20 +02:00
David Sidrane
7d3d497831 rc.io:Use tune_control 2018-08-30 19:11:17 +02:00
David Sidrane
dd69427cbf rc.io:Add USE_IO == yes && IO_PRESENT == yes test
On a FMU without a px4io (FMUv4, NXPhlite etc), this code should
  not be run.
2018-08-14 09:38:15 -04:00
Beat Küng
a6f93c30d9 Revert "Move px4io firmware update logic block to rc.io."
This reverts commit 0928112a80d816eb82bbb3d05db01d19fc14d472.
2018-08-03 10:46:12 -04:00
mcsauder
0928112a80 Move px4io firmware update logic block to rc.io. 2018-08-02 12:19:23 +02:00
mcsauder
4f937a2ff6 Migrate px4io logic into rc.io. 2018-07-19 13:56:03 +02:00
David Sidrane
62a2351a72 ROMFS:Removed FMUv1 from rcS etal 2017-09-10 13:37:23 -04:00
Lorenz Meier
9e2eac41ff ROMFS startup: Fix variable expansion for new NuttX scheme 2016-12-23 09:30:37 +01:00
Lorenz Meier
986145ac23 ROMFS: Free flash by being less verbose 2016-05-05 19:36:28 +02:00
Lorenz Meier
1a527ba9b4 ROMFS: Be less verbose on boot 2015-04-27 09:07:52 +02:00
Thomas Gubler
29eab8ebd4 change [init] to [i]
This change was introduced in pull #1461. This fixes some missed
occurrences.
2014-12-14 11:28:25 +01:00
ufoncz
bd5a0cef1a ver command ready including hwcmp which replaces hw_ver, removed hw_ver
updated all scripts to use new ver hwcmp command
q
2014-04-27 17:42:45 +02:00
Lorenz Meier
0982b081b8 ROMFS cleanup to eleminate excessive comments and resulting flash usage 2014-02-01 15:46:04 +01:00
Anton Babushkin
a8d362de13 Autostart: use MIXER instead of FRAME_GEOMETRY 2014-01-15 00:02:57 +01:00
Anton Babushkin
4cffd99db9 Major autostart rewrite 2014-01-08 20:55:12 +01:00
Anton Babushkin
255d91d8d4 hw_ver app added for hardware version checking 2014-01-07 21:56:35 +01:00
Jean Cyr
b80f0d46ae Allow tone_alarm cmd to use tone names as well as number
- remove script dependency on hard coded tone numbers
- fix bug restarting repeating tone after stop
2013-08-31 01:03:32 -04:00
Anton Babushkin
557d3f22de Startup scripts major cleanup 2013-08-25 19:27:11 +02:00