示例#1
0
//根据实际传过来的水平旋转角度,调整水平台,以较快速度转到实际水平台的起始角度/转台回到起始原点
e_int32 lm_turntable_turn(e_float64 angle) {
	int ret, state;
	state = pause_loop();
	ret = hl_turntable_turn(lm->lc, angle);
	resume_loop(state);
	return ret;
}
/*
 * Class:     com_hd_internal_Control
 * Method:    hl_turntable_turn
 * Signature: (JD)I
 */
JNIEXPORT jint JNICALL Java_com_hd_internal_Control_hl_1turntable_1turn
(JNIEnv *env, jclass clazz, jlong priv, jdouble p1)
{
	int ret;
	laser_control_t* control = (laser_control_t*) priv;
	e_assert(control!=NULL, 0);
	ret = hl_turntable_turn(control, p1);
	e_assert(ret>0, 0);
	return 1;
}