{"id":18552366,"url":"https://github.com/cuspaceflight/altimeter","last_synced_at":"2025-05-15T11:12:43.050Z","repository":{"id":138919433,"uuid":"106577215","full_name":"cuspaceflight/altimeter","owner":"cuspaceflight","description":"Barebones altimeter for small rockets","archived":false,"fork":false,"pushed_at":"2019-05-12T18:41:18.000Z","size":13492,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T11:12:37.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuspaceflight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-11T16:05:30.000Z","updated_at":"2019-05-12T18:41:19.000Z","dependencies_parsed_at":"2023-03-15T04:00:14.857Z","dependency_job_id":null,"html_url":"https://github.com/cuspaceflight/altimeter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuspaceflight%2Faltimeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuspaceflight%2Faltimeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuspaceflight%2Faltimeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuspaceflight%2Faltimeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuspaceflight","download_url":"https://codeload.github.com/cuspaceflight/altimeter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:13:58.987Z","updated_at":"2025-05-15T11:12:38.036Z","avatar_url":"https://github.com/cuspaceflight.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CUSF Altimeter\n### This project is a barebones altimeter for use in the freshers rocket challenge. The below instructions are specific to Linux systems only.\n\n## Setting up the Repositiory\n\n1. Setup the repository using the following commands:\n```\n$ git clone https://github.com/cuspaceflight/altimeter.git\n$ cd altimeter\n$ git submodule update --init\n$ cd ChibiOS\n$ git checkout stable_16.1.x\n```\n2. To succesfully compile firmware you will need to install gcc:\n```\n$ sudo apt-get install gcc-arm-none-eabi\n```\n3. Test the installation by compiling the firmware template:\n```\n$ cd ../firmware\n$ make\n```\n\n## Analysing Log Files\n\n1. Copy the file \"log_0000x.bin\" you wish to decode into the altimeter/logs directory\n\n2. From the terminal run:\n```\n$ python3 log_file_parser.py log_0000x.bin\n```\n\nThe output will print directly to the terminal window.\n\n## Making Firmware Changes\n\nThis will be explained in depth in the sessions, however the files which you will want to modify (status.c, measurements.c and logging.c) can be found in the altimeter/firmware directory.\n\nCompile using the command:\n``` \n$ make\n```\nIf successful something similar to the below should appear in the terminal window:\n\n```\n...\nCompiling testbmk.c\nCompiling main.c\nCompiling ms5611.c\nCompiling measure.c\nCompiling status.c\nCompiling microsd.c\nCompiling logging.c\nLinking build/altimeter.elf\nCreating build/altimeter.bin\nCreating build/altimeter.hex\nCreating build/altimeter.dmp\nCreating build/altimeter.list\n\n   text\t   data\t    bss\t    dec\t    hex\tfilename\n  43900\t   8896\t 122628\t 175424\t  2ad40\tbuild/altimeter.elf\n\nDone\n```\n\n### References\n\nChibiOs - http://www.chibios.org/dokuwiki/doku.php?id=chibios:documentation:start\n\nGDB - https://github.com/blacksphere/blackmagic/wiki/Useful-GDB-commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuspaceflight%2Faltimeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuspaceflight%2Faltimeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuspaceflight%2Faltimeter/lists"}