Реализована функция lidar_update(), обновляющая данные
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#define USART3_START_BYTE 0x59
|
||||
#define USART3_FRAME_SIZE 9
|
||||
#define LIDAR_MIN_DIST 0.01f
|
||||
#define LIDAR_MAX_DIST 40.0f
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -21,7 +23,14 @@ typedef struct
|
||||
uint8_t checksum;
|
||||
} lidar_data_buf;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t distance; // meters
|
||||
uint16_t strength;
|
||||
uint16_t temperature;
|
||||
} lidar_data;
|
||||
|
||||
void lidar_init();
|
||||
void lidar_update();
|
||||
void lidar_update(lidar_data* lidar);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user