-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c34ef4
commit 5bb25c3
Showing
7 changed files
with
71 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from data_frame_factory import DataFrameFactory | ||
from modem.modem import RF | ||
|
||
class TxCommand(): | ||
|
||
def __init__(self, modem: RF, apiParams): | ||
self.setParamsFromApi(apiParams) | ||
self.modem = modem | ||
self.frame_factory = DataFrameFactory(modem) | ||
|
||
def setParamsFromApi(self, apiParams): | ||
pass | ||
|
||
def getPayload(self): | ||
pass | ||
|
||
def execute(self, modem): | ||
pass | ||
|
||
def transmit(self, frame): | ||
# MODEM_TRANSMIT_QUEUE.put([c2_mode, copies, repeat_delay, frame_to_tx]) | ||
|
||
self.modem.modem_transmit_queue.put( | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from command import TxCommand | ||
|
||
class CQCommand(TxCommand): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from command import TxCommand | ||
|
||
class PingCommand(TxCommand): | ||
|
||
def setParamsFromApi(self, apiParams): | ||
self.dxcall = apiParams['dxcall'] | ||
return super().setParamsFromApi() | ||
|
||
def execute(self): | ||
self.frame_factory.build_ping(self.dxcall) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters