Monday, 20 June 2016

Navio2 Wifi Config

Navio2 Wifi

I have a Raspberry Pi 3 and have configured the onboard Wifi module to talk to my home network.
The second Wifi dongle will be used in the field for Telemetry. No idea what the range will be yet...



#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"

sudo ArduCopter-hexa -A udp: -C /dev/ttyAMA0 > /home/pi/star$
#sudo ArduCopter-hexa -A udp: -C /dev/ttyAMA0 > /home/pi/star$

exit 0

 # interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

allow-hotplug lo
iface lo inet loopback

allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /boot/wpa_supplicantwlan0.conf

allow-hotplug wlan1
iface wlan1 inet dhcp
    wpa-conf /boot/wpa_supplicant_adhoc.conf

allow-hotplug eth0
iface eth0 inet manual

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

        psk="My Wifi Key"


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


No comments:

Post a Comment