Skip to content

Commit

Permalink
Changed imu/gyro latency to 10 ms for all configs--closer to actual v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
jkenney2 committed Jan 9, 2020
1 parent 8612af2 commit a68574c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected void createHardwareMap(){
for (String name: distNames) hardwareMap.put(name, controller.new DistanceSensorImpl());

//Add the BNO055IMUImpl sensor
hardwareMap.put("imu", new BNO055IMUImpl(this, 175));
hardwareMap.put("imu", new BNO055IMUImpl(this, 10));

//Add the ColorSensorImpl sensor
hardwareMap.put("color_sensor", controller.new ColorSensorImpl());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected void createHardwareMap(){
String[] distNames = new String[]{"front_distance", "left_distance", "back_distance", "right_distance"};
for (String name: distNames) hardwareMap.put(name, controller.new DistanceSensorImpl());
//hardwareMap.put("gyro_sensor", controller.new GyroSensorImpl());
hardwareMap.put("imu", new BNO055IMUImpl(this, 175));
hardwareMap.put("imu", new BNO055IMUImpl(this, 10));
hardwareMap.put("color_sensor", controller.new ColorSensorImpl());
hardwareMap.put("back_servo", new ServoImpl());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void createHardwareMap(){
hardwareMap.put("right_motor", new DcMotorImpl(motorType));
String[] distNames = new String[]{"front_distance", "left_distance", "back_distance", "right_distance"};
for (String name: distNames) hardwareMap.put(name, controller.new DistanceSensorImpl());
hardwareMap.put("gyro_sensor", new GyroSensorImpl(this, 175));
hardwareMap.put("gyro_sensor", new GyroSensorImpl(this, 10));
hardwareMap.put("color_sensor", controller.new ColorSensorImpl());
hardwareMap.put("back_servo", new ServoImpl());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected void createHardwareMap(){
String[] distNames = new String[]{"front_distance", "left_distance", "back_distance", "right_distance"};
for (String name: distNames) hardwareMap.put(name, controller.new DistanceSensorImpl());
//hardwareMap.put("gyro_sensor", controller.new GyroSensorImpl());
hardwareMap.put("imu", new BNO055IMUImpl(this, 175));
hardwareMap.put("imu", new BNO055IMUImpl(this, 10));
hardwareMap.put("color_sensor", controller.new ColorSensorImpl());
hardwareMap.put("back_crservo", new CRServoImpl(720));
}
Expand Down

0 comments on commit a68574c

Please sign in to comment.