mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
refactor(drivers/telemetry/iridiumsbd): convert params.c to module.yaml
Convert 1 parameter file(s) from legacy C format to YAML module configuration.
This commit is contained in:
@@ -39,5 +39,6 @@ px4_add_module(
|
||||
IridiumSBD.h
|
||||
MODULE_CONFIG
|
||||
module.yaml
|
||||
iridiumsbd_params.yaml
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
|
||||
/**
|
||||
* Satellite radio read interval. Only required to be nonzero if data is not sent using a ring call.
|
||||
*
|
||||
* @unit s
|
||||
* @min 0
|
||||
* @max 5000
|
||||
* @group Iridium SBD
|
||||
*/
|
||||
PARAM_DEFINE_INT32(ISBD_READ_INT, 0);
|
||||
|
||||
/**
|
||||
* Iridium SBD session timeout
|
||||
*
|
||||
* @unit s
|
||||
* @min 0
|
||||
* @max 300
|
||||
* @group Iridium SBD
|
||||
*/
|
||||
PARAM_DEFINE_INT32(ISBD_SBD_TIMEOUT, 60);
|
||||
|
||||
/**
|
||||
* Time the Iridium driver will wait for additional mavlink messages to combine them into one SBD message
|
||||
*
|
||||
* Value 0 turns the functionality off
|
||||
*
|
||||
* @unit ms
|
||||
* @min 0
|
||||
* @max 500
|
||||
* @group Iridium SBD
|
||||
*/
|
||||
PARAM_DEFINE_INT32(ISBD_STACK_TIME, 0);
|
||||
@@ -0,0 +1,34 @@
|
||||
module_name: iridiumsbd
|
||||
parameters:
|
||||
- group: Iridium SBD
|
||||
definitions:
|
||||
ISBD_READ_INT:
|
||||
description:
|
||||
short: Iridium SBD read interval
|
||||
long: Satellite radio read interval. Only required to be nonzero if data is
|
||||
not sent using a ring call
|
||||
type: int32
|
||||
default: 0
|
||||
unit: s
|
||||
min: 0
|
||||
max: 5000
|
||||
ISBD_SBD_TIMEOUT:
|
||||
description:
|
||||
short: Iridium SBD session timeout
|
||||
type: int32
|
||||
default: 60
|
||||
unit: s
|
||||
min: 0
|
||||
max: 300
|
||||
ISBD_STACK_TIME:
|
||||
description:
|
||||
short: Iridium SBD message stacking wait time
|
||||
long: |-
|
||||
Time the Iridium driver will wait for additional mavlink messages to combine them into one SBD message
|
||||
|
||||
Value 0 turns the functionality off
|
||||
type: int32
|
||||
default: 0
|
||||
unit: ms
|
||||
min: 0
|
||||
max: 500
|
||||
Reference in New Issue
Block a user