車速脈衝週期、頻率與車速
作者: 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 */
/* 每 1 rpm 對應的時速 = 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 */
/* 每 1 rpm 對應的時速 = 60 / 637 */
speed_kph_per_rpm = 60 / 637;
/* 車速 */
speed_kph = speed_kph_per_rpm * axle_rpm;
目前還沒有關於此計算的用戶評價。