Can Inertial Sensor be used in Okapilib

I am experimenting with the odometry code in Okapi. Is it possible to use the new Inertial sensor in the chassis controller builder?

No, OkapiLib does support the inertial sensor or gyro using the ChassisControllerBuilder.

2 Likes

So as a follow up question, Is it possible to define a “sensor”. Can I provide data using the pros Imu functions in a seperate task to act as gyro data?

Is it possible to define a “sensor”

I have no idea what this means.

Can I provide data using the pros Imu functions in a seperate task to act as gyro data?

Yes. Nothing is stopping you from using the IMU in your own code.

I am saying is there a way to use external sensors in a task and pass that information to okapilib? If there is no support for gyros in the odometry, are there any plans to add this feature?

So if mentor programing is illegal why isn’t okapi? Just wondering

A mentor is a team by team basis thing while open libraries and tools can be used by anyone. In the real world, you’re not going to always have a mentor there helping you, but you do have the power of online resources.

3 Likes

Let’s keep this on topic.

1 Like

There aren’t any easy ways to do that. If you know enough C++ and OO design principles, I think you can figure it out.

I don’t have any plans to add it in the future.

1 Like

Thanks @rbenasutti. Our team will keep this in mind.