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