You may find that your Samsung smartphone's compass is not accurate. In most cases, the compass can be calibrated by few steps. This video shows you how to calibrate the compass in less 3 mins. I've tried this method on my Samsung S7 and the compass was successfully calibrated.
I am not sure whether this method works on other models of Samsung smartphones or not.
Ещё видео!