-
1046.-Plane-Spotting
大多数自行车速度表工作通过使用霍尔效应传感器固定在自行车前叉。磁铁是附加到前轮上的辐条之一,它将与霍尔效应开关一次革命的车轮。速度计监测传感器计数轮革命。如果知道车轮的直径,距离可以很容易地计算如果你知道有多少革命的车轮。此外,如果时间完成革命,平均速度也可以计算出来。
对于这个问题,您将编写一个程序来确定总距离(英里)和平均速度(英里每小时)考虑到车轮直径,革命的数量和总时间的旅行。你可以假定前轮从未离开地面,并没有下滑或打滑。(Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it will line up with the Hall Effect switch once per revolution of the wheel. The speedometer monitors the sensor to count wheel revolutions. If the diameter of the wheel is known, the distance traveled can be easily be calculated if you know how many revolutions the wheel has made. In addition, if the time it takes to complete the revolutions is known, the average speed can also be calculated.
For this problem, you will write a program to determine the total distance traveled (in miles) and the average speed (in Miles Per Hour) given the wheel diameter, the number of revolutions and the total time of the trip. You can assume that the front wheel never leaves the ground, and there is no slipping or skidding.)
- 2013-12-21 14:06:26下载
- 积分:1
-
串口输出GPS数据 (地图值)
说明: STM32F4+HAL库+GPS+地图值,在串口显示(STM32F4+HAL Library+GPS+Map Value, Displayed in Serial Port)
- 2020-07-23 08:58:45下载
- 积分:1
-
51P6264
通过6264扩展51单片机的存储器,文件包含源代码,可以在keil下编译。(By 6264 expand the memory chip 51, the file contains the source code, in keil compiler.)
- 2011-10-31 17:26:25下载
- 积分:1
-
TIM1andADC3andDMA
说明: 使用HAL库实现TIM1_CC1定时触发ADC3的温度采集通道,并将采集的数据通过DMA传输到SDRAM,从而实现特定频率采样存储(The temperature acquisition channel of adc3 is triggered by TIM1 CC1 timing, and the collected data is transferred to SDRAM through DMA, so as to realize sampling and storage at specific frequency)
- 2020-09-27 18:37:45下载
- 积分:1
-
SPH
SPH相关的程序源代码,希望能帮到大家,谢谢(SPH-related source code, I hope to help everyone)
- 2014-12-04 22:10:42下载
- 积分:1
-
3.2.5-EDMA
EMDA控制器可以在没有cpu的参与下完成映射存储空间的数据传输,这些数据的传输可以是片内外设,片内存储器之间。(EMDA controller can be done without the participation of CPU mapping storage space of data transmission, the data transmission can be set inside and outside, between internal storage.)
- 2016-04-26 23:13:24下载
- 积分:1
-
z
说明: 足球机器人小车总体设计思想及其单片机选型(The soccer robot car overall design thinking its microcontroller selection)
- 2013-03-26 10:18:45下载
- 积分:1
-
CDQ5
C语言编写的pic16f876a单片机程序,用来做电池充放电,调试成功。(The program of C language with pic16f876a microcontroller , used for battery charging and discharging, and has been proved successful.)
- 2013-12-24 09:58:56下载
- 积分:1
-
DAvE_XC866_v2[1].3
RF1100无线模块与英飞凌CX8868位微控单片机(i can t)
- 2011-10-08 16:00:59下载
- 积分:1
-
DPM_BODY_FORCE
It can be used to simulate body force in Discrete Particle Model (DPM) in ANSYS FLUENT v14.5
- 2014-04-16 10:02:48下载
- 积分:1