Giter VIP home page Giter VIP logo

ugcs-java-sdk's Introduction

Release

API and client libraries for the UgCS Ground Control Station.

Using as a dependency

Available via the JitPack build:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependency>
    <groupId>com.github.UgCS</groupId>
    <artifactId>ugcs-java-sdk</artifactId>
    <version>3.7</version>
</dependency>

Running Samples

Build a package.

$ mvn clean package

Go to the output directory containing jars and client.properties file.

$ cd target/ugcs-java-sdk

Modify the client.properties if necessary. Make sure the target UgCS server instance is running.

Start a telemetry listener for specified amount of seconds.

$ java -cp .;* com.ugcs.ucs.client.samples.ListenTelemetry <args>
ListenTelemetry -t waitSeconds

        Listen to all telemetry, received by the UgCS server
        for a specified amount of time in seconds.

Example:

        ListenTelemetry -t 10

Send a specified command to the vehicle.

$ java -cp .;* com.ugcs.ucs.client.samples.SendCommand <args>
SendCommand -c commandCode [-a commandArgument=value]* vehicleName

        List of supported command codes:

          * arm
          * disarm
          * auto
          * manual
          * guided
          * joystick
          * takeoff_command
          * land_command
          * emergency_land
          * return_to_home
          * mission_pause
          * mission_resume
          * waypoint (latitude, longitude, altitude_amsl/altitude_agl, altitude_origin,
                      ground_speed, vertical_speed, acceptance_radius, heading)
          * direct_vehicle_control (pitch, roll, yaw, trottle)

        For more details on the supported commands and its arguments and expected
        vehicle behavior see UgCS User Manual ("Direct Vehicle Control" section).
        Also note that this tool support a limited subset of the vehicles commands:
        camera and ADS-B commands are not supported, but can be easily implemented
        by modifying a sample source.

Examples:

        SendCommand -c arm "EMU-101"
        SendCommand -c guided "EMU-101"
        SendCommand -c waypoint -a latitude=0.99442 -a longitude=0.42015 -a altitude_agl=100.0 -a ground_speed=5.0 -a vertical_speed=1.0 "EMU-101"

Generate and try to upload a single waypoint mission to the vehicle.

$ java -cp .;* com.ugcs.ucs.client.samples.UploadSingleWaypointRoute <args>
UploadSingleWaypointRoute -w waypoint [-s speed] vehicleName

        Waypoint is specified as "lat,lon,alt" string, with respective values
        in degrees (latitude and longitude) and AGL meters (altitude). Positive
        directions for latitude and longitude are North and East.

Example:

        UploadSingleWaypointRoute -w "56.9761591,24.0730345,100.0" -s 5.0 "EMU-101"

ugcs-java-sdk's People

Contributors

episarenko avatar kshavrin avatar ikurokhtin avatar dkvashnin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.