MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / is_handling_command

Method is_handling_command

libraries/AP_Scripting/AP_Scripting.cpp:495–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495bool AP_Scripting::is_handling_command(uint16_t cmd_id)
496{
497 WITH_SEMAPHORE(mavlink_command_block_list_sem);
498
499 // Look in linked list to see if id is registered
500 if (mavlink_command_block_list != nullptr) {
501 for (command_block_list *item = mavlink_command_block_list; item; item = item->next) {
502 if (item->id == cmd_id) {
503 return true;
504 }
505 }
506 }
507
508 return false;
509}
510#endif // HAL_GCS_ENABLED
511
512// Update called at 1Hz from AP_Vehicle

Callers 3

handle_command_longMethod · 0.80
handle_command_intMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected