HAL_SITL: g_state is not needed any more
This commit is contained in:
parent
a17fc9e5ab
commit
878549530d
@ -51,8 +51,6 @@ extern const AP_HAL::HAL& hal;
|
|||||||
|
|
||||||
using namespace AVR_SITL;
|
using namespace AVR_SITL;
|
||||||
|
|
||||||
SITL_State *g_state;
|
|
||||||
|
|
||||||
// catch floating point exceptions
|
// catch floating point exceptions
|
||||||
static void _sig_fpe(int signum)
|
static void _sig_fpe(int signum)
|
||||||
{
|
{
|
||||||
@ -237,9 +235,6 @@ void SITL_State::_sitl_setup(void)
|
|||||||
// start with non-zero clock
|
// start with non-zero clock
|
||||||
hal.scheduler->stop_clock(1);
|
hal.scheduler->stop_clock(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep a global state pointer for static callbacks
|
|
||||||
g_state = this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,8 +82,6 @@ uint32_t SITLScheduler::millis()
|
|||||||
return millis64() & 0xFFFFFFFF;
|
return millis64() & 0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern AVR_SITL::SITL_State *g_state;
|
|
||||||
|
|
||||||
void SITLScheduler::delay_microseconds(uint16_t usec)
|
void SITLScheduler::delay_microseconds(uint16_t usec)
|
||||||
{
|
{
|
||||||
uint64_t start = micros64();
|
uint64_t start = micros64();
|
||||||
|
Loading…
Reference in New Issue
Block a user