Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions console_backend/src/cli_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ pub struct CliOptions {
#[clap(long)]
pub show_file_connection: bool,

/// Disable map.
#[clap(long)]
pub disable_map: bool,

/// Path to a yaml file containing known piksi settings.
#[clap(long)]
pub settings_yaml: Option<PathBuf>,
Expand Down
1 change: 1 addition & 0 deletions resources/Constants/Globals.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ QtObject {
property int initialSubTabIndex: 0 // Signals
property bool showCsvLog: false
property bool showFileio: false
property bool disableMap: false
property int height: 600
property int minimumHeight: 600
property int width: 1000
Expand Down
2 changes: 1 addition & 1 deletion resources/SolutionTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import "SolutionTabComponents" as SolutionTabComponents
MainTab {
id: solutionTab

subTabNames: ["Position", "Velocity", "Map"]
subTabNames: Globals.disableMap ? ["Position", "Velocity"] : ["Position", "Velocity", "Map"]
curSubTabIndex: 0

SplitView {
Expand Down
3 changes: 3 additions & 0 deletions swiftnav_console/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ def handle_cli_arguments(args: argparse.Namespace, globals_: QObject):
globals_.setProperty("width", args.width) # type: ignore
if args.show_file_connection:
globals_.setProperty("showFileConnection", True) # type: ignore
if args.disable_map:
globals_.setProperty("disableMap", True) # type: ignore
try:
if args.ssh_tunnel:
ssh_tunnel.setup(args.ssh_tunnel, args.ssh_remote_bind_address)
Expand Down Expand Up @@ -708,6 +710,7 @@ def main(passed_args: Optional[Tuple[str, ...]] = None) -> int:
parser.add_argument("--record-capnp-recording", action="store_true")
parser.add_argument("--debug-with-no-backend", action="store_true")
parser.add_argument("--show-fileio", action="store_true")
parser.add_argument("--disable-map", action="store_true")
parser.add_argument("--show-file-connection", action="store_true")
parser.add_argument("--no-prompts", action="store_true")
parser.add_argument("--use-opengl", action="store_true")
Expand Down