I'm trying to set up madflight with motors mapped like this:
//--- OUT Pins ---
pin_out0 2
pin_out1 3
pin_out2 5
pin_out3 4
Building succeeds but Madflight spins motors in the wrong order (last two are swapped). Printing the config reveals that my madflight_config.h is ignored:
dump out
[...]
pin_out0 2
pin_out1 3
pin_out10 -1
pin_out11 -1
pin_out12 -1
pin_out13 -1
pin_out14 -1
pin_out15 -1
pin_out2 4
pin_out3 5
pin_out4 -1
[...]
Swapping the order using motor_outputs variable in main.cpp leads to the same behaviour.
int motor_outputs[] = {0, 1, 3, 2}; //right-rear, right-front, left-rear, left-front motor
I'm trying to set up madflight with motors mapped like this:
Building succeeds but Madflight spins motors in the wrong order (last two are swapped). Printing the config reveals that my madflight_config.h is ignored:
dump outSwapping the order using
motor_outputsvariable in main.cpp leads to the same behaviour.