-
Notifications
You must be signed in to change notification settings - Fork 538
Open
Description
Hey! I just saw that you released a new version which contained the following statement for the firmware:
- Allow reading IMU data via the serial protocol
I would like to read all IMU data (accelerometer and gyroscope data in all three directions).
How can I do that?
From what I understood, there are two functions defined in imu.h
- print6Axis is triggered when sending a v or V token. Since
READ_ACCELERATIONis not defined per default and printing the first index ofypr(yaw pitch roll) is commented out, this would return only 2 out of 6 possible values: pitch and roll. - read_IMU is triggered in multiple instances; 1) whenever readEnvironment (such as in the driver's loop function), 2) when the robot is initialized, and 3) in the perform function of src/skill.h which is triggered whenever a skill (triggered by the
kand possiblyKtokens in OpenCat.h) is being performed? All instances requireGYRO_PINto be defined, which is the case by default. However, I do not immediately see how to then retrieve all 6 gyro/acc values.
Is there a way to retrieve acceleration/orientation in all three directions by default or do I have to modify, recompile, and upload the modified firmware?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels