mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
global: use static method to construct RCMapper
This commit is contained in:
parent
c10a91964f
commit
a74e700006
@ -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;
|
||||||
|
@ -314,7 +314,7 @@ 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;
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user