차속 펄스 주기, 주파수 및 차속
작성자: 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;
이 계산에 대한 고객 피드백이 아직 없습니다.