From 1e59a592a6a41a65e9e69814ae3d8cb62a061367 Mon Sep 17 00:00:00 2001 From: px4dev Date: Tue, 9 Oct 2012 22:45:36 -0700 Subject: Split the parameter load/save commands out of the 'eeprom' command, since that's not really the obvious place for them. Add parameter printing functionality (though, it's a mess due to %f being busted) Update the script examples to use the new command. --- ROMFS/scripts/rc.FMU_quad_x | 2 +- ROMFS/scripts/rc.PX4IOAR | 2 +- ROMFS/scripts/rc.standalone | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'ROMFS') diff --git a/ROMFS/scripts/rc.FMU_quad_x b/ROMFS/scripts/rc.FMU_quad_x index 94ed2be18..e9f07b4a2 100644 --- a/ROMFS/scripts/rc.FMU_quad_x +++ b/ROMFS/scripts/rc.FMU_quad_x @@ -9,7 +9,7 @@ echo "[init] eeprom" eeprom start if [ -f /eeprom/parameters ] then - eeprom load_param /eeprom/parameters + param load fi echo "[init] sensors" diff --git a/ROMFS/scripts/rc.PX4IOAR b/ROMFS/scripts/rc.PX4IOAR index 532dd6a25..382d8e25c 100644 --- a/ROMFS/scripts/rc.PX4IOAR +++ b/ROMFS/scripts/rc.PX4IOAR @@ -19,7 +19,7 @@ echo "[init] eeprom" eeprom start if [ -f /eeprom/parameters ] then - eeprom load_param /eeprom/parameters + param load fi # diff --git a/ROMFS/scripts/rc.standalone b/ROMFS/scripts/rc.standalone index 7dfd98a16..8ccdb577b 100644 --- a/ROMFS/scripts/rc.standalone +++ b/ROMFS/scripts/rc.standalone @@ -10,6 +10,16 @@ echo "[init] doing standalone PX4FMU startup..." # uorb start +# +# Init the EEPROM +# +echo "[init] eeprom" +eeprom start +if [ -f /eeprom/parameters ] +then + param load +fi + # # Start the sensors. # -- cgit v1.2.3