Browse Source

HAL_SITL: fixed console printf in SITL examples

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
ebcffcb0ac
  1. 1
      libraries/AP_HAL_SITL/HAL_SITL_Class.cpp
  2. 3
      libraries/AP_HAL_SITL/Scheduler.h

1
libraries/AP_HAL_SITL/HAL_SITL_Class.cpp

@ -86,6 +86,7 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const @@ -86,6 +86,7 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const
for (;;) {
callbacks->loop();
sitlScheduler._run_io_procs(false);
}
}

3
libraries/AP_HAL_SITL/Scheduler.h

@ -50,6 +50,8 @@ public: @@ -50,6 +50,8 @@ public:
uint64_t stopped_clock_usec() const { return _stopped_clock_usec; }
static void _run_io_procs(bool called_from_isr);
private:
SITL_State *_sitlState;
uint8_t _nested_atomic_ctr;
@ -58,7 +60,6 @@ private: @@ -58,7 +60,6 @@ private:
static AP_HAL::Proc _failsafe;
static void _run_timer_procs(bool called_from_isr);
static void _run_io_procs(bool called_from_isr);
static volatile bool _timer_suspended;
static volatile bool _timer_event_missed;

Loading…
Cancel
Save