Add more to Voxl2 build and fix associated build errors (#20821)

- Do not pull in PWM parameters when DISABLE_PARAMS_MODULE_SCOPING is TRUE since VOXL2 has no PWM nor any of the required timer_config files that go along with that
 - Replace non-standard M_PI constants with PX4 defined M_PI_F constants
 - Include missing header file for function hrt_absolute_time declaration
 - Add new PX4_SOC_ARCH_ID for the VOXL2 board
This commit is contained in:
Eric Katzfey
2022-12-22 15:44:19 -05:00
committed by GitHub
parent 35a9dba6e6
commit c3e70b03aa
11 changed files with 42 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ namespace control
float BlockHighPass::update(float input)
{
float b = 2 * float(M_PI) * getFCut() * getDt();
float b = 2 * M_PI_F * getFCut() * getDt();
float a = 1 / (1 + b);
setY(a * (getY() + input - getU()));
setU(input);
+1 -1
View File
@@ -51,7 +51,7 @@ float BlockLowPass::update(float input)
setState(input);
}
float b = 2 * float(M_PI) * getFCut() * getDt();
float b = 2 * M_PI_F * getFCut() * getDt();
float a = b / (1 + b);
setState(a * input + (1 - a)*getState());
return getState();
+1 -1
View File
@@ -79,7 +79,7 @@ public:
}
}
float b = 2 * float(M_PI) * getFCut() * getDt();
float b = 2 * M_PI_F * getFCut() * getDt();
float a = b / (1 + b);
setState(input * a + getState() * (1 - a));
return getState();