1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-11 19:29:20 +08:00
Ron Evans 03e3dcd9b8 tello: ability to send real-time stick commands
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-13 13:50:11 +02:00

20 lines
426 B
Go

package tello
import (
"testing"
"gobot.io/x/gobot/gobottest"
)
func TestMinidroneValidatePitchWhenEqualOffset(t *testing.T) {
gobottest.Assert(t, ValidatePitch(32767.0, 32767.0), 100)
}
func TestMinidroneValidatePitchWhenTiny(t *testing.T) {
gobottest.Assert(t, ValidatePitch(1.1, 32767.0), 0)
}
func TestMinidroneValidatePitchWhenCentered(t *testing.T) {
gobottest.Assert(t, ValidatePitch(16383.5, 32767.0), 50)
}