ADIGyro multiplier

When using the gyro on the TriPort, I use the multiplier when initializing the gyro. The problem is, the reset point changes too. For example -> with a multiplier value of 1, the value jumps from -900 to 0, and when i have a multiplier value of 4, the value jumps from -3600 to 0. However, I can’t use 4 for this, as -3600 is not a full circle in real life.

code:
` pros::Motor left_mtr(1);
pros::Motor right_mtr(2, 1);
pros::ADIGyro gyro (1, 4);
pros::delay(2000);

while (true) {
	pros::lcd::print(0, "%d %d %d", (int(gyro.get_value())) >> 2,
	                 (pros::lcd::read_buttons() & LCD_BTN_CENTER) >> 1,
	                 (pros::lcd::read_buttons() & LCD_BTN_RIGHT) >> 0);
	int left = master.get_analog(ANALOG_LEFT_Y);
	int right = master.get_analog(ANALOG_RIGHT_Y);
            delay(20);
    }

`

1 Like

The multiplier is a “double” so it can be 4.09 or 3.95 etc.

1 Like

Is there a way to change the multiplier?