This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>NMEA Serial Simulator</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""A very simple ISO8211 decoder.""" | |
# Done without the ISO 8211 standard. | |
# Imports | |
import re | |
# Constants | |
DDF_LEADER_SIZE = 24 | |
DDF_FIELD_TERMINATOR = chr(30) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Creates a wind arrow for display in station model */ | |
/* The default size of the arrow is: width = 8, height = 2. | |
The size is then given by the @arrowWidth parameter. | |
The canvas is a square of 2*arroWidth. | |
The arrow is drawn in the center of the square and rotated to the corresponding angle (@direction). | |
*/ | |
var WindArrow = function (speed, direction, container, arrowWidth) { | |
'use strict'; | |
var index = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Weather Shield using Ethernet | |
by Matthieu Morin | |
created on 2014-08-10 | |
Licence: GPL V3 | |
Based on: | |
Weather Shield Example | |
By: Nathan Seidle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Map Panel</title> | |
<!-- ExtJS --> | |
<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/include-ext.js"></script> | |
<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/options-toolbar.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/example.css" /> | |
<!-- Local OpenLayers 3 stylesheet --> | |
<link href='ol.css' rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint indent: 4 */ | |
/* General functions */ | |
function modulo180(val) { | |
if (Math.abs(val) > 180) { | |
val = -(val % 180); | |
} | |
return val; | |
} |