Thanks @allObjects. You are right and I think i have it sussed.
The alpha/compass was a red herring I also came to conclusion it is not possible to use that alone. It seems the beta data will give me what I need as it still works when phone is held landscape and when tilted, I didn't cotton on to that initially.
Re the other controls, the screen will display an SVG steering wheel. With the following controls start/stop, toot, honk (we have a buzzer as horn, which also toots when connected to wifi), and drive reverse. I'm building it as a riot.js component for easy implementation & reuse so will share when done.
I've attached a pic showing of the WIP wheel and also attached the "new" car. Made some good progress since your help in the other thread, and it's been so easy to work on - look at all the space!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks @allObjects. You are right and I think i have it sussed.
The alpha/compass was a red herring I also came to conclusion it is not possible to use that alone. It seems the beta data will give me what I need as it still works when phone is held landscape and when tilted, I didn't cotton on to that initially.
Re the other controls, the screen will display an SVG steering wheel. With the following controls start/stop, toot, honk (we have a buzzer as horn, which also toots when connected to wifi), and drive reverse. I'm building it as a riot.js component for easy implementation & reuse so will share when done.
I've attached a pic showing of the WIP wheel and also attached the "new" car. Made some good progress since your help in the other thread, and it's been so easy to work on - look at all the space!
2 Attachments