pref: 显示优化
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#define TRACKING
|
#define TRACKING
|
||||||
|
|
||||||
extern float (*mid_track)[2];
|
extern float (*mid_track)[2];
|
||||||
|
extern int32_t mid_track_count;
|
||||||
extern float pure_angle;
|
extern float pure_angle;
|
||||||
extern float dx_near;
|
extern float dx_near;
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
#include "zf_common_headfile.h"
|
#include "zf_common_headfile.h"
|
||||||
|
|
||||||
#define BT_UART_BAUDRATE (115200)
|
|
||||||
#define BT_UART_INDEX UART_8
|
|
||||||
#define BT_UART_TX_PIN UART8_MAP0_TX_C4
|
|
||||||
#define BT_UART_RX_PIN UART8_MAP0_RX_C5
|
|
||||||
|
|
||||||
bool bt_rx_flag = false;
|
bool bt_rx_flag = false;
|
||||||
uint8_t bt_buffer; // 接收字符存入
|
uint8_t bt_buffer; // 接收字符存入
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,11 @@
|
|||||||
|
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
|
||||||
|
#define BT_UART_BAUDRATE (115200)
|
||||||
|
#define BT_UART_INDEX UART_8
|
||||||
|
#define BT_UART_TX_PIN UART8_MAP0_TX_C4
|
||||||
|
#define BT_UART_RX_PIN UART8_MAP0_RX_C5
|
||||||
|
|
||||||
void jj_bt_init();
|
void jj_bt_init();
|
||||||
void jj_bt_run();
|
void jj_bt_run();
|
||||||
void jj_bt_printf(const char *format, ...);
|
void jj_bt_printf(const char *format, ...);
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
#include "page_ui_widget.h"
|
#include "page_ui_widget.h"
|
||||||
#include "page.h"
|
#include "page.h"
|
||||||
|
|
||||||
|
#include "jj_blueteeth.h"
|
||||||
|
#include "gl_data.h"
|
||||||
|
|
||||||
#define LINE_HEAD 11
|
#define LINE_HEAD 11
|
||||||
#define LINE_END 16
|
#define LINE_END 16
|
||||||
|
|
||||||
|
|||||||
@@ -171,8 +171,12 @@ void Show_Marked_Image(void)
|
|||||||
uint16_t mix_y = START_Y + (uint16_t)(mid_track[i][0] * vertical_zoom_rate);
|
uint16_t mix_y = START_Y + (uint16_t)(mid_track[i][0] * vertical_zoom_rate);
|
||||||
|
|
||||||
// 近线数组显示
|
// 近线数组显示
|
||||||
ips200_draw_rect(l_x, l_y, l_x + 2, l_y, RGB565_RED);
|
if (i < pts_inv_l_count) {
|
||||||
ips200_draw_rect(r_x - 2, r_y, r_x, r_y, RGB565_BLUE);
|
ips200_draw_rect(l_x, l_y, l_x + 2, l_y + 1, RGB565_RED);
|
||||||
|
}
|
||||||
|
if (i < pts_inv_r_count) {
|
||||||
|
ips200_draw_rect(r_x - 2, r_y, r_x, r_y + 1, RGB565_BLUE);
|
||||||
|
}
|
||||||
|
|
||||||
// 远线数组显示
|
// 远线数组显示
|
||||||
// ips200_draw_rect(far_l_x, far_l_y, far_l_x + 2, far_l_y, RGB565_RED);
|
// ips200_draw_rect(far_l_x, far_l_y, far_l_x + 2, far_l_y, RGB565_RED);
|
||||||
@@ -183,7 +187,9 @@ void Show_Marked_Image(void)
|
|||||||
// ips200_draw_rect(mid_x_r, mix_y_r, mid_x_r + 2, mix_y_r, RGB565_BLUE);
|
// ips200_draw_rect(mid_x_r, mix_y_r, mid_x_r + 2, mix_y_r, RGB565_BLUE);
|
||||||
|
|
||||||
// 最终中线数字显示
|
// 最终中线数字显示
|
||||||
ips200_draw_rect(mid_x, mix_y, mid_x + 2, mix_y, RGB565_BLACK);
|
if (i < mid_track_count) {
|
||||||
|
ips200_draw_rect(mid_x, mix_y, mid_x + 2, mix_y + 1, RGB565_BLACK);
|
||||||
|
}
|
||||||
|
|
||||||
// ips200_draw_point(START_X + (uint16_t)((float)pts_right[i][1] * horizontal_zoom_rate), START_Y + (uint16_t)((float)pts_right[i][0] * vertical_zoom_rate), RGB565_GREEN);
|
// ips200_draw_point(START_X + (uint16_t)((float)pts_right[i][1] * horizontal_zoom_rate), START_Y + (uint16_t)((float)pts_right[i][0] * vertical_zoom_rate), RGB565_GREEN);
|
||||||
// ips200_draw_point(START_X + (uint16_t)((float)pts_right[i][1] * horizontal_zoom_rate) - 1, START_Y + (uint16_t)((float)pts_right[i][0] * vertical_zoom_rate), RGB565_GREEN);
|
// ips200_draw_point(START_X + (uint16_t)((float)pts_right[i][1] * horizontal_zoom_rate) - 1, START_Y + (uint16_t)((float)pts_right[i][0] * vertical_zoom_rate), RGB565_GREEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user