Overclocking example seems out of date

Discussion related to "under the hood" OpenMV topics.
User avatar
Posts: 129
Joined: Fri Dec 21, 2018 5:22 pm

Overclocking example seems out of date

Postby kwiley » Fri Feb 01, 2019 5:35 pm

The overclocking example calls get_frequency() but the current options appear to be:

Code: Select all

>>> import cpufreq
>>> cpufreq.
__class__       __name__        set_frequency
get_current_frequencies         get_supported_frequencies
>>> cpufreq.get_current_frequencies()
(216, 216, 54, 108)
>>> cpufreq.get_supported_frequencies()
[120, 144, 168, 192, 216]
Aside from the fact that the example calls a function that no longer exists, I'm not sure how to interpret the results. When get_current_frequencies() returns a tuple of four values, which one is the actual answer?!
User avatar
Posts: 1168
Joined: Sun May 24, 2015 3:53 pm

Re: Overclocking example seems out of date

Postby iabdalkader » Fri Feb 01, 2019 5:59 pm

Yes the example is outdated, the updated example is here:

https://github.com/openmv/openmv/blob/m ... scaling.py

It's still new so it will be included in the next IDE release. This example should explain the values returned by get_current_frequencies as well. Note the module never actually supported overclocking, it just supports lowering the frequency.

Return to “Technical Discussion”

Who is online

Users browsing this forum: Google [Bot] and 27 guests