mirror of https://github.com/ArduPilot/ardupilot
AP_RCProtocol: fix segfault in example due to lack of VideoTX singleton
This commit is contained in:
parent
913c00dd96
commit
8f77536c08
|
@ -19,6 +19,7 @@
|
|||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_RCProtocol/AP_RCProtocol.h>
|
||||
#include <AP_SerialManager/AP_SerialManager.h>
|
||||
#include <AP_RCTelemetry/AP_VideoTX.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void setup();
|
||||
|
@ -26,6 +27,8 @@ void loop();
|
|||
|
||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||
|
||||
static AP_VideoTX vtx; // for set_vtx functions
|
||||
|
||||
static AP_RCProtocol *rcprot;
|
||||
|
||||
// setup routine
|
||||
|
|
Loading…
Reference in New Issue