ネットワークアップデート機能とか、Pachubeへの情報登録とかの処理を追加しています

Dependencies:   Terminal EthernetNetIf Pachube TextLCD mbed ConfigFile FirmwareUpdater

Committer:
abe00makoto
Date:
Mon Jun 06 19:56:43 2011 +0000
Revision:
1:1eb67d074bed
Parent:
0:a62f36392b9b
add set_time function. for fist use mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
abe00makoto 0:a62f36392b9b 1 #include "geigercounter.h"
abe00makoto 0:a62f36392b9b 2
abe00makoto 0:a62f36392b9b 3
abe00makoto 0:a62f36392b9b 4
abe00makoto 0:a62f36392b9b 5 float Geigercounter::getcps()
abe00makoto 0:a62f36392b9b 6 {
abe00makoto 0:a62f36392b9b 7 if(_geigerrun)_stoptime=time(NULL);
abe00makoto 0:a62f36392b9b 8 int seconds=_stoptime-_starttime;
abe00makoto 0:a62f36392b9b 9 float cps=(float)_count/(float)seconds;
abe00makoto 0:a62f36392b9b 10 return cps;
abe00makoto 0:a62f36392b9b 11 }
abe00makoto 0:a62f36392b9b 12
abe00makoto 0:a62f36392b9b 13 float Geigercounter::getcpm()
abe00makoto 0:a62f36392b9b 14 {
abe00makoto 0:a62f36392b9b 15 return this->getcps()*60.0;
abe00makoto 0:a62f36392b9b 16 }