setPitch

abstract fun setPitch(@IntRange(from = "-100", to = 100) value: Int)

Sets the current pitch value.

value is expressed as a signed percentage of the max pitch/roll setting, in range [-100, 100]. -100 corresponds to a pitch angle of max pitch/roll towards ground (copter will fly forward), 100 corresponds to a pitch angle of max pitch/roll towards sky (copter will fly backward).

Note: value may be clamped if necessary, in order to respect the maximum supported physical tilt of the copter.

Parameters

value

the new pitch value to set

See also