车速脉冲周期、频率与车速
作者: perfecttama执行次数: 685
※ 本程序库由会员创建。本站不对其内容负责。
供自己使用
| 车速 | km/h |
| 脉冲频率 | Hz |
/* 单位时间[usec]内的脉冲数 */
pulse_cnt_per_usec = 1 / pulse_period_usec;
/* 单位时间[sec]内的脉冲数 = 频率[Hz] */
pulse_cnt_per_sec = pulse_cnt_per_usec * 1000 * 1000;
pulse_freq = pulse_cnt_per_sec;
/* 单位时间[min]内的脉冲数 */
pulse_cnt_per_min = pulse_cnt_per_sec * 60;
/* 车轴转速 */
axle_rpm = pulse_cnt_per_min / (车轴每转的脉冲数);
/* JIS D5601 汽车速度表标准 */
/* 637rpm -> 60km/h */
/* 每转1rpm对应时速 = 60 / 637 */
speed_kph_per_rpm = 60 / 637;
/* 车速 */
speed_kph = speed_kph_per_rpm * axle_rpm;
pulse_cnt_per_usec = 1 / pulse_period_usec;
/* 单位时间[sec]内的脉冲数 = 频率[Hz] */
pulse_cnt_per_sec = pulse_cnt_per_usec * 1000 * 1000;
pulse_freq = pulse_cnt_per_sec;
/* 单位时间[min]内的脉冲数 */
pulse_cnt_per_min = pulse_cnt_per_sec * 60;
/* 车轴转速 */
axle_rpm = pulse_cnt_per_min / (车轴每转的脉冲数);
/* JIS D5601 汽车速度表标准 */
/* 637rpm -> 60km/h */
/* 每转1rpm对应时速 = 60 / 637 */
speed_kph_per_rpm = 60 / 637;
/* 车速 */
speed_kph = speed_kph_per_rpm * axle_rpm;
目前还没有关于此计算的用户评价。