Sensor Board Logging Board
+-----------------------------------+ +-----------------------------------+
| +-------+ | | |
| |Sensor1| | | |
| +---+---+ | | |
| | | | |
| +---v---+ +---------+ +-------+ +-------+ +---------+ +-------+ |
| |Sensor | | | | | | | | | | | |
| |Fetcher+--->Telemetry+---> Comms | CSP/UART | Comms +--->Telemetry+--->Storage| |
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
import random | |
class Die(object): | |
def __init__(self): | |
#initialize to random int | |
self._value = random.randint(0,6) | |
def roll_die(self): | |
#basically a getter function | |
self._value = random.randint(0,6) |
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
#include <stdio.h> /* Standard input/output definitions */ | |
#include <string.h> /* String function definitions */ | |
#include <unistd.h> /* UNIX standard function definitions */ | |
#include <fcntl.h> /* File control definitions */ | |
#include <errno.h> /* Error number definitions */ | |
#include <termios.h> /* POSIX terminal control definitions */ | |
/* | |
* 'open_port()' - Open serial port 1. | |
* |
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
#define MAX_DATA_LEN 100 | |
#define MAX_STR_LEN 30 | |
typedef union { | |
int i; | |
float f; | |
double d; | |
} telem_data_unit; | |
typedef struct { |
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
#include <dbus/dbus.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
static void check_and_abort(DBusError *error); | |
static DBusHandlerResult handle_messages(DBusConnection *connection, DBusMessage *message, void *user_data); | |
int main() { | |
DBusConnection *connection = NULL; | |
DBusError error; |
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
from SimpleCV import * | |
img = Image("./parking_full.png") | |
img = img / 2 | |
img = img.edges(25, 400) | |
img.save("parking_edge.png") | |
num_spots = 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
/* | |
* KubOS RT | |
* Copyright (C) 2016 Kubos Corporation | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
/* | |
* KubOS RT | |
* Copyright (C) 2016 Kubos Corporation | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip. | |
# http://www.st.com/internet/evalboard/product/252419.jsp | |
source [find interface/stlink-v2-1.cfg] | |
transport select hla_swd | |
# increase working area to 64KB | |
set WORKAREASIZE 0x10000 |