| 493 | } |
| 494 | |
| 495 | bool 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 |
no outgoing calls
no test coverage detected