Coder Social home page Coder Social logo

ks5e-data-logging's Introduction

Intro

Welcome to the folder containing all the BENNESAW BATE Racing data acquisition services. The entire system is Python and MatLab based.

This guide is split into two parts: a User's Guide and a Developer's Guide:

  • If you will be working on these files (i.e. you are a data aq member), you will need to refer to the Developer's Guide
  • Otherwise, the User's Guide should suffice for everyone else

If you have any questions or need troubleshooting, feel free to reach out to Mathewos Samson on Teams, Discord or via email: [email protected]

Setup

  1. Python 3 is required, and may be installed here: https://www.python.org/downloads/. Make sure it is added to PATH
  2. For MatLab (OPTIONAL), you will need an education/work license to get it for free. Follow GT's instructions here: https://www.mathworks.com/academia/tah-portal/kennesaw-state-university-31081932.html
    • Really the only thing you need MatLab for is to plot the data after parsing. Otherwise, just having Python is enough
  3. If you have not done so already, clone this GitHub repo or download it as a zip, extract, and save to somewhere safe
  4. Change directory to the repo. All you have to do is cd KS5e-Data-Logging
  5. optional step, create a python virtual environment by running these commands: pip install virtualenv virtualenv venv .\venv\scripts\activate (https://stackoverflow.com/questions/41972261/what-is-a-virtualenv-and-why-should-i-use-one)
  6. Once you are here, download the needed pip libraries by issuing the command pip install -r requirements.txt

User's Guide

If you are a user, everything you need to care about is in the telemetry_exe folder. Navigate to that directory.

There are two services: the Live Console and the Parser and Plotter

Live Console

  1. Either run the file console_exe.py with the Python Interpreter or issue the command py -3 console_exe.py
  2. right now this doesnt really work, you can run it with a test csv though

Parser and Plotter

  1. Get the raw data CSVs from the SD card on the vehicle
  2. Place them in the Raw_Data folder in this directory
  3. Either run the file parser_exe.py with the Python Interpreter or issue the command py -3 parser_exe.py
  4. Wait for the process to finish (a success message from parser_exe.py followed by termination)
  5. You may now retrieve the parsed data from the Parsed_Data as well as the Better_Parsed_Data folder and the .mat file output.mat
    1. logs in Parsed_Data will be formatted a lil different than in Better_Parsed_Data, so peep both, but its the same data trust me

There is no need to delete the CSVs or the .mat file between use. However, the next time you run, be sure to delete the old CSVs from Raw_Data if desired. Otherwise, they will be parsed again.

The next steps are optional - only if you want to plot the result

  1. Open dataPlots.m in MatLab
  2. In MatLab, first load output.mat by double clicking it on the sidebar. Then click run on dataPlots.m
    • This script will not execute fully if there is not enough data, and it will stop on the first plot it is missing data for

Developer's Guide

Way too lazy to do right now, I'll get to it after comp hopefully

ks5e-data-logging's People

Contributors

mathbrook avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.