Skip to content

Commit

Permalink
move common params to system module
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Sep 28, 2024
1 parent 056b629 commit 6cd1e12
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 44 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ if(USE_PLATFORM_UBUNTU)
add_definitions(-DLIBPARAMS_TEMP_PARAMS_FILE_NAME="temp_params")
endif()

list(APPEND LIBPARAMS_PARAMS
${ROOT_DIR}/Src/common/params.yaml
)

include(${LIBPARAMS_PATH}/CMakeLists.txt)

list(APPEND APPLICATION_HEADERS ${ROOT_DIR}/Src ${APPLICATION_DIR})
Expand Down
40 changes: 0 additions & 40 deletions Src/common/params.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions Src/modules/system/params.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
uavcan.node.id:
type: Integer
note: Defines a node-ID. Allowed values [0,127].
enum: PARAM_UAVCAN_NODE_ID
flags: mutable
default: 42
min: 0
max: 255

uavcan.node.description:
note: User/integrator-defined, human-readable description of this specific node.
type: String
enum: PARAM_NODE_DESCRIPTION
flags: mutable
default: ""

system.can_terminator:
type: Integer
note: Bitmask which switch can terminators (0 - both off, 1 - enables second, 2 - enables first, 3 - enables both). Works only for v3.
enum: PARAM_SYSTEM_CAN_TEMINATOR
flags: mutable
default: 0
min: 0
max: 3

system.name:
type: String
note: Defines custom node name. If empty, the node will use the default name.
enum: PARAM_SYSTEM_NAME
flags: mutable
default: "co.raccoonlab.mini"

system.protocol:
type: Integer
note: Auto, Cyphal/CAN or DroneCAN
enum: PARAM_SYSTEM_PROTOCOL
flags: mutable
default: 0
min: 0
max: 2

system.log_level:
type: Integer
note:
Expand Down

0 comments on commit 6cd1e12

Please sign in to comment.