Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no source code for "libSensors.a" #1

Open
xusong0zju opened this issue Aug 16, 2019 · 2 comments
Open

There is no source code for "libSensors.a" #1

xusong0zju opened this issue Aug 16, 2019 · 2 comments

Comments

@xusong0zju
Copy link

@AndreyBondarev
Problem: There is no source code for "libSensors.a".
I'm developing an application that need obtain different bandwidths simultaneously. The bandwidths was decided by low-pass-filters, especially settiing by the function, platformSelectLPFilter (platformAPI.h).
Though, in "openIMU300-lib" , some API-functions's implementations were found in some c-files, some key functions, such as "platformSelectLPFilter" , "platformEnableMag" etc. , were implemented in "libSensors.a".
I think that's wonderful to outputing multi-bandwidth signal simultaneously. For example, in visual-inertia navigation, the lower-bandwidth signal was suitable for estimating pose, while the higher-bandwidth signal(maybe >50Hz) was suitable for image defuzzification under high-dynamic.
As a result, providing the source codes of libSensors.a, there may be more enhancement and better applications for OpenIMU, and the markets of OpenIMU must be expansive, in the near future.
Waiting in hope......

@AndreyBondarev
Copy link
Collaborator

Thank you for suggestion.
So far on our platform all built-in filters can be disabled like that :

platformSelectLPFilter(0,  0, TRUE);
platformSelectLPFilter(1,  0, TRUE);
platformSelectLPFilter(2,  0, TRUE);

and users can implement their own filters as desired.

@valeriob
Copy link

valeriob commented Dec 2, 2020

I stumbled on this issue looking for how the GetMagData is working, since when we put the device close to some iron it saturate to 1 very quickly. Following the code i arrived at this library, is it true that the method GetSensorsData() populate the following structure ? :

typedef struct {
uint32_t rawSensors[N_RAW_SENS];
double scaledSensors[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame)
int32_t scaledSensors_q27[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame)
uint64_t tstamp; // timestamp of last sample
}sensors_data_t;

If so, what is the function that populates scaledSensors ? Can it be configured ?

I see that both packets z1 and s1 use the scaledSensors in the IMU and HARS apps

void GetMagData_G(double *data)
{
for(int i = 0; i < 3; i++){
data[i] = gSensorsData.scaledSensors[i+XMAG];
}
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants