setRoll

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

Sets the current roll value.

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

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

See also

#getMaxPitchRoll()

#getMaxPitchRoll()

Parameters

value

the new pitch roll to set