## Configuration

- Firmware: 1.00.005 (make sure to upgrade to this version)
- Callsign: KF8EEZ
- Band: 20m
- Channel: 567
  - 2 minutes after, 14,097,060 MHz
- Autostart: TRACKER2
- QRP-labs S/N: 21811

- zener diode as regulator, 3 1/2 panels to provide voltage
- mass: 16.9 gram including u4b-usb connector.

## HF antenna

for top antenna leg, attached wire to fishing line with kapton tape, small piece about every 12 - 18 inches apart. Cut off small folded over ends with sticky tab.

## Programs

### Variables

- C is the count of transmissions since wake up
- N is the number of transmissions before switching to high-power (0-based)
- T is a flag for test mode
  - T=1 - test mode
  - T=0 - live mode - must be in live mode for flight
- B is the number of times to blink the led, set to 5

### TRACKER2

This is the primary program. The MYTELE and MYGPS subroutines enable control of a test mode which doesn't need GPS or ability to transmit.

```
PRINT "START TRACKER2"
RUN "INIT"
RUN "SHOW"
LET B = 5
RUN "BLINK"
PRINT "INITIAL GPS"
RUN "MYGPS"
LET B = 2
RUN "BLINK"
10 PRINT "LOOP AT #VC"
RUN "SHOW"
RUN "MYTELE"
LET C = C + 1
IF C > N
    LET HP = 1
ENDIF
RUN "MYGPS"
GOTO 10
```

### INIT

Initialization should run once on power up.

```
PRINT "INIT START"
LET CH = 567
LET HP = 0
LET C = 0
LET N = 2
LET T = 1
LET B = 5
PRINT "HOST USB:    #US"
PRINT "HIGH POWER:  #HP"
PRINT "FREQUENCY:   #FQ"
PRINT "CHANNEL:     #CH"
PRINT "CALLSIGN:    #CS"
PRINT "TEMPERATURE: #TK"
IF T = 1
PRINT "FAKE GPS/TELE MODE"
ELSE
PRINT "REAL GPS/TELE MODE"
ENDIF
PRINT "INIT DONE"
```

### SHOW

Prints out the current state

```
PRINT "SHOW START"
PRINT "LLH:  #LT #LN #AT"
PRINT "GPS:  VALID: #GV LOCK: #GL SPEED: #GS CALIB: #CL"
PRINT "GPS:  NSAT:  #SC"
PRINT "CNT:  #VC"
PRINT "TEMP: #TK"
PRINT "POWR: #HP"
PRINT "SHOW DONE"
```

### MYGPS

This is my GPS program, it lets you use the GPS in a test mode without an actual signal. Don't acquire GPS if in test mode (T=1)

```
PRINT "GPS START"
RUN "LEDOFF"
IF T = 0
PRINT "REAL GPS"
GPS 360
ELSE
PRINT "FAKE GPS"
DELAY 2000
ENDIF
RUN "LEDON"
PRINT "GPS END"
```

### MYTELE

Don't transmit if in test mode (T=1)

```
PRINT "TELEMETRY START"
RUN "LEDOFF"
IF T = 0
PRINT "REAL TELE"
TELE
ELSE
PRINT "FAKE TELE"
DELAY 2000
ENDIF
RUN "LEDON"
PRINT "TELEMETRY END"
```

### LEDOFF

Turn LED off

```
OUT 19 0
```

### LEDON

Turn LED on

```
OUT 19 1
```

### BLINK

turns led on and off B times. you must set b first

```
FOR L = 0 TO B
RUN "LEDON"
DELAY 100
RUN "LEDOFF"
DELAY 100
NEXT
```
