gpio: removed scaling function from servo driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
53ffbbd2bb
commit
6c027af8d0
|
@ -86,7 +86,3 @@ func (s *ServoDriver) Center() (err error) {
|
|||
func (s *ServoDriver) Max() (err error) {
|
||||
return s.Move(180)
|
||||
}
|
||||
|
||||
func (s *ServoDriver) angleToSpan(angle byte) byte {
|
||||
return byte(angle * (255 / 180))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue