AHRS type replacement

9 views
Skip to first unread message

chen.mi...@bloomfield.org

unread,
Aug 16, 2017, 11:50:23 PM8/16/17
to navx-mxp
How do you use the NavxMicroNavigationSensor type given by FTC to declare a new navx_device.

This is the code that we normally use to create a new navx_device and I want to find a way to replace the AHRS and instead use this new type to create a new navx_device.

private AHRS navx_device;

navx_device = AHRS.getInstance(hardwareMap.deviceInterfaceModule.get("dim2"),
NAVX_DIM_I2C_PORT,
AHRS.DeviceDataType.kProcessedData,
sensor_update_rate_hz);

This is created with Java.

admin

unread,
Aug 17, 2017, 2:21:15 PM8/17/17
to navx-mxp
Hi Chris,

There is an example, named SensorKLNavxMicro.java, which appears to show how to use this new interface to the navX-Micro.

Within the latest ftc_app github source tree, this file is located at:  FtcRobotController\src\main\java\org\firstinspires\ftc\robotcontroller\external\samples

Please note that this new interface was created by Robert Atkinson who is an important contributor to the FTC software library,.  Here at Kauai Labs we didn't develop this new interface - but we'll do our best to help if there are issues.

- scott
Reply all
Reply to author
Forward
0 new messages