You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <freertos/FreeRTOS.h>
|
|
|
|
#include <freertos/semphr.h>
|
|
|
|
#include <freertos/task.h>
|
|
|
|
|
|
|
|
#include "messages.pb.h"
|
|
|
|
#include "sx127x_driver.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct ugv_comms_state_s {
|
|
|
|
sx127x_hndl lora;
|
|
|
|
TaskHandle_t task_handle;
|
|
|
|
|
|
|
|
SemaphoreHandle_t mutex;
|
|
|
|
uas::ugv::Location location;
|
|
|
|
uas::ugv::UGV_State ugv_state;
|
|
|
|
TickType_t last_packet_tick;
|
|
|
|
int32_t last_packet_rssi;
|
|
|
|
int8_t last_packet_snr;
|
|
|
|
} ugv_comms_state_t;
|
|
|
|
|
|
|
|
extern ugv_comms_state_t ugv_comms_state;
|
|
|
|
|
|
|
|
void ugv_comms_init();
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|