Searched refs:flow (Results 1 – 4 of 4) sorted by relevance
47 upm::GroveWFS* flow = new upm::GroveWFS(2); in main() local50 flow->clearFlowCounter(); in main()51 flow->startFlowCounter(); in main()57 uint32_t millis = flow->getMillis(); in main()58 uint32_t flowCount = flow->flowCounter(); in main()60 float fr = flow->flowRate(); in main()71 flow->stopFlowCounter(); in main()76 delete flow; in main()
40 upm_grovewfs.GroveWFS flow = new upm_grovewfs.GroveWFS(2); in main() local42 flow.clearFlowCounter(); in main()43 flow.startFlowCounter(); in main()46 System.out.print("Millis: " + flow.getMillis() + " FlowCount: " + flow.flowCounter()); in main()47 System.out.println(" Flow Rate: " + flow.flowRate() + " LPM"); in main()
118 uint32_t flow = flowCounter(); in flowRate() local121 float flowRate = (float(flow) * 7.5) / ((float(millis) / 1000.0) * 60.0); in flowRate()
2 set (libdescription "upm grove water flow sensor module")