mavlink / mavlink2rest

mavlink2rest creates a REST server that provides mavlink information from a mavlink source
MIT License
78 stars 27 forks source link

Unable to ARM the drone #101

Closed sundaram123krishnan closed 5 months ago

sundaram123krishnan commented 5 months ago

I am able to send POST request, Screenshot from 2024-04-26 22-25-29 i can see the output as well, But the drone is not getting armed

patrickelectric commented 5 months ago

Did you check this example ?

https://github.com/mavlink/mavlink2rest?tab=readme-ov-file#request-vehicle-to-be-armed

sundaram123krishnan commented 5 months ago

yaa i did referred to that example only, this is the request i sent curl --request POST http://172.22.254.115:8088/v1/mavlink -H "Content-Type: application/json" --data \ '{ "header": { "system_id": 1, "component_id": 1, "sequence": 0 }, "message": { "type":"COMMAND_LONG", "param1": 1.0, "param2": 0.0,"param3":0.0,"param4":0.0,"param5":0.0,"param6":0.0,"param7":0.0, "command": { "type": "MAV_CMD_COMPONENT_ARM_DISARM" }, "target_system": 1, "target_component": 1, "confirmation": 1 } }' --verbose

sundaram123krishnan commented 5 months ago

Thx for ur kind response, it works now