mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
refactor(drivers/tap_esc): convert params.c to module.yaml
Convert 1 parameter file(s) from legacy C format to YAML module configuration.
This commit is contained in:
@@ -43,6 +43,7 @@ px4_add_module(
|
|||||||
TAP_ESC.hpp
|
TAP_ESC.hpp
|
||||||
MODULE_CONFIG
|
MODULE_CONFIG
|
||||||
module.yaml
|
module.yaml
|
||||||
|
tap_esc_params.yaml
|
||||||
DEPENDS
|
DEPENDS
|
||||||
led
|
led
|
||||||
mixer_module
|
mixer_module
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
/**
|
|
||||||
* @file tap_esc_params.c
|
|
||||||
* Parameters for esc version
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Required esc firmware version.
|
|
||||||
*
|
|
||||||
* @group ESC
|
|
||||||
* @min 0
|
|
||||||
* @max 65535
|
|
||||||
*/
|
|
||||||
PARAM_DEFINE_INT32(ESC_FW_VER, 0);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Required esc bootloader version.
|
|
||||||
*
|
|
||||||
* @group ESC
|
|
||||||
* @min 0
|
|
||||||
* @max 65535
|
|
||||||
*/
|
|
||||||
PARAM_DEFINE_INT32(ESC_BL_VER, 0);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Required esc hardware version
|
|
||||||
*
|
|
||||||
* @group ESC
|
|
||||||
* @min 0
|
|
||||||
* @max 65535
|
|
||||||
*/
|
|
||||||
PARAM_DEFINE_INT32(ESC_HW_VER, 0);
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
module_name: tap_esc
|
||||||
|
parameters:
|
||||||
|
- group: ESC
|
||||||
|
definitions:
|
||||||
|
ESC_FW_VER:
|
||||||
|
description:
|
||||||
|
short: Required esc firmware version
|
||||||
|
type: int32
|
||||||
|
default: 0
|
||||||
|
min: 0
|
||||||
|
max: 65535
|
||||||
|
ESC_BL_VER:
|
||||||
|
description:
|
||||||
|
short: Required esc bootloader version
|
||||||
|
type: int32
|
||||||
|
default: 0
|
||||||
|
min: 0
|
||||||
|
max: 65535
|
||||||
|
ESC_HW_VER:
|
||||||
|
description:
|
||||||
|
short: Required esc hardware version
|
||||||
|
type: int32
|
||||||
|
default: 0
|
||||||
|
min: 0
|
||||||
|
max: 65535
|
||||||
Reference in New Issue
Block a user