mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 18:47:34 +08:00
WIP: px4log
This commit is contained in:
@@ -77,11 +77,11 @@ class RCOutput():
|
||||
result += "\n"
|
||||
result += "if [ ${AIRFRAME} != none ]\n"
|
||||
result += "then\n"
|
||||
result += "\techo \"Loading airframe: /etc/init.d/airframes/${AIRFRAME}\"\n"
|
||||
result += "\tpx4log \"Loading airframe: /etc/init.d/airframes/${AIRFRAME}\"\n"
|
||||
result += "\t. /etc/init.d/airframes/${AIRFRAME}\n"
|
||||
if not post_start:
|
||||
result += "else\n"
|
||||
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"
|
||||
result += "\tpx4log \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"
|
||||
# Reset the configuration
|
||||
result += "\tparam set SYS_AUTOSTART 0\n"
|
||||
result += "\ttone_alarm ${TUNE_ERR}\n"
|
||||
|
||||
@@ -69,7 +69,7 @@ def main():
|
||||
file_path = os.path.join(root, file)
|
||||
|
||||
# delete hidden files
|
||||
if file.startswith("."):
|
||||
if file.startswith(".") and not ".nshrc" in file:
|
||||
os.remove(file_path)
|
||||
continue
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ set i {{ command.instance }}
|
||||
. $PRT_F
|
||||
if [ $SERIAL_DEV != none ]; then
|
||||
{% if not constrained_flash -%}
|
||||
echo "Starting {{ command.label }} on $SERIAL_DEV"
|
||||
px4log "Starting {{ command.label }} on $SERIAL_DEV"
|
||||
{% endif -%}
|
||||
{{ command.command }}
|
||||
fi
|
||||
|
||||
@@ -11,7 +11,7 @@ if param compare "$PRT" {{ serial_device.index }}; then
|
||||
set PRT_{{ serial_device.tag }}_ 1
|
||||
{% if not constrained_flash -%}
|
||||
else
|
||||
echo "Conflicting config for {{ serial_device.device }}"
|
||||
px4log "Conflicting config for {{ serial_device.device }}"
|
||||
{% endif -%}
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user