global: use static method to construct RCMapper

This commit is contained in:
Lucas De Marchi 2017-08-28 17:45:00 -07:00 committed by Francisco Ferreira
parent c10a91964f
commit a74e700006
4 changed files with 5 additions and 5 deletions

View File

@ -133,7 +133,7 @@ private:
AP_Scheduler scheduler = AP_Scheduler::create(); AP_Scheduler scheduler = AP_Scheduler::create();
// mapping between input channels // mapping between input channels
RCMapper rcmap; RCMapper rcmap = RCMapper::create();
// board specific config // board specific config
AP_BoardConfig BoardConfig; AP_BoardConfig BoardConfig;

View File

@ -313,8 +313,8 @@ private:
// altitude below which we do no navigation in auto takeoff // altitude below which we do no navigation in auto takeoff
float auto_takeoff_no_nav_alt_cm; float auto_takeoff_no_nav_alt_cm;
RCMapper rcmap; RCMapper rcmap = RCMapper::create();
// board specific config // board specific config
AP_BoardConfig BoardConfig; AP_BoardConfig BoardConfig;

View File

@ -169,7 +169,7 @@ private:
AP_Scheduler scheduler = AP_Scheduler::create(); AP_Scheduler scheduler = AP_Scheduler::create();
// mapping between input channels // mapping between input channels
RCMapper rcmap; RCMapper rcmap = RCMapper::create();
// board specific config // board specific config
AP_BoardConfig BoardConfig; AP_BoardConfig BoardConfig;

View File

@ -251,7 +251,7 @@ private:
mode_reason_t prev_control_mode_reason = MODE_REASON_UNKNOWN; mode_reason_t prev_control_mode_reason = MODE_REASON_UNKNOWN;
#if RCMAP_ENABLED == ENABLED #if RCMAP_ENABLED == ENABLED
RCMapper rcmap; RCMapper rcmap = RCMapper::create();
#endif #endif
// board specific config // board specific config