boardctl

command module
v0.0.0-...-13238fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

boardctl

Control service for AHRS / GPS / Baro board - runs the LEDs and fan

Requires pi-blaster for PWM

Use my fork of pi-blaster - it enables pin 6 which was banned in the original version:

https://github.com/ssokol/pi-blaster

First, build pi-blaster following the really simple instructions:

./autogen.sh
./configure
make
sudo make install

Next, copy the pin configuration file to /etc/default:

sudo cp pi-blaster.conf /etc/default/pi-blaster
sudo systemctl restart pi-blaster

Now build the board control program:

cd ../boardctl
go get github.com/gorilla/websocket
go build boardctl.go
sudo cp boardctl /usr/bin/

Now enable the service:

sudo cp boardctl.service /lib/systemd/system/
sudo systemctl enable boardctl
sudo systemctl start boardctl

Congrats. You should now have blinkenlights and buzzinfan.

What the lights mean:

Green = power (takes about 20 seconds after power-on for this one to light up)

Orange = GPS status

  • off = disconnected
  • blink = no lock
  • solid = lock

Blue = ADS-B status

  • off = no signals (either band)
  • blink = receiving on one band (usually 1090)
  • solid = receiving on both bands

For building a Stratux / FlightBox distro or update you will need to copy:

  1. /usr/sbin/pi-blaster
  2. /lib/systemd/system/pi-blaster.service
  3. /etc/default/pi-blaster
  4. /usr/sbin/boardctl
  5. /lib/systemd/system/boardctl.service

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址