2026-04-03 17:52:02 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
2026-04-06 00:27:32 +01:00
|
|
|
#include "drone_comms.h"
|
2026-04-14 16:00:52 +01:00
|
|
|
#include "esp32-hal.h"
|
2026-04-06 00:27:32 +01:00
|
|
|
#include "freertos/idf_additions.h"
|
|
|
|
|
|
2026-04-03 17:52:02 +01:00
|
|
|
void handle_packet(uint8_t *packet_addr);
|
2026-04-06 00:27:32 +01:00
|
|
|
|
2026-04-14 16:00:52 +01:00
|
|
|
void send_packet_getter(PACKET_TYPE requested_type);
|
|
|
|
|
|
2026-04-06 00:27:32 +01:00
|
|
|
inline SemaphoreHandle_t controller_input_semaphore = NULL;
|
|
|
|
|
inline packet_controller_input current_controller_input;
|
2026-04-14 16:00:52 +01:00
|
|
|
|
|
|
|
|
inline uint64_t time_last_controller = 0;
|