finding orientation using getRotationMatrix() and getOrientation()

后端 未结 5 824
天命终不由人
天命终不由人 2020-12-31 14:13

Im trying to get the direction of the vector pointing out of the camera, with respect to magnetic north. I\'m under the impression that I need to use the values returned fro

5条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 15:05

    Because I was new to android I was using toast to display the information on the screen. I changed it to just update text on a view and that seemed to fix it. I also figured out that what I assumed the orientVals actually were is correct. For what I need the roll is not used. Also didnt realize there was a way to convert from rad to deg built in so I just used that.

提交回复
热议问题