Initial commit: SmartCar Framework v0.1 — 龙芯2K0300智能车开发框架\n\n- HAL: GPIO/PWM/Encoder/Framebuffer 驱动\n- Control: PID/IMU/Motor/Servo 控制\n- Vision: HSV双Otsu→4点标定IPM→洪泛填充→逐行搜线\n- Strategy: 三区前瞻偏差+速度策略\n- Debug: 文件热调参+LCD预览+cv截帧\n- Scheduler: 5ms timerfd+epoll 中央调度器
This commit is contained in:
25
debug/tcp.cpp
Normal file
25
debug/tcp.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "tcp.hpp"
|
||||
#include <cstdio>
|
||||
|
||||
bool tcp_init(const char* host, int port)
|
||||
{
|
||||
// TODO: 实现 TCP 客户端连接逐飞助手
|
||||
// 当前为占位实现,后续接入 seekfree_assistant 协议
|
||||
printf("[TCP] 占位: 连接 %s:%d (未实现)\n", host, port);
|
||||
return false;
|
||||
}
|
||||
|
||||
void tcp_send_image(const EdgeLines& lines)
|
||||
{
|
||||
// TODO: 发送 RGB565 调试图像
|
||||
}
|
||||
|
||||
void tcp_send_osc(float ch1, float ch2, float ch3, float ch4)
|
||||
{
|
||||
// TODO: 发送虚拟示波器数据
|
||||
}
|
||||
|
||||
void tcp_close()
|
||||
{
|
||||
// TODO: 关闭 TCP 连接
|
||||
}
|
||||
Reference in New Issue
Block a user