SetRoiCommand and SetViewModeCommand

Hello,
I use groundSDK on android and i build my Waypoints with these steps:

  1. create SetRoiCommand with my desired ROI.
  2. create SetViewModeCommand and setting it to ROI.
  3. create NavigateToWaypointCommand with the bearing between my starting point and the ROI.

What happens is that the NavigateToWaypointCommand ignores the ROI and just stays with its Yaw from the start.
I looked at Mavlink’s docs and i saw that in NavigateToWaypoint if you put Double.NaN in the yaw parameter it looks with its SetViewModeCommand but when i do that the aircraft crashes to the ground.

How can i Navigate to a waypoint and look at a ROI that i choose all the way?