APM:Libraries
|
#include <Scheduler.h>
Public Member Functions | |
Scheduler (SITL_State *sitlState) | |
void | init () |
void | delay (uint16_t ms) |
void | delay_microseconds (uint16_t us) |
void | register_timer_process (AP_HAL::MemberProc) |
void | register_io_process (AP_HAL::MemberProc) |
void | suspend_timer_procs () |
void | resume_timer_procs () |
void | register_timer_failsafe (AP_HAL::Proc, uint32_t period_us) |
bool | in_main_thread () const override |
void | system_initialized () |
void | reboot (bool hold_in_bootloader) |
bool | interrupts_are_blocked (void) |
void | sitl_begin_atomic () |
void | sitl_end_atomic () |
uint64_t | stopped_clock_usec () const |
![]() | |
Scheduler () | |
virtual void | delay_microseconds_boost (uint16_t us) |
virtual void | boost_end (void) |
virtual void | register_delay_callback (AP_HAL::Proc, uint16_t min_time_ms) |
virtual bool | in_delay_callback () const |
virtual void | create_uavcan_thread () |
virtual void * | disable_interrupts_save (void) |
virtual void | restore_interrupts (void *) |
virtual void | call_delay_cb () |
Static Public Member Functions | |
static Scheduler * | from (AP_HAL::Scheduler *scheduler) |
static void | timer_event () |
static void | _run_io_procs (bool called_from_isr) |
Static Public Attributes | |
static bool | _should_reboot = false |
Private Member Functions | |
void | stop_clock (uint64_t time_usec) |
Static Private Member Functions | |
static void | _run_timer_procs (bool called_from_isr) |
Private Attributes | |
SITL_State * | _sitlState |
uint8_t | _nested_atomic_ctr |
bool | _initialized |
uint64_t | _stopped_clock_usec |
uint64_t | _last_io_run |
Static Private Attributes | |
static AP_HAL::Proc | _failsafe |
static volatile bool | _timer_suspended |
static volatile bool | _timer_event_missed |
static AP_HAL::MemberProc | _timer_proc [SITL_SCHEDULER_MAX_TIMER_PROCS] |
static AP_HAL::MemberProc | _io_proc [SITL_SCHEDULER_MAX_TIMER_PROCS] |
static uint8_t | _num_timer_procs |
static uint8_t | _num_io_procs |
static bool | _in_timer_proc |
static bool | _in_io_proc |
Additional Inherited Members | |
![]() | |
uint16_t | _min_delay_cb_ms |
Definition at line 11 of file Scheduler.h.
|
explicit |
|
static |
Definition at line 176 of file Scheduler.cpp.
Referenced by HAL_SITL::run(), stop_clock(), stopped_clock_usec(), and timer_event().
|
staticprivate |
Referenced by Scheduler(), sitl_end_atomic(), and timer_event().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
inlinestatic |
Definition at line 14 of file Scheduler.h.
Referenced by HALSITL::SITL_State::init().
|
inlineoverridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 31 of file Scheduler.h.
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
inline |
Definition at line 36 of file Scheduler.h.
Referenced by HALSITL::SITL_State::_fdm_input_step().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by in_main_thread(), and sitl_end_atomic().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
inline |
Definition at line 40 of file Scheduler.h.
Referenced by HALSITL::SITL_State::_fdm_input_step().
void Scheduler::sitl_end_atomic | ( | ) |
Definition at line 124 of file Scheduler.cpp.
Referenced by HALSITL::SITL_State::_fdm_input_step(), and sitl_begin_atomic().
|
privatevirtual |
optional function to stop clock at a given time, used by log replay
Reimplemented from AP_HAL::Scheduler.
Definition at line 207 of file Scheduler.cpp.
|
inline |
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by from(), and Scheduler().
|
virtual |
Implements AP_HAL::Scheduler.
Referenced by in_main_thread(), and Scheduler().
|
inlinestatic |
Definition at line 45 of file Scheduler.h.
Referenced by HALSITL::SITL_State::_fdm_input_step().
|
staticprivate |
Definition at line 58 of file Scheduler.h.
Referenced by Scheduler(), and sitl_end_atomic().
|
staticprivate |
Definition at line 69 of file Scheduler.h.
Referenced by _run_io_procs(), and in_main_thread().
|
staticprivate |
Definition at line 68 of file Scheduler.h.
Referenced by in_main_thread(), and sitl_end_atomic().
|
private |
Definition at line 73 of file Scheduler.h.
Referenced by Scheduler().
|
staticprivate |
Definition at line 65 of file Scheduler.h.
Referenced by _run_io_procs(), and Scheduler().
|
private |
Definition at line 75 of file Scheduler.h.
Referenced by stop_clock().
|
private |
Definition at line 57 of file Scheduler.h.
Referenced by interrupts_are_blocked(), sitl_begin_atomic(), and sitl_end_atomic().
|
staticprivate |
Definition at line 67 of file Scheduler.h.
Referenced by _run_io_procs(), and Scheduler().
|
staticprivate |
Definition at line 66 of file Scheduler.h.
Referenced by Scheduler(), and sitl_end_atomic().
|
static |
Definition at line 53 of file Scheduler.h.
Referenced by HAL_SITL::run(), and sitl_end_atomic().
|
private |
Definition at line 56 of file Scheduler.h.
Referenced by Scheduler().
|
private |
Definition at line 74 of file Scheduler.h.
Referenced by stop_clock(), and stopped_clock_usec().
|
staticprivate |
Definition at line 63 of file Scheduler.h.
Referenced by _run_io_procs(), Scheduler(), and sitl_end_atomic().
|
staticprivate |
Definition at line 64 of file Scheduler.h.
Referenced by Scheduler(), and sitl_end_atomic().
|
staticprivate |
Definition at line 62 of file Scheduler.h.
Referenced by _run_io_procs(), Scheduler(), and sitl_end_atomic().