General information
Category:
Coding, syntax & commands
>>>>
>>>>All now working smoothly (literally). I'm currently recalculating the average every time a new orientation event comes in. Processor seems to cope (g) and it makes for a very realistic damping effect.
>>>>
>>>>Had a few moments panic but it turned out the device compass needed recalibrating - was getting some *very* strange results beforehand tho.
>>>>
>>>
>>>Sure it wasn't on your way from the pub to home ?
>>
>>No. Just tried it coming back from the pub. Worked perfectly. Just led me into the ditch a couple of times :-}
>
>Could have been the beer
>
>>>
>>>>Thanks for the input and suggestions......
>>>
>>>Anytime - refreshed a bit of math
>
>
>
>Come to think of it
>
>> I'm currently recalculating the average every time a new orientation event comes in
>
>Isn't that a bit of an overkill - if you have to display it every second (or 5 seconds) ?
Just profiled the CPU usage on the Nexus. The whole averaging display cycle is only using about 2.5% of processing time - so I guess it's not likely to be a problem :-}
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only