Lines Matching full:groverotary
170 //// GroveRotary ////
172 GroveRotary::GroveRotary(unsigned int pin)
182 GroveRotary::~GroveRotary()
187 float GroveRotary::abs_value()
192 float GroveRotary::abs_deg()
194 return GroveRotary::abs_value() * (float) m_max_angle / 1023.0;
197 float GroveRotary::abs_rad()
199 return GroveRotary::abs_deg() * M_PI / 180.0;
202 float GroveRotary::rel_value()
204 return GroveRotary::abs_value() - 512.0;
207 float GroveRotary::rel_deg()
209 return GroveRotary::rel_value() * (float) m_max_angle / 1023.0;
212 float GroveRotary::rel_rad()
214 return GroveRotary::rel_deg() * M_PI / 180.0;