AutelSDK / AndroidAdvanceSample

3 stars 3 forks source link

ATTI Mode does not appear to be switched on #14

Open starcheek opened 1 year ago

starcheek commented 1 year ago

When enabling ATTI mode, i still notice drone maintaining it's position (around 50 meters altitude) and the MainFlyState is still using gps.. I receive positive callback that the mode is switched on.

  suspend fun setAttitudeModeEnable(set: Boolean) {
        controller.setAttitudeModeEnable(set, object : CallbackWithNoParam {
            override fun onFailure(p0: AutelError?) {
                Logger.e(p0.toString())
            }

            override fun onSuccess() {
                Timber.d("atti mode enabled $set")
            }
        })
    }

Please help solve this problem.