Skip to content

Instantly share code, notes, and snippets.

View Micrified's full-sized avatar
🇫🇷
Collating...

Micrified

🇫🇷
Collating...
  • Rotterdam, Nederlands
View GitHub Profile
@Micrified
Micrified / README.md
Created September 7, 2020 14:37
Drone Project README

Telemetry Interface

There's a terminal-based interface made with ncurses that can be used to visualize telemetry sent to the PC terminal from the quadcopter. The PC terminal program is modified to try and open a socket to connect to the service when you run make upload-run or make run. All telemetry received is then also sent there to be displayed.

The Telemetry Interface

How to use the Interface

To use the interface, just run make in the folder Interface off the root directory. Then execute it with ./interface.

@Micrified
Micrified / preemptive_threads.cpp
Created August 31, 2020 15:40
Preemptive Threading Demo
#include <thread>
#include <mutex>
#include <iostream>
#include <chrono>
#include <cstring>
#include <future>
#include <pthread.h>
#include <math.h>
// IO Access mutex
@Micrified
Micrified / notes.md
Last active July 1, 2020 15:59
Recorded adjustments
Problem Example (before) Example (after) Justification
Unnecessary use of "the" "The rapid growth of the software size" "The rapid growth of software size" Definite article "t
@Micrified
Micrified / comments.md
Created June 10, 2020 11:25
Comments Assignment 2

Comments on the paper

  1. Dimensions hard to scale as its a crowded image. And we thought having given the high-res version, that redesigning it was not necessary. It is also a vector image and can be zoomed in on.
  2. Automatic layer comment asks "based on what rules"? We explain that it is known to be temporary or unreliable
  3. We don't use one AP per scan, we pass resulting samples (multiple) through a guassian PDF. That means multple samples from different APS. Not one
  4. Do you use training data from phone A to test phone B? Yes we do, this was specified in Part II: Data Collection

Comments on grading matrix

  1. [1/3]: Number of access points (But was discussed)
@Micrified
Micrified / requirements.md
Created May 20, 2020 11:37
Requirements SMS

Introduction

  • The application developed for the second assignment of Smart Phone Sensing delivers indoor (and outdoor) localization using RSS signals from WiFi access points using Bayes filters names
  • load distribution
  • phones used
  • version of android

Data Collection

...

@Micrified
Micrified / node_z.cpp
Created May 8, 2020 21:40
Perplexing problem
#include <chrono>
#include <memory>
extern "C" {
#include <sched.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
// Classifier
public int classify (ArrayList<ScanResult> test_sample)
{
// Number of votes for each of the four cells
int[] cell_count = {0,0,0,0};
// Train if needed (new data may have been added to some cells)
if (training_required) {
train();
}
@Micrified
Micrified / notes.md
Created April 7, 2020 10:03
Notes Lecture April 7

General Lecture Notes

  • Slides (Week 9 or 8) will explain how to do the presentations.
  • Don't want all presentations to be the same. It should be appropriate to get the message across, but be creative.
  • Your presentation must have the elements outlined in the guide.
  • The pitch is 4 minutes, with 2 minutes of discussion
  • Very important to say (1) Who cares about this (2) Why you?
  • [Q&A] The jury actually does not have that much weight
  • Important to emphasize your user group in the presentation
  • There are some youtube links in the week [8/9] slides with examples for presentations. The last/third one is the best.
// Author: Charles Randolph
// Subauthors: Ester Vicario Bravo, Grzegorz Krukiewicz-Gacek
#include "msg.h"
#include "../crc/crc16.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@Micrified
Micrified / example.tex
Created March 24, 2020 21:57
Inline example
\begin{lstlisting}[caption={Packing routine for input control}, label={lst:code-packing}]
static void pack_msg_input_ctrl (msg_data_input_ctrl *data, unsigned char *b) {
b[0] = data->desired_phi >> 8; b[1] = data->desired_phi & 0xFF;
b[2] = data->desired_theta >> 8; b[3] = data->desired_theta & 0xFF;
b[4] = data->desired_sr >> 8; b[5] = data->desired_sr & 0xFF;
b[6] = data->desired_lift >> 8; b[7] = data->desired_lift & 0xFF;
b[8] = data->P >> 8; b[9] = data->P & 0xFF;
b[10] = data->P1 >> 8; b[11] = data->P1 & 0xFF;
b[12] = data->P2 >> 8; b[13] = data->P2 & 0xFF;
b[14] = data->H >> 8; b[15] = data->H & 0xFF;