Пример #1
0
e_float64 lm_turntable_get_angle() {
	e_float64 ret;
	int state = pause_loop();
	ret = hl_turntable_get_angle(lm->lc);
	resume_loop(state);
	return ret;
}
Пример #2
0
int getAngle() {
	lm->usec_timestamp = GetTickCount();
	lm->angle = hl_turntable_get_angle(lm->lc);
	if (lm->dm)
		dm_write_meta(lm->dm, lm->usec_timestamp, "AGL", "%8.4f",
				lm->angle);
}
Пример #3
0
/*
 * Class:     com_hd_internal_Control
 * Method:    hl_turntable_get_angle
 * Signature: (J)D
 */
JNIEXPORT jdouble JNICALL Java_com_hd_internal_Control_hl_1turntable_1get_1angle
(JNIEnv *env, jclass clazz, jlong priv)
{
	jdouble ret;
	laser_control_t* control = (laser_control_t*) priv;
	e_assert(control!=NULL, 0);
	ret = hl_turntable_get_angle(control);
	return ret;
}
Пример #4
0
int getAngle() {
	lm->angle_usec_timestamp = GetTickCount();
	lm->angle = hl_turntable_get_angle(lm->lc);
	if (lm->dm)
		dm_write_tunable(lm->dm, lm->angle_usec_timestamp, lm->angle);
}