static int sensor_link_setup(struct media_entity *entity,
				const struct media_pad *local,
				const struct media_pad *remote, u32 flags)
{
	/* TODO : If need */
	sensor_info("not supported yet");
	return 0;
}
FREObject gyroscopeStart(FREContext ctx, void* functionData, uint32_t argc,
		FREObject argv[]) {

	bool isSuccess = false;

	// Set the maximum rate of delivery
	sensor_info_t *sensorInfo = NULL;

	if (sensor_info(SENSOR_TYPE_GYROSCOPE, &sensorInfo)) {
		unsigned int minimumDelay = sensor_info_get_delay_mininum(sensorInfo);
		sensor_set_rate(SENSOR_TYPE_GYROSCOPE, minimumDelay);

		sensor_info_destroy(sensorInfo);
	}

	// Starts the event loop thread
	shutdown = false;
	pthread_create(&eventThread, NULL, eventLoop, ctx);
	isSuccess = true;

	FREObject result;
	FRENewObjectFromBool(isSuccess, &result);
	return result;
}
static void tasklet_func_flite_str(unsigned long data)
{
	/* TODO: handle flite frame start */
	sensor_info("not supported yet");
}
static int sensor_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
{
	/* TODO : If need */
	sensor_info("not supported");
	return 0;
}
static int sensor_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
{
	/* TODO : If need */
	sensor_info("not supported");
	return 0;
}
예제 #6
0
mock_depth_sensor::mock_depth_sensor()
    : sensor(sensor_info(astra::devices::sensor_type::depth, "depth"))
{
}
예제 #7
0
mock_color_sensor::mock_color_sensor()
    : sensor(sensor_info(astra::devices::sensor_type::color, "color"))
{
}