PX4IO Firmware: Fix usage of new operator in IRQ

The mixer was creating a new class in interrupt context, which is not valid use in NuttX. This change copies the mixer into the buffer and runs the mixer management section of the code outside of interrupt context in the normal task.
This commit is contained in:
Lorenz Meier
2017-10-30 20:03:19 +01:00
parent 509ac10ccc
commit afc8503260
2 changed files with 54 additions and 18 deletions
+1
View File
@@ -191,6 +191,7 @@ extern pwm_limit_t pwm_limit;
* Mixer
*/
extern void mixer_tick(void);
extern int mixer_handle_text_create_mixer(void);
extern int mixer_handle_text(const void *buffer, size_t length);
/* Set the failsafe values of all mixed channels (based on zero throttle, controls centered) */
extern void mixer_set_failsafe(void);