mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 16:40:34 +08:00
Use defines instead of hardcoded magic values for maximum number of output channels and rpm filter time constant
This commit is contained in:
@@ -63,7 +63,7 @@ bool PPSCapture::init()
|
||||
{
|
||||
bool success = false;
|
||||
|
||||
for (unsigned i = 0; i < 16; ++i) {
|
||||
for (unsigned i = 0; i < PWM_OUTPUT_MAX_CHANNELS; ++i) {
|
||||
char param_name[17];
|
||||
snprintf(param_name, sizeof(param_name), "%s_%s%d", PARAM_PREFIX, "FUNC", i + 1);
|
||||
param_t function_handle = param_find(param_name);
|
||||
|
||||
Reference in New Issue
Block a user