車速パルス周期と周波数と車速
作者: 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 / (車軸1回転当たりのパルス数);
/* 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 / (車軸1回転当たりのパルス数);
/* JIS D5601 自動車用スピードメータ規格 */
/* 637rpm -> 60km/h */
/* 1rpm当たりの時速 = 60 / 637 */
speed_kph_per_rpm = 60 / 637;
/* 車速 */
speed_kph = speed_kph_per_rpm * axle_rpm;
この計算についてお客様の声はまだありません。