mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 20:17:34 +08:00
mixer multirotor: add unit-tests
To run: cd src/lib/mixer make tests This will validate the C++ implementation by taking the python implementation as ground-truth. It runs through various actuator control command values for all airmode variations and several mixer types. The python script also allows to prototype new mixer algorithms. It is not integrated into the existing build system, because it's easier to use that way, with less dependencies, and faster testing workflow. It could however be a bit more integrated. Reference: https://github.com/Auterion/Flight_Control_Prototyping_Scripts/tree/master/control_allocation
This commit is contained in:
@@ -62,7 +62,7 @@ static int mixer_callback(uintptr_t handle,
|
||||
uint8_t control_index,
|
||||
float &control);
|
||||
|
||||
const unsigned output_max = 8;
|
||||
static const unsigned output_max = 8;
|
||||
static float actuator_controls[output_max];
|
||||
static bool should_prearm = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user