mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
Added extension piece of code for handling the mavlink mocker
This commit is contained in:
17
src/lib.rs
17
src/lib.rs
@@ -1,5 +1,7 @@
|
||||
use arma_rs::{arma, Extension, Group};
|
||||
use rustls::crypto::aws_lc_rs;
|
||||
mod mavlink_mock;
|
||||
mod mdns;
|
||||
mod structs;
|
||||
mod tcp;
|
||||
mod tests;
|
||||
@@ -39,6 +41,16 @@ pub fn init() -> Extension {
|
||||
.command("local_ip", utils::address::get_local_address)
|
||||
.command("uuid", utils::uuid::get_uuid)
|
||||
.command("log", utils::log::log_info)
|
||||
.group(
|
||||
"mavlink_mock",
|
||||
Group::new().command("send_uas_telemetry", mavlink_mock::send_uas_telemetry),
|
||||
)
|
||||
.group(
|
||||
"mdns",
|
||||
Group::new()
|
||||
.command("start_uas_advertisement", mdns::start_uas_advertisement)
|
||||
.command("stop", mdns::stop),
|
||||
)
|
||||
.group(
|
||||
"udp_socket",
|
||||
Group::new()
|
||||
@@ -61,7 +73,10 @@ pub fn init() -> Extension {
|
||||
.command("eud", tcp::cot::send_eud_cot)
|
||||
.command("marker", tcp::cot::send_marker_cot)
|
||||
.command("digital_pointer", tcp::cot::send_digital_pointer_cot)
|
||||
.command("chat", tcp::cot::send_message_cot),
|
||||
.command("chat", tcp::cot::send_message_cot)
|
||||
.command("uas_platform", tcp::cot::send_uas_platform_cot)
|
||||
.command("uas_video", tcp::cot::send_uas_video_cot)
|
||||
.command("uas_sensor", tcp::cot::send_uas_sensor_cot),
|
||||
)
|
||||
.group(
|
||||
"draw",
|
||||
|
||||
Reference in New Issue
Block a user