dronefleet / mavlink

A Java API for MAVLink communication
MIT License
110 stars 67 forks source link

unrecognized field type java.util.ArrayList #61

Closed tadjinker closed 3 years ago

tadjinker commented 3 years ago

Hello, i'm having a problem with my program, when i use SetAttitudeTarget with quaternions, i get Exception in thread "Thread-1" io.dronefleet.mavlink.serialization.MavlinkSerializationException: unrecognized field type java.util.ArrayList

my code:

`List q1 = new ArrayList(); q1.add(1.0f); q1.add(0.0f); q1.add(0.0f); q1.add(0.0f);

    SetAttitudeTarget.Builder myBuilder = SetAttitudeTarget.builder();
            myBuilder.timeBootMs(System.currentTimeMillis() - start);
            myBuilder.targetSystem(TARGET_SYSTEM_ID);
            myBuilder.typeMask(6);
            myBuilder.q(q1);
            myBuilder.thrust(thrust);
            SetAttitudeTarget attTarg = myBuilder.build();
    try {
        connection.send2(MAV_COMP_ID_ONBOARD_COMPUTER, COMPONENT_ID, attTarg);
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }`
tadjinker commented 3 years ago

I'm just stupid, i didn't saw that there was a new update some days ago, it works now x)