mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-30 16:56:12 +08:00
Add INTERNAL_ERROR reporting to get_loop_rate_hz(), get_loop_period_us(), and get_loop_period_s() to detect initialization order issues. Functions now provide fallback initialization if called before scheduler::init(). Change _active_loop_rate_hz from AP_Int16 to uint16_t to match _loop_rate_hz parameter . Update comments to clarify the dual initialization approach.