static void display_offsets_and_scaling() { const Vector3f &accel_offsets = ins.get_accel_offsets(); const Vector3f &accel_scale = ins.get_accel_scale(); const Vector3f &gyro_offsets = ins.get_gyro_offsets(); // display results hal.console->printf("\nAccel Offsets X:%10.8f \t Y:%10.8f \t Z:%10.8f\n", (double)accel_offsets.x, (double)accel_offsets.y, (double)accel_offsets.z); hal.console->printf("Accel Scale X:%10.8f \t Y:%10.8f \t Z:%10.8f\n", (double)accel_scale.x, (double)accel_scale.y, (double)accel_scale.z); hal.console->printf("Gyro Offsets X:%10.8f \t Y:%10.8f \t Z:%10.8f\n", (double)gyro_offsets.x, (double)gyro_offsets.y, (double)gyro_offsets.z); }
static void display_offsets_and_scaling() { Vector3f accel_offsets = ins.get_accel_offsets(); Vector3f accel_scale = ins.get_accel_scale(); Vector3f gyro_offsets = ins.get_gyro_offsets(); // display results hal.console->printf_P( PSTR("\nAccel Offsets X:%10.8f \t Y:%10.8f \t Z:%10.8f\n"), accel_offsets.x, accel_offsets.y, accel_offsets.z); hal.console->printf_P( PSTR("Accel Scale X:%10.8f \t Y:%10.8f \t Z:%10.8f\n"), accel_scale.x, accel_scale.y, accel_scale.z); hal.console->printf_P( PSTR("Gyro Offsets X:%10.8f \t Y:%10.8f \t Z:%10.8f\n"), gyro_offsets.x, gyro_offsets.y, gyro_offsets.z); }