ネットワークアップデート機能とか、Pachubeへの情報登録とかの処理を追加しています
Dependencies: Terminal EthernetNetIf Pachube TextLCD mbed ConfigFile FirmwareUpdater
geigercounter.cpp
- Committer:
- abe00makoto
- Date:
- 2011-06-06
- Revision:
- 1:1eb67d074bed
- Parent:
- 0:a62f36392b9b
File content as of revision 1:1eb67d074bed:
#include "geigercounter.h" float Geigercounter::getcps() { if(_geigerrun)_stoptime=time(NULL); int seconds=_stoptime-_starttime; float cps=(float)_count/(float)seconds; return cps; } float Geigercounter::getcpm() { return this->getcps()*60.0; }