clean up
This commit is contained in:
parent
b1b19f9cba
commit
af8dccb56b
15
common.py
15
common.py
@ -4,16 +4,21 @@ from pathlib import Path
|
|||||||
from typing import Optional, Sequence
|
from typing import Optional, Sequence
|
||||||
|
|
||||||
from spacepackets import SpacePacket, SpacePacketHeader, PacketTypes
|
from spacepackets import SpacePacket, SpacePacketHeader, PacketTypes
|
||||||
from spacepackets.cfdp import TransmissionModes, PduType, DirectiveType
|
from spacepackets.cfdp import (
|
||||||
from spacepackets.cfdp.pdu.helper import GenericPduPacket, PduHolder, PduFactory
|
TransmissionModes,
|
||||||
from spacepackets.util import UnsignedByteField
|
PduType,
|
||||||
|
DirectiveType,
|
||||||
|
GenericPduPacket,
|
||||||
|
PduHolder,
|
||||||
|
PduFactory,
|
||||||
|
)
|
||||||
from tmtccmd.cfdp import (
|
from tmtccmd.cfdp import (
|
||||||
RemoteEntityCfgTable,
|
RemoteEntityCfgTable,
|
||||||
HostFilestore,
|
|
||||||
RemoteEntityCfg,
|
RemoteEntityCfg,
|
||||||
LocalEntityCfg,
|
LocalEntityCfg,
|
||||||
CfdpUserBase,
|
CfdpUserBase,
|
||||||
)
|
)
|
||||||
|
from spacepackets.util import UnsignedByteField
|
||||||
from tmtccmd.cfdp.handler import SourceHandler, DestHandler
|
from tmtccmd.cfdp.handler import SourceHandler, DestHandler
|
||||||
from tmtccmd.cfdp.request import PutRequest, PutRequestCfg
|
from tmtccmd.cfdp.request import PutRequest, PutRequestCfg
|
||||||
from tmtccmd.logging import get_current_time_string
|
from tmtccmd.logging import get_current_time_string
|
||||||
@ -110,8 +115,6 @@ class CfdpHandler:
|
|||||||
seq_cnt_provider: ProvidesSeqCount,
|
seq_cnt_provider: ProvidesSeqCount,
|
||||||
remote_cfg: Sequence[RemoteEntityCfg],
|
remote_cfg: Sequence[RemoteEntityCfg],
|
||||||
):
|
):
|
||||||
vfs = HostFilestore()
|
|
||||||
super().__init__(vfs)
|
|
||||||
self.dest_id = UnsignedByteField(EXAMPLE_APID, 2)
|
self.dest_id = UnsignedByteField(EXAMPLE_APID, 2)
|
||||||
self.remote_cfg_table = RemoteEntityCfgTable()
|
self.remote_cfg_table = RemoteEntityCfgTable()
|
||||||
self.remote_cfg_table.add_remote_entities(remote_cfg)
|
self.remote_cfg_table.add_remote_entities(remote_cfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user