Main Content

removeChannel

Remove MAVLink signing channel

Since R2022a

    Description

    example

    removeChannel(stream,sysid,compid,linkid) adds removes the channel defined by the system ID sysid, component ID compid, and link ID linkid from the MAVLink signing stream stream.

    Examples

    collapse all

    Create a mavlinksigning object to store MAVLink signing channels.

    stream = mavlinksigning;

    Load and list the keys from the keys.env file.

    addmavlinkkeys("keys.env");
    lsmavlinkkeys
    ans = 1x2 string
        "Key1"    "Key2"
    
    

    Add channel with a system ID of 1, component ID of 2, link ID of 3.

    addChannel(stream,1,2,3,"Key1")
    ans = struct with fields:
              Stream: [1x1 mavlinksigning]
            SystemID: 1
         ComponentID: 2
              LinkID: 3
                 Key: "Key1"
           Timestamp: 28771832392337
        CreationTime: 13-Feb-2024 01:45:23
    
    

    Remove the same channel.

    removeChannel(stream,1,2,3)

    Input Arguments

    collapse all

    MAVLink signing stream, specified as a mavlinksigning object.

    System ID, specified as an integer in the range [0, 255].

    Component ID, specified as an integer in the range [0, 255].

    Link ID, specified as an integer in the range [0, 255].

    Version History

    Introduced in R2022a