Developing Android Application 7
Weekly Review:
Finally I finished with accelerometer. This time I changed my method of dealing with that question. Instead of counting distance moved, I preferred to count step or changes in accelerometer, So, I used accelerometer data to find general linear acceleration and if it was greater 0.48(probably value required to make a step). Then I added located the orientation by orientation sensor and moved towards right angle. This time, I considered that I would move in labyrinth(only one direction move) and collected data of changing angle in degrees by orientation sensor and combined it accelerometer values. Later I drew background by matrices of true(wall) and false(empty space) and by using maze located my target on initial position, If I can move to the preferred direction, sensor data's will change my position in map matrices and redraw it. I located initial position(where we can move) of each map by saving index by preferences table. Also, I added background music. I uploaded my initial movement project (Direct) in DropBox
Comments