@@ -88,7 +88,7 @@ void sendOrientation()
8888 LSM6DSV16X .Get_6D_Orientation_ZL (&zl);
8989 LSM6DSV16X .Get_6D_Orientation_ZH (&zh);
9090
91- if (xl == 1 && yl == 0 && zl == 0 && xh == 0 && yh == 0 && zh == 0 ) {
91+ if (xl == 0 && yl == 0 && zl == 0 && xh == 0 && yh == 1 && zh == 0 ) {
9292 sprintf (report, " \r\n ________________ " \
9393 " \r\n | | " \
9494 " \r\n | * | " \
@@ -99,7 +99,7 @@ void sendOrientation()
9999 " \r\n |________________| \r\n " );
100100 }
101101
102- else if (xl == 0 && yl == 1 && zl == 0 && xh == 0 && yh == 0 && zh == 0 ) {
102+ else if (xl == 1 && yl == 0 && zl == 0 && xh == 0 && yh == 0 && zh == 0 ) {
103103 sprintf (report, " \r\n ________________ " \
104104 " \r\n | | " \
105105 " \r\n | * | " \
@@ -110,7 +110,7 @@ void sendOrientation()
110110 " \r\n |________________| \r\n " );
111111 }
112112
113- else if (xl == 0 && yl == 0 && zl == 0 && xh == 0 && yh == 1 && zh == 0 ) {
113+ else if (xl == 0 && yl == 0 && zl == 0 && xh == 1 && yh == 0 && zh == 0 ) {
114114 sprintf (report, " \r\n ________________ " \
115115 " \r\n | | " \
116116 " \r\n | | " \
@@ -121,7 +121,7 @@ void sendOrientation()
121121 " \r\n |________________| \r\n " );
122122 }
123123
124- else if (xl == 0 && yl == 0 && zl == 0 && xh == 1 && yh == 0 && zh == 0 ) {
124+ else if (xl == 0 && yl == 1 && zl == 0 && xh == 0 && yh == 0 && zh == 0 ) {
125125 sprintf (report, " \r\n ________________ " \
126126 " \r\n | | " \
127127 " \r\n | | " \
@@ -144,7 +144,7 @@ void sendOrientation()
144144 }
145145
146146 else {
147- sprintf (report, " None of the 6D orientation axes is set in accelrometer .\r\n " );
147+ sprintf (report, " None of the 6D orientation axes is set in accelerometer .\r\n " );
148148 }
149149
150150 Serial.print (report);
0 commit comments