Skip to content

Conversation

@cal-pratt
Copy link
Contributor

This PR adds 5 new inputs to our ROV from the AltIMU10v3 (consisting of a thermometer, barometer, accelerometer, gyroscope, and magnetometer).

Three new data classes have been added to categorize the sensor output. The current internal temperature and pressure will be re-purposed for this device.

accelerometer -> AccelerationValue
gyroscope  -> AngularVelocityValue
magnetometer -> RotationValue
thermometer -> InternalTemperatureValue
barometer -> InternalPressureValue

@cal-pratt cal-pratt added this to the MATE 2017 milestone Jan 21, 2017
@cal-pratt cal-pratt self-assigned this Jan 21, 2017
@cal-pratt
Copy link
Contributor Author

note, i need to remove PressureValue.kt and use the existing InternalPressureValue.kt

@cal-pratt
Copy link
Contributor Author

note: AltIMUv10Test should be renamed AltIMU10v3Test

// Set buffer to be read and set its index to 0.
byteBuffer.flip();
final ShortBuffer shortBuffer = byteBuffer.asShortBuffer();
// Array was reversed, so x is now last, y second, and z third.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: x last, y second, z first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yus, good catch

Copy link
Contributor

@ConnorWhalen ConnorWhalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good once you make the changes noted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants