Hi,
I would like create a landing guidance and I donβt know what is the right way to do it.
The use case is to land move drone above a specific image (tag) and change mode to land (landing.normal). So I created a mission with a guidance command and a new guidance mode to move drone above the tag.
Now how I can send event from guidance to fsup to say the target is reached ?
I see this topic Stop rotation when exiting mode - #2 by Ronan but there is no exemple to made this neither example in documentation.
Thanks.
3 Likes
Thatβs not really the answer I was looking for
I find another solution.
The AirSDK documentation has been updated since the latest 7.5 release (January 13).
This release introduce a new command line tool βairsdk-cli β that is meant to simplify the development process of AirSDK missions.
This tool expects a simplified (single git repo) source tree as shown is the updated airsdk-samples βhelloβ mission :
βββ hello
β βββ fsup
β β βββ flying
β β β βββ __init__.py
β β β βββ stage.py
β β βββ ground
β β β βββ __init__.py
β β β βββ stage.py
β β βββ __init__.py
β β βββ mission.py
β β βββ uid.py
β βββ guidance
β β βββ hello
β β βββ hello.py
β βββ mission.yaml
β βββ msghub
β β βββ parrot
β β β βββ missions
β β β βββ samples
β β β βββ hello
β β β βββ airsdk
β β β βββ messages.proto
β β βββ samples
β β β βββ hello
β β β βββ cv_service
β β β β βββ messages.proto
β β β βββ guidance
β β β βββ messages.proto
β β βββ tests
β β βββ hello_test.py
β βββ services
β βββ cv-service
β βββ processing.cpp
β βββ processing.h
β βββ README.md
β βββ sample.cpp
Like in this example you should:
Create your own βmessages.protoβ in the βmsghubβ subdirectory of your mission.
Declare your βmsghubβ package in your mission.yaml file:
msghub:
- name: guidance
include_path: samples/hello/guidance
Import your msghub and/or protobuf Python modules in your mission.py fsup plugin file.
Register a message observer in your fsup plugin .
In your guidance plugin, create a MessageSender object and use it to send your message to your fsup plugin.
airsdk build
to build your mission
airsdk install
to install your mission (you should first have enabled the direct connection mode from FreeFlight 7)
system
Closed
February 11, 2023, 12:04pm
5
This topic was automatically closed after 30 days. New replies are no longer allowed.