cam-s-hunt / osh-node-dev-template

Development project template to create new add-ons and package them into a deployable OSH node
0 stars 0 forks source link

Mavlink Command Error #2

Open cam-s-hunt opened 1 year ago

cam-s-hunt commented 1 year ago

2023-06-20 09:53:55.580 INFO DefaultSystemRegistry [ForkJoinPool.commonPool-worker-2] - System registered: urn:osh:sensor:mavlink:15694398 (0 FOIs, 2 datastreams, 1 command inputs, 0 members)

After arming (using the Mavlink console), attempt to issue a Takeoff command via OSH results in either this message (with no effect on Mavlink):

2023-06-20 10:05:13.267 INFO  MavlinkDriver:4f4f3f38 [ForkJoinPool.commonPool-worker-4] - Sending TAKEOFF command: 22
2023-06-20 10:05:13.268 DEBUG CommandStreamTransactionHandler [ForkJoinPool.commonPool-worker-4] - Sending status -4244139686163125024: CommandStatus { commandID: CmdKey { scope: 0, cmdStreamID: 2544604783869, foiID: 0, issueTime: 2023-06-20T14:05:13.266036873Z, cachedId: null }, reportTime: 2023-06-20T14:05:13.268410247Z, executionTime: [2023-06-20T14:05:13.268367384Z 2023-06-20T14:05:13.268367384Z], statusCode: COMPLETED, progress: -1, message: null, result: null }

or one of several other error messages:

2023-06-20 09:54:03.587 ERROR DefaultSystemRegistry [EventBus-10] - Error dispatching commands to New MAVLink System / navCommands
java.lang.IllegalStateException: Command ID cannot be reassigned

or

2023-06-20 09:53:44.684 ERROR MavlinkDriver:4f4f3f38 [ForkJoinPool.commonPool-worker-2] - Error processing command
org.sensorhub.api.command.CommandException: Cannot execute command
Caused by: java.net.SocketException: Broken pipe

Attempted several other commands (RTL, Goto) and received the following error:

java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1

Attempted to add and execute Land command, and received the following error:

org.sensorhub.api.datastore.DataStoreException: Datastore already contains command stream for the same system, control input and validTime

Attempted to delete the system info in the Federated DB, and got this:

2023-06-20 10:24:25.685 ERROR AdminUIModule:125edb9e [qtp2060275176-25] - Error deleting system java.lang.NullPointerException: Cannot invoke "org.sensorhub.api.ISensorHub.getEventBus()" because the return value of "org.sensorhub.api.database.IObsSystemDatabaseModule.getParentHub()" is null

Attempted to remove the Federated DB, and got this:

image

Did a re-init of Fed DB. Also addded in H2 and added mavlink to it. Remove, re-installed/configured mavlink sensor. Attempting to run it now gives me this:

image

cam-s-hunt commented 1 year ago

When running mavlinproxy/SITL, must configure OSH to use UDP port 14550