WIP: px4log

This commit is contained in:
Daniel Agar
2023-03-10 15:00:35 -05:00
parent 0ae296bfe2
commit b4555db0e7
245 changed files with 573 additions and 1185 deletions
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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