You are reading a single comment by @allObjects and its replies. Click here to read the full conversation.
  • With compas information alone you will never get there, because you have no information how the phone is relative to the main orientation of the kid's body... whis shold not matter in the first place... never ever... Why: Because your son is not sitting in/on he car. With any conventional car remote control, the contol has two (2) components that 'turn' relative to one another and the angle between the two components is used for the control/steering inforation. If the phone is slightly tilted like any real steering wheel is for ergonomic reasons, you can use all three parameters (https://www.html5rocks.com/en/tutorials/device/orientation/) to calculate steering information.

    (Conventional alternative is a UI on your phone display that shwos the controls - steering wheel and other controls - and responds to multi touch events... not an easy task ether)

    The other question then is: how do you control the forward / reverse speed / acceleration / deceleration.

    Wor st case your son has to let go the classic steering wheel concept and let the car behave more like a bearing ball pled on the display of the hone screen.

About

Avatar for allObjects @allObjects started