Inducing single motor failure on Orange Cube+ running on PX4 1.15.2

Hello!
I was trying to fail a single motor on my quad using a custom defined module in the PX4 1.15.2 firmware running on an Orange Cube+ for testing purposes. My approach till now:
I have tried using the actuator_outputs.h library and the code runs fine telling me that the motor is halted in my MavLink terminal when I press a button on my TX but the motor actually never stops.
actuator_outputs.output[0] = 0.0f; // Disable motor 0
^This seems to do nothing even when I am on OffBoard mode as it seems like the px4 mixer overrides my script.
Is there any way to resolve this issue?
Thanks for reading :slight_smile: