heat80Gear,更改相电流阈值电流为13A

This commit is contained in:
REASEARCHER\18383 2025-08-27 17:09:26 +08:00
parent a7136d2dcd
commit b2e9aeede6
5 changed files with 44 additions and 5 deletions

View File

@ -1,5 +1,30 @@
{ {
"files.associations": { "files.associations": {
"ptz_global_variable.h": "c" "ptz_global_variable.h": "c",
"stdio.h": "c",
"exception": "c",
"iutility": "c",
"new": "c",
"utility": "c",
"xstddef": "c",
"xstddef0": "c",
"cctype": "c",
"cfloat": "c",
"climits": "c",
"cmath": "c",
"cstddef": "c",
"cstdint": "c",
"cstdio": "c",
"cstdlib": "c",
"cstring": "c",
"cwchar": "c",
"cwctype": "c",
"initializer_list": "c",
"iosfwd": "c",
"limits": "c",
"type_traits": "c",
"typeinfo": "c",
"xtr1common": "c",
"xxexception": "c"
} }
} }

View File

@ -284,9 +284,10 @@ static void task_print()
// p_tcb = p_tcb->OSTCBPrev; // p_tcb = p_tcb->OSTCBPrev;
// } // }
// term_printf("\r\n"); // term_printf("\r\n");
ptz_uart_dev_send(uart_485_handle, TempInfoGet(),80 ); // ptz_uart_dev_send(uart_485_handle, TempInfoGet(),80 );//温度打印,正式版注释掉
// term_printf("%s", );//打印水平/垂直电机相电流,正式版注释掉
OSTimeDlyHMSM(0u, 0u, 10u, 0u); // ptz_uart_dev_send(uart_485_handle, TestGetMotorPhaseCur(),100 );//温度打印,正式版注释掉
// OSTimeDlyHMSM(0u, 0u, 0u, 500u);
} }
static void task_print_task() static void task_print_task()

View File

@ -1,6 +1,7 @@
#include "device_adc_collect.h" #include "device_adc_collect.h"
#include <includes.h> #include <includes.h>
#include "gd32f4xx.h" #include "gd32f4xx.h"
#include "stdio.h"
#include "comm_types.h" #include "comm_types.h"
#include "ptz_struct.h" #include "ptz_struct.h"
#include "tmp75.h" #include "tmp75.h"
@ -285,6 +286,14 @@ void V_ADC0_Phase_current()
} }
/*测试函数,打印水平/垂直电机相电流*/
char* TestGetMotorPhaseCur(void)
{
static char buf[100];
sprintf(buf, "H_U:%.2f, H_V:%.2f, H_W:%.2f;\r\n",
H_ADC_Collect.Phase_curr_U, H_ADC_Collect.Phase_curr_V, H_ADC_Collect.Phase_curr_W);
return buf;
}

View File

@ -19,4 +19,7 @@ void init_data_collect_module(void);//
void H_ADC2_Phase_current(); void H_ADC2_Phase_current();
void V_ADC0_Phase_current(); void V_ADC0_Phase_current();
void ptz_send_bridge_temperature(char dev); void ptz_send_bridge_temperature(char dev);
/*测试函数,打印水平/垂直电机相电流*/
char* TestGetMotorPhaseCur(void);
#endif #endif

View File

@ -113,7 +113,8 @@
#define PTZ_HALL_DETECT 30//30 #define PTZ_HALL_DETECT 30//30
//相电流运行最大值 //相电流运行最大值
#define PHASE_CURRENT 5.0 // #define PHASE_CURRENT 5.0
#define PHASE_CURRENT 12
#endif #endif
//L6235D涡轮蜗杆重型云台 //L6235D涡轮蜗杆重型云台