bleSDK_expansion_board/projects/blezongkong/src/sys_config.h

55 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _SYS_CONFIG_H_
#define _SYS_CONFIG_H_
#include "app_control_out.h"
#include "app_uart.h"
#include "stdio.h"
#include "app_radar.h"
#include "app_ws2812.h"
#include "app_buzzer.h"
#include "app_bat.h"
typedef struct SYS_CONF{
uint32_t HEAD;
uint32_t M_mode_sLim;
uint32_t U_mode_sLim;
uint32_t AUTO_Brake_Distance;
uint32_t AUTO_Speed_Cut_Distance;
uint32_t AUTO_Brake_Distance_B;
uint32_t AUTO_Speed_Cut_Distance_B;
}SYS_CONF_t;
extern uint32_t bank;
extern SYS_CONF_t sys_conf_info;
extern BAT_Message_t BAT_Message;
// 写配置
void write_cfg(SYS_CONF_t *sys_config_info_t);
// 油门ADC
#define ACC_UP_Res 5.1 //上分压电阻unit:KΩ)
#define ACC_DOWN_Res 5.1 //下分压电阻
// 电池ADC
#define BAT_UP_Res 68.0 //上分压电阻unit:KΩ)
#define BAT_DOWN_Res 3.0 //下分压电阻
/*****************************速度************************/
// 管理员模式默认速度极限(0-100%)
#define M_DEFAULT_sLim 80
// 管理员模式默认速度极限(0-100%)
#define U_DEFAULT_sLim 60
/*****************************刹车************************/
// 默认自动刹车距离0~45dm(分米)
#define DEF_AUTO_Brake_Distance 10
// 默认自动减速距离0~45dm
#define DEF_AUTO_Speed_Cut_Distance 16
#endif