Finding translation and rotation using M4

Discussion related to "under the hood" OpenMV topics.
edckt
Posts: 2
Joined: Sat Sep 22, 2018 1:39 am

Finding translation and rotation using M4

Postby edckt » Sat Sep 22, 2018 1:53 am

I am new to OpenMV and am using an M4. I am trying to use it to find translational movement and rotational movement. I came across the find_displacement class but it is not supported for the M4. Therefore, I'm wondering if there is an find_displacement equivalent for the M4 camera.
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: Finding translation and rotation using M4

Postby kwagyeman » Sat Sep 22, 2018 3:30 pm

Hi, we removed these features from the M4 camera because of flash space exhaustion to fit the feature. You can re-enable this in our firmware if you modify our code. otherwise, you need to buy the OpenMV Cam M7 or back us for the OpenMV Cam H7.
Nyamekye,
edckt
Posts: 2
Joined: Sat Sep 22, 2018 1:39 am

Re: Finding translation and rotation using M4

Postby edckt » Mon Sep 24, 2018 2:40 am

kwagyeman wrote:
Sat Sep 22, 2018 3:30 pm
Hi, we removed these features from the M4 camera because of flash space exhaustion to fit the feature. You can re-enable this in our firmware if you modify our code. otherwise, you need to buy the OpenMV Cam M7 or back us for the OpenMV Cam H7.
How should I go about re-enabling the library in the firmware?
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: Finding translation and rotation using M4

Postby kwagyeman » Mon Sep 24, 2018 12:00 pm

Just go here and uncomment this line:

https://github.com/openmv/openmv/blob/m ... nfig.h#L61
https://github.com/openmv/openmv/blob/m ... nfig.h#L58

That said, the firmware won't fit once you do that. So, go somewhere else in the code and comment out features that aren't needed for your app. The easiest way to do this is to comment out something here: https://github.com/openmv/openmv/blob/m ... ge.c#L5241 and then the function that the table pointed to in the file.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests