mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 23:43:58 -04:00
AP_Terrain: added AP namespace access to terrain
This commit is contained in:
parent
9466e7e71e
commit
fb5a06b8da
@ -400,4 +400,13 @@ bool AP_Terrain::allocate(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
namespace AP {
|
||||
|
||||
AP_Terrain &terrain()
|
||||
{
|
||||
return *AP_Terrain::get_singleton();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // AP_TERRAIN_AVAILABLE
|
||||
|
@ -436,4 +436,10 @@ private:
|
||||
|
||||
static AP_Terrain *singleton;
|
||||
};
|
||||
|
||||
namespace AP {
|
||||
AP_Terrain &terrain();
|
||||
};
|
||||
|
||||
#endif // AP_TERRAIN_AVAILABLE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user