AP_RCProtocol: fix segfault in example due to lack of VideoTX singleton

This commit is contained in:
Peter Barker 2020-07-30 15:38:44 +10:00 committed by Peter Barker
parent 913c00dd96
commit 8f77536c08
1 changed files with 3 additions and 0 deletions

View File

@ -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