2022-04-27 11:26:51 +02:00
|
|
|
#!/usr/bin/env python3
|
2020-12-17 17:50:00 +01:00
|
|
|
"""
|
|
|
|
@brief TMTC Commander entry point for command line mode.
|
|
|
|
@details
|
|
|
|
This client was developed by KSat for the SOURCE project to test the on-board software but
|
|
|
|
has evolved into a more generic tool for satellite developers to perform TMTC (Telemetry and Telecommand)
|
|
|
|
handling and testing via different communication interfaces. Currently, only the PUS standard is
|
|
|
|
implemented as a packet standard.
|
|
|
|
|
|
|
|
Run this file with the -h flag to display options.
|
|
|
|
|
|
|
|
@license
|
|
|
|
Copyright 2020 KSat e.V. Stuttgart
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
2021-04-24 23:17:36 +02:00
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
2020-12-17 17:50:00 +01:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
@author R. Mueller
|
|
|
|
"""
|
2022-05-17 11:13:32 +02:00
|
|
|
from tmtcc import tmtcc_post_args, tmtcc_pre_args, create_default_args_parser, \
|
|
|
|
add_default_tmtccmd_args, parse_default_input_arguments
|
2020-12-17 17:50:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2022-05-17 11:13:32 +02:00
|
|
|
hook_obj = tmtcc_pre_args()
|
2022-04-06 11:43:17 +02:00
|
|
|
arg_parser = create_default_args_parser()
|
|
|
|
add_default_tmtccmd_args(arg_parser)
|
|
|
|
args = parse_default_input_arguments(arg_parser, hook_obj)
|
2022-05-17 11:13:32 +02:00
|
|
|
tmtcc_post_args(hook_obj=hook_obj, use_gui=False, args=args)
|
2020-12-17 17:50:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|