2020-06-27 (Sa) InCompass

I changed the calibration function so it wouldn't use lists anymore. I came up with a more straightforward solution to add ten consecutive readings and divide the result by ten. I was doing this before, but I lost the ability to recall every point. The new calculation didn't help the results.

 Next, I looked closely at the formula, and I noticed that I couldn't be sure everything was happening in the correct order. To ensure the calculation executed the way I wanted, I broke it up into steps and displayed the working values each time I created a new action. One time, I found that I was dividing a small number by a large number, but I didn't want a tiny fraction, so I got rid of the big divisor, which would have wrecked things when I converted to whole numbers.

My problems largely stemmed from the equation executing out of order because I finally got some consistent output. I displayed the rotation angle on the screen, twisted and turned, and the numbers tracked. When I turned to my left, the result showed "90." I hope this means that I am doing things right because it would be an awfully big coincidence that turning ninety-degrees resulted in a "90." The display is also divided by 1000, so the gyroscope can measure 1/1000th of a degree. Fractional numbers are still wild, so I have not been displaying them.

I changed the display to capitalize on the clean results, and now the text rotates when the device spins, so the label appears stationary on the moving screen. There is a short video demonstration.
Rotating text angle

The rest of the posts for this project have been arranged by date.
Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.
2020-06-26

Comments