Emerito Active Member Licensed User Longtime User Feb 8, 2021 #1 Using the sensors of the mobile I see its possible movements in the three axes x, y, z. But suppose that the mobile is in a car and the axles do not coincide with the axles of the car. By looking at the new sensor readings, can you tell the front and side lean of the car from the initial readings? When the axes of the two coincide, for example, assuming that the mobile is embedded in the dashboard of the vehicle, the readings are direct (the new ones minus the old ones), but, logically, when they do not coincide, they are not. Could you help me? What plans would they have to make? Greetings.
Using the sensors of the mobile I see its possible movements in the three axes x, y, z. But suppose that the mobile is in a car and the axles do not coincide with the axles of the car. By looking at the new sensor readings, can you tell the front and side lean of the car from the initial readings? When the axes of the two coincide, for example, assuming that the mobile is embedded in the dashboard of the vehicle, the readings are direct (the new ones minus the old ones), but, logically, when they do not coincide, they are not. Could you help me? What plans would they have to make? Greetings.
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Feb 9, 2021 #21 Emerito said: When you talk about the programming of the inclinometer application, is there something published in that regard? Click to expand... Sorry, I don't have B4A similar app, but you can see other examples in Java code like this so you can gain more info about. Upvote 0
Emerito said: When you talk about the programming of the inclinometer application, is there something published in that regard? Click to expand... Sorry, I don't have B4A similar app, but you can see other examples in Java code like this so you can gain more info about.
Emerito Active Member Licensed User Longtime User Feb 9, 2021 #22 that's my problem, that I only use the Orientation sensor, where can I see how the remaining sensors are used for my purpose? Upvote 0
that's my problem, that I only use the Orientation sensor, where can I see how the remaining sensors are used for my purpose?
Emerito Active Member Licensed User Longtime User Feb 9, 2021 #23 HAH said: Sorry, I don't have B4A similar app, but you can see other examples in Java code like this so you can gain more info about. [/CITAR] Thanks, that's exactly what I wanted to do. It's a shame I don't know java, but I'll keep trying. Greetings. Click to expand... Upvote 0
HAH said: Sorry, I don't have B4A similar app, but you can see other examples in Java code like this so you can gain more info about. [/CITAR] Thanks, that's exactly what I wanted to do. It's a shame I don't know java, but I'll keep trying. Greetings. Click to expand...
thetahsk Active Member Licensed User Longtime User Feb 9, 2021 #24 Emerito said: ... Click to expand... This is your starting point Orientation and accelerometer The attached program displays the values of the different sensors: It creates a PhoneSensors object for each type of sensor. As you can see in the attached code, two Maps are used to hold the phone sensors and the other required data. This way there is no need to write any duplicate code. A... www.b4x.com Upvote 0
Emerito said: ... Click to expand... This is your starting point Orientation and accelerometer The attached program displays the values of the different sensors: It creates a PhoneSensors object for each type of sensor. As you can see in the attached code, two Maps are used to hold the phone sensors and the other required data. This way there is no need to write any duplicate code. A... www.b4x.com
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Feb 10, 2021 #26 Important notice: I installed many clinometer apps to inspire some ideas, I found all their normal position is not horizontal as we discussed here!! All in up-down vertical position. and all values will be changed accordingly. Upvote 0
Important notice: I installed many clinometer apps to inspire some ideas, I found all their normal position is not horizontal as we discussed here!! All in up-down vertical position. and all values will be changed accordingly.
Emerito Active Member Licensed User Longtime User Feb 10, 2021 #27 HAH said: Todo en posición vertical arriba-abajo Click to expand... Totally agree. I will keep looking for some code to help me. Upvote 0
HAH said: Todo en posición vertical arriba-abajo Click to expand... Totally agree. I will keep looking for some code to help me.