CLI commands

List of cli commands

Use a terminal program such as Tera Term or Putty.
The micro has a native USB controller, so it will work with any speed and data format.

help

Shows list of command with a brief description
command followed by help will display more details

 * help
        Print list of commands
 * ?
        help
 * all
        print out all instructions
 * settings
        display current settings
 * screen
        screen <#> - set screen to configure
 * driver
        driver <#> - sets the driver for screen
 * invert
        inverts display colors
 * flip
        rotate display 180 degrees
 * mirror
        mirror display
 * rotate
        rotate <#> - rotate display 90 degrees
 * mode
        type 'mode help' for more info
 * inst
        instrument locations
 * layout
        spacing for steam gauges
 * xoffset
        xoffset <#> number of pixels to move image on x axis (+/- 127)
 * yoffset
        yoffset <#> number of pixels to move image on y axis (+/- 127)
 * enable
        enable <g/m/i> - screens to scroll through. 'enable gmi' enables all
 * units
        <f/m> set units to feet(miles) or meters(km)
 * hsirc
        hsirc <#> - radio channel # for adjusting hsi
 * buttonsrc
        buttonsrc <#> - radio channel # for buttons
 * vspeeds
        display current vspeeds
 * pitot
        Use pitot for airspeed
 * baro
        Use baro for altitude
 * led
        board led (on/off)
 * dump
        dump settings to copy/paste
 * map
        display map data waypoints (airports, vor, etc.)
 * waypoint
        Set waypoints for map
 * runway
        Set runways for map
 * home
        Set home location
 * glideslope
        Set glide slope for ILS approaches
 * loadFcWaypoints
        (on/off) - Load waypoints saved in flight controller
 * save
        Save settings
 * reboot
        Reboot the module (no save)
 * sim
        turn on/off simulator
 * version
        list version info
 * debug
        debug

all

Print out all instructions
Shows the current setup of the system, display settings, rc channels, etc
settings default - load default settings (resets drivers, etc)

screen
Selects screen to make adjustments to. Some commands modify screen settings and this is used to select the screen

driver
Change driver/resolution for selected screen
0) None
1) ST7789  240x240
2) ST7789  280x240
3) ST7789  320x240
4) ILI9341 320x240
5) ILI9488 480x320
6) ST7735  128x128
7) ST7735  160x80
8) ST7735  160x128
9) ST7789  320x170

invert
Invert the colors on the screen

flip
Flips screen 180 degrees. Can also use 'flip <screen num>'

mirror
Mirrors screen. Can also use 'mirror <screen num>'

mode
Mode - what the screen displays
'mode' will display the current mode for the current screen
'mode <mode>' will select mode for current screen
number or letter can be used
g) G500/G1000 - Primary flight display
m) Map - moving map
w) Weather radar
r) Airplane radar
f) Flight Management Computer
i) Instruments* (Steam gauges)
n) next mode (mode n & p are used to simulate radio mode changes)
p) previous mode
*i followed by letter (a,b,c,..) can be used to select which set of gauges (see 'inst help' for more info)
'mode i b' will select 2nd instrument screen, i c will select 3rd (if screen displays 4 or less instruments)

inst
Instrument layout for steam gauges
Layout position start in upper left and move right then down
1 2 3   1 2   1 2
4 5 6   3 4   3 4
              5 6

ex: inst 1 2 3 4 5 6 -  standard 6 pack
    inst 7 8 9 10 11 12 - bitmap versions of instruments
0 will skip a location, -1 will mark end
changing screens will show the next set of instruments
for screens that can show more than 1 set of instruments, use letters to identify which screen
ex: inst b 1 2 3 4 5 6 - will instruments for 2nd steam screen
0 - empty
1 - airspeed
2 - attitude
3 - altimeter
4 - turn coordinator
5 - directional gyro with RMI
6 - vsi
7 - airspeed bitmap
8 - attitude bitmap
9 - altimeter bitmap
10 - turn coordinator bitmap
11 - HSI
12 - VSI
13 - RMI
14 - Tachometer single (left)
15 - Tachometer right
16 - Tachometer twin
17 - Manifold single/left (motor RC signal)
18 - Manifold right
19 - Manifold twin
20 - Fuel flow (amps)
21 - VOR
22 - Weather Radar
23 - Aircraft Radar
24 - Compass

layout (p/s/c)
    proportional - screen divided into segments and instrument placed in center of each
    spread - instruments spread as far apart as possible
    centered - instruments grouped into center of screen

xoffset/yoffset <#> (+/- 127) number of pixels to shift screen for steam gauges

units <f/m> - sets units to f)eet/NM or m)eters/KM

hsirc <channel> - rc analog channel used to set HSI course

buttonrc <channel> - rc channel used to simulate button presses & light setting
900 uS - nav lights off
1000 uS - position/beacon lights on
1500 uS - + strobes
2000 uS - + landing lights
1100 uS - select runway
1200 uS - select previous display
1300 uS - change mode
1400 uS - map zoom in
1600 uS - map zoom out
1700 uS - change mode
1800 uS - select next display
1900 uS - select vor/airport

vspeeds <vflap> <vnorm> <vcaut> <vne> - set vspeeds in knots
example: vspeeds 20 40 70 90

map

displays waypoints/runways that will be drawn on map
map default - load default airports and runways (Denver area)
map clear - clears all map data

waypoint
Sets map data for waypoints. These include real airports, model airports and vors.
Real airports are designated as their class, either B, C, D, or U)ncoltrolled, and will display their airspace on the map
Draws rings to display 400 ft, 100 ft, and 0 ft ceiling limits (100 and 0 ft are approx locations, every airport unique)
Model airport are desinateded with an M and VORs with a V
To set waypoint data:
<name> <lat> <lon> <options>
<name> airport/waypoint/vor identifier - 4 letter identifier (must have at least 1 character)
<lat> lattitude - use degree.dddddd upto 6 decimal place (what inav uses)
<lon> longitude - same format, precede with - for W degrees
<options> M) Model airport
          D) Class D airport
          C) Class C airport
          B) Class B airport
          U) Uncontrolled airport
          default VOR

runways
Sets map data for runways. These can be real or model runways
To set runway data:
<airport> airport identifier - 4 letter identifier (must have at least 1 character
<runway name> - name of runway. ex.-30R
<lat> lattitude - use degree.dddddd upto (center of runway)
<lon> longitude - same format, precede with - for W degrees
<dir> direction of runway (can find on skyvector.com).
<len> length of runway in feet
<width> widht of runway in feet
<options> L)eft, R)ight or C)enter runway
note: only one direction of a runway needs to be entered, the other direction will be automatically built
To delete entry enter
runway <entry> del

home
Sets home location for power on and for simulator.
Can be used to fly around and verify other waypoints
home <lat> <lon>

glideslope

loadFcWaypoints
Load navigation waypoints from flight controller at boot

Use pitot for airspeed
pitot 0/1

Use baro for altitude
baro 0/1

Sets the board led on or off

save
saves settings

reboot
reboot controller

sim
sim <on/off>
Enables the simulator. Must have flight controller hooked up to get MSP data out of it.
Gets pitch/roll/yaw data from FC. Simulates airspeed and altitude and will change based on pitch
If radio is connected, will get airspeed from throttle, direction can be changed with yaw
Pitch/roll can be changed with elevator/aileron and altitude will change with pitch
Use to fly around map and check map data

settings

Display        invert/mirror
#  driver    res     | rot mode            instrument layout
------------------------------------------------------------------
1  8 ST7735  160x128    3  i(a) Instruments  a{1} b{2} c{3} d{21} e{10} f{11} g{12} h{22} i{17} j{0} k{14} l{5}
2  6 ST7735  128x128 i  1  f  Flight Management Computer  a{1} b{2} c{3} d{4} e{5} f{6} g{7} h{8} i{9} j{10} k{11} l{12}
3  0 None
4  7 ST7735  160x80  i  1  g  G1000  a{1} b{2} c{3} d{4} e{5} f{6} g{7} h{8} i{9} j{10} k{11} l{12}
VSpeeds: VFlap VF_End VNorm VCaut VNe
          10    40     25    75    101
Units: f - Feet/Miles
Board LED: off
Glide slope: 3.000000
HSI channel: 10
Switch channel: 8
Airspeed source: GPS
Altitude source: GPS
Load fc waypoints: off
Flight Controller: iNav
Firmware Version 1.03
Build Date & Time Oct  6 2024 20:27:54
Settings:0103 Map data:0100
Sold by fpvtoys.net

screen

Selects screen to make adjustments to. Some commands can modify screen without selecting it first

driver

Change driver/resolution for selected screen
0) none
1) ST7789 240x240
2) ST7789 280x240
3) ST7789 320x240
4) ILI9341 320x240

invert

Invert the colors on the screen

flip

Flips screen 180 degrees. Can also use 'flip <screen num>'

mirror

Mirrors screen. Can also use 'mirror <screen num>'

rotate

Rotates screen in 90 degree steps

mode

Mode - what the screen displays
'mode' will display the current mode for the current screen
'mode <mode>' will select mode for current screen
number or letter can be used
g) G500/G1000 - Primary flight display
m) Map - moving map
w) Weather radar
r) Airplane radar
f) Flight Management Computer
i) Instruments* (Steam gauges)
n) next mode (mode n & p are used to simulate radio mode changes)
p) previous mode
*i followed by letter (a,b,c,..) can be used to select which set of gauges (see 'inst help' for more info)
'mode i b' will select 2nd instrument screen, i c will select 3rd (if screen displays 4 or less instruments)

inst

Instrument layout for steam gauges
Layout position start in upper left and move right then down
1 2 3   1 2   1 2
4 5 6   3 4   3 4
              5 6
ex: inst 1 2 3 4 5 6 -  standard 6 pack
    inst 7 8 9 10 11 12 - bitmap versions of instruments
0 will skip a location, -1 will mark end
changing screens will show the next set of instruments
for screens that can show more than 1 set of instruments, use letters to identify which screen
ex: inst b 1 2 3 4 5 6 - will instruments for 2nd steam screen
-1 - end of instruments
0 - empty
1 - airspeed
2 - attitude
3 - altimeter
4 - turn coordinator
5 - directional gyro with RMI
6 - vsi
7 - airspeed bitmap
8 - attitude bitmap
9 - altimeter bitmap
10 - turn coordinator bitmap
11 - HSI
12 - VSI
13 - RMI
14 - Tachometer single (left)
15 - Tachometer right
16 - Tachometer twin
17 - Manifold single/left (motor RC signal)
18 - Manifold right
19 - Manifold twin
20 - Fuel flow (amps)
21 - VOR
22 - Weather Radar
23 - Aircraft Radar
24 - Compass

layout

sets spacing for instrument (steam) gauges
layout (p/s/c)
    proportional - screen divided into segments and instrument placed in center of each
    spread - instruments spread as far apart as possible
    centered - instruments grouped into center of screen

xoffset

Set screen offset of x axis for steam gauges (+/- 127)
xoffset <#> (+/- 127) number of pixels to shift screen for steam gauges

yoffset

Set screen offset of y axis for steam gauges (+/- 127)
yoffset <#> (+/- 127) number of pixels to shift screen for steam gauges

enable

enable modes that can be scrolled through on a screen
screens can be enabled one at a time or in batches
enable gmwrfi to add screens or enable -gwmrfi to remove screens
enable all to add all, or enable -all to remove all
this is a per screen setting
ex- enable gmi will enable G1000, Map and Instruments
screen 0 modes enabled: gmwrfi
+g) G1000
+m) Map
+w) Weather Radar
+r) Aircraft Radar
+f) Flight Management Computer
+i) Instruments

units

unit <num> - sets units to 0)feet/NM 1)meters/KM

hsirc

hsirc <channel> - rc analog channel used to set HSI course

buttonsrc

buttonrc <channel> - rc channel used to simulate button presses & light setting
900 uS - nav lights off
1000 uS - position/beacon lights on
1500 uS - + strobes
2000 uS - + landing lights
1100 uS - select previous vor/airport
1200 uS - select previous display
1300 uS - change mode
1400 uS - map zoom in
1600 uS - map zoom out
1700 uS - change mode
1800 uS - select next display
1900 uS - select next vor/airport

vspeeds

vspeeds <vflap> <vnorm> <vcaut> <vne> - set vspeeds in knots
example: vspeeds 20 40 70 90

pitot

Use pitot for airspeed
pitot 0/1

baro

Use baro for altitude
baro 0/1

led

Sets the board led on or off

dump

Dump all settings

map

displays waypoints/runways that will be drawn on map
map default - load default airports and runways (Denver area)
map clear - clears all map data

waypoint

Sets map data for waypoints. These include real airports, model airports and vors.
Real airports are designated as their class, either B, C, D, or U)ncoltrolled, and will display their airspace on the map
Draws rings to display 400 ft, 100 ft, and 0 ft ceiling limits (100 and 0 ft are approx locations, every airport unique)
Model airport are desinateded with an M and VORs with a V
To set waypoint data:
<name> <lat> <lon> <options>
<name> airport/waypoint/vor identifier - 4 letter identifier (must have at least 1 character)
<lat> lattitude - use degree.dddddd upto 6 decimal place (what inav uses)
<lon> longitude - same format, precede with - for W degrees
<options> M) Model airport
          D) Class D airport
          C) Class C airport
          B) Class B airport
          U) Uncontrolled airport
          default VOR
example - (airport near my home)
KBJC 39.908775 -105.117157 D
airport name, lat lon (from google maps), Class D airport
To delete entry enter
waypoint <entry> del

runway

Sets map data for runways. These can be real or model runways
To set runway data:
<airport> airport identifier - 4 letter identifier (must have at least 1 character
<runway name> - name of runway. ex.-30R
<lat> lattitude - use degree.dddddd upto (center of runway)
<lon> longitude - same format, precede with - for W degrees
<dir> direction of runway (can find on skyvector.com).
<len> length of runway in feet
<width> widht of runway in feet
<options> L)eft, R)ight or C)enter runway
note: only one direction of a runway needs to be entered, the other direction will be automatically built
To delete entry enter
runway <entry> del
KBJC 30R 39.908340 -105.115181 304 9000 100 R
airport KBJC, runway 30R, lat:39.908340, lon:-105.115181, 304 true heading, 9000 feet long, 100 feet wide

home

Sets home location for power on and for simulator.
Can be used to fly around and verify other waypoints
home <lat> <lon>

glideslope

Sets the glide slope angle for approaches

save

saves settings

reboot

Reboot the module (no save)

sim

sim <on/off>
Enables the simulator. Must have flight controller hooked up to get MSP data out of it.
Gets pitch/roll/yaw data from FC. Simulates airspeed and altitude and will change based on pitch
If radio is connected, will get airspeed from throttle, direction can be changed with yaw
Pitch/roll can be changed with elevator/aileron and altitude will change with pitch
Use to fly around map and check map data

version

displays version information