# java support and examples

Source: https://forum.modalai.com/topic/820/java-support-and-examples
Category: Flight Core and Legacy VOXL (https://forum.modalai.com/category/9/flight-core-and-legacy-voxl)
Tags: flight-deck
Posted: 2022-03-28 05:44:25 UTC by Zeev Mindali
Replies: 3 · Views: 789

## Zeev Mindali · 2022-03-28 05:44:25 UTC

dear all,

where I before purchase the voxl flight deck with camera for testing.
I looking for a solution for a major project that I need.

where I can find some examples written in java.
the main goal is to use it on android based machine
or with web application, using java spring and react.

thanks in advance
zeev.

## Reply by modaltb (ModalAI staff) · 2022-03-28 16:09:03 UTC

Hi Zeev,

We have no Java based references at this time.  We have a pretty easy to use interface (basically, you can read from files, named pipes to be more exact).

Here's some ideas:
https://docs.modalai.com/mpa-services/

Say you want to get IMU data?  Ready from a file:
https://docs.modalai.com/voxl-imu-server/#output-type

`/run/mpa/imu0` and `/run/mpa/imu1` 

Where the interface, for this data type, looks like:

```
typedef struct imu_data_t{
	uint32_t magic_number;  ///< Set to IMU_IMAGE_MAGIC_NUMBER for frame syncing
	float accl_ms2[3];      ///< XYZ acceleration in m/s^2
	float gyro_rad[3];      ///< XYZ gyro rotation in rad/s
	float temp_c;           ///< temp in C, IMU_INVALID_TEMPERATURE_VALUE if no thermometer present
	uint64_t timestamp_ns;  ///< timestamp in nanoseconds, uses system clock_monotonic
} __attribute__((packed)) imu_data_t;
```

## Reply by Zeev Mindali · 2022-03-29 05:29:40 UTC

Hi modaltb,

I have written MAVLink commands interface for java (working on ap and px4)
is there a way in your system (with or without MAVLink commands) to tell the drone move 2m left , 2m up, and so on?

if it have, I can put a purchase for one development kit for testing and development and then to a large number of it.

## Reply by Chad Sweet (ModalAI staff) · 2022-03-29 14:23:15 UTC

There is MAVROS and MAVSDK which might help with what you are looking for
https://docs.modalai.com/mavros
https://docs.modalai.com/mavsdk
