I'm an Industrial Design student creating a turn by turn GPS navigator for running. I want the device give haptic feedback when the runner turns their head in the direction they need to go in order to stay on route. I've had barely any coding experience prior to this so I'm using AI for a majority of the code. So far, I've been able to have the GPS navigator and haptics working, but I'm hung up on getting the head angle accurate. I've tried solutions using the bearing of the runner and basing 0 degrees off of that, using the magnetic field data and reverting the head angle to 0 degrees after a certain amount of time but to no avail. Any suggestions for getting this calculation would be appreciated. Thank you!
That is a very serious mistake. chatbots don't know the coding rules, especially the special cases encountered in microprocessor coding, so they just serve up a misleading mishmash of the training data, scavenged from forums like this one.
You are unlikely to get much help debugging the code on this forum, especially without giving complete details of the sensors, the coordinate systems and algorithms used to compute the desired angle.
Please see the "How to get the best out of this forum" post for the posting rules.
By the way, you will need to define exactly what you mean by "yaw", because conventionally, yaw is a navigational angle defined in a horizontal plane parallel to the Earth's surface at your location, with zero at North and increasing clockwise about a vertical axis.
I'm aware this is bad practice. I just don't have many other options given my timeframe/budget. I'm using v0.dev and am keeping on top of how the logic works to the best of my abilities.
I'm defining yaw as rotation the Z axis, but I see how this is confusing so I updated the title.
The chance that a chatbot will produce code that does what you want is essentially zero.
Yes, I know they cannot deliver results alone. I've been able to create working scripts for the waypoint navigation and specific haptic feedback by using AI for syntax and math. I'm just looking for any suggestions on sensors or filters I can implement to calculate relative head angle.
Ask the AI for schematic and connection diagram too.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.