mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:33:33 +08:00
param.SaveErase --> param.ExecuteOpcode
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# Service to control the node configuration.
|
||||
#
|
||||
# SAVE operation instructs the remote node to save the current configuration parameters to the non-volatile
|
||||
# storage. The node may require a restart in order for some changes to take effect.
|
||||
#
|
||||
# ERASE operation instructs the remote node to clear its configuration storage and reinitialize the parameters
|
||||
# with their default values. The node may require a restart in order for some changes to take effect.
|
||||
#
|
||||
# Other opcodes may be added in the future (for example, an opcode for switching between multiple configurations).
|
||||
#
|
||||
|
||||
uint8 OPCODE_SAVE = 0 # Save all parameters to non-volatile storage.
|
||||
uint8 OPCODE_ERASE = 1 # Clear the non-volatile storage; some changes may take effect only after reboot.
|
||||
uint8 opcode
|
||||
|
||||
#
|
||||
# Reserved, keep zero.
|
||||
#
|
||||
int48 argument
|
||||
|
||||
---
|
||||
|
||||
#
|
||||
# Reserved, keep zero.
|
||||
#
|
||||
int48 argument
|
||||
|
||||
bool ok
|
||||
@@ -1,17 +0,0 @@
|
||||
#
|
||||
# Service to control non-volatile parameter storage.
|
||||
#
|
||||
# SAVE operation instructs the remote node to save the current configuration parameters to the non-volatile
|
||||
# storage. The device may require a restart in order for some changes to take effect.
|
||||
#
|
||||
# ERASE operation instructs the remote node to clear its configuration storage and reinitialize the parameters
|
||||
# with their default values. The device may require a restart in order for some changes to take effect.
|
||||
#
|
||||
|
||||
uint8 OPCODE_SAVE = 0 # Save all parameters to non-volatile storage.
|
||||
uint8 OPCODE_ERASE = 1 # Clear the non-volatile storage; some changes may take effect only after reboot.
|
||||
uint8 opcode
|
||||
|
||||
---
|
||||
|
||||
bool ok
|
||||
Reference in New Issue
Block a user