Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSoftSerial2 INA226_ver1 mbed-rtos mbed SDFileSystem-RTOS
Fork of keiki2017 by
Diff: Fusokukei.h
- Branch:
- fusokukei
- Revision:
- 15:6966299bea4c
- Parent:
- 13:09e05e7cfca1
- Child:
- 27:d2955f29a3aa
--- a/Fusokukei.h Sat Nov 19 11:00:31 2016 +0000 +++ b/Fusokukei.h Sat Nov 26 01:12:10 2016 +0000 @@ -18,7 +18,7 @@ float air_sum[AIR_SUM_NUM] = {0.0}; class Fusokukei{ - double r; + double air_r; protected: public: @@ -35,8 +35,8 @@ } void calcAirSpeed(float x){ - r = x/150; - air_sum[air_counter % AIR_SUM_NUM] = (float)AIR_K * (float)pow(r, 1 / AIR_N); + air_r = x/150; + air_sum[air_counter % AIR_SUM_NUM] = (float)AIR_K * (float)pow(air_r, 1 / AIR_N); if(air_counter % AIR_SUM_NUM == 0) air_counter = 0; airSpeed_ave = make_ave(air_sum, AIR_SUM_NUM);