constvalues.c
来自「基于SPCE061A的出租车计价器」· C语言 代码 · 共 22 行
C
22 行
const unsigned int C_PulsePerKM = 1024; // 脉冲数
const float C_StartPrice = 10.0; // 白天的起步价保促地址
const float C_NightStartPrice = 11.0; // 夜晚的起步价
const float C_StartMilege = 3.0; // 起步里程
const float C_PricePerKM = 2.0; // 白天的单价
const float C_NightPricePerKM = 2.4; // 夜晚的单价
const float C_WaitSpeed1 = 5.0; // 低速等待速度1(小于此速度将启动等待计时)
const float C_WaitSpeed2 = 5.0; // 低速等待速度2(大于此速度将停止等待计时)
const float C_FirstWaitTimeLimit = 5.0; // 第一次加价的低速等待时间
const float C_WaitTimeLimit = 3.0; // 第一次低速低速等待加价之后的加价间隔
const float C_WaitPrice = 2.0; // 等待加价幅度(单位:元)
const float C_LongWayLimit = 13.0; // 远程里程数(里程大于此,单价将上调)
const float C_LongWayPrice = 1.5; // 远程上调价格的系数(调整后的单价=原单价*上调价格的系数)
const unsigned int C_Year = 2006; // 日历中的年
const unsigned int C_Month = 10; // 日历中的月
const unsigned int C_Day = 17; // 日历中的日
const unsigned int C_Hour = 14; // 日历中的时
const unsigned int C_Minute = 01; // 日历中的分
const unsigned int C_Second = 0; // 日历中的秒
const unsigned int C_NightTime1 = 23; // 夜行分界点1(时间晚于此将进入夜行状态)
const unsigned int C_NightTime2 = 5; // 夜行分界点2(时间早于此将进入昼行状态)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?