diff options
author | px4dev <px4@purgatory.org> | 2012-10-09 22:45:36 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-09 22:45:36 -0700 |
commit | 1e59a592a6a41a65e9e69814ae3d8cb62a061367 (patch) | |
tree | 5d17bc01ecdd597b7d6c86c18e2ca827050abb51 /ROMFS/scripts | |
parent | bd3f3b10317f58d20f635f4a3e6aee8fca8d9d2b (diff) | |
download | px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.tar.gz px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.tar.bz2 px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.zip |
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.
Diffstat (limited to 'ROMFS/scripts')
-rw-r--r-- | ROMFS/scripts/rc.FMU_quad_x | 2 | ||||
-rw-r--r-- | ROMFS/scripts/rc.PX4IOAR | 2 | ||||
-rw-r--r-- | ROMFS/scripts/rc.standalone | 10 |
3 files changed, 12 insertions, 2 deletions
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 @@ -11,6 +11,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. # #sh /etc/init.d/rc.sensors |