This file contains 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
; LED Control for VESC Express | |
; Copyright 2024 Syler Clayton <[email protected]> | |
; Debug flag for testing | |
(def debug 0) | |
; Features enabled | |
(def led-enable 1); Basic version works on previous VESC firmware | |
(def pubremote-enable 0); VESC 6.5 beta only. Also requires code-server | |
(def code-server-enable 0) ; VESC 6.5 beta only. If timeout you probably don't have script on VESC which starts the code-server. |
This file contains 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
#echo 'Time,Latitude,Longitude'> output.csv;while true; do python3 gps.py; sleep .5; done | tee -a output.csv | |
import urllib.request | |
import re | |
fp = urllib.request.urlopen("http://192.168.1.118") | |
mybytes = fp.read() | |
mystr = mybytes.decode("utf8") | |
fp.close() | |
temp=re.findall(r'-?[0-9]*\.[0-9]*',mystr) |
This file contains 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
void payload() | |
{ | |
struct thread *td; | |
//Restore IDT state | |
void (*setidt)() = (void *)0xFFFFFFFF82603FA0; | |
setidt(IDT_DE, 0xFFFFFFFF825FED40, SDT_SYSIGT, SEL_KPL, 0); | |
setidt(IDT_DB, 0xFFFFFFFF825FECB0, SDT_SYSIGT, SEL_KPL, 0); |
This file contains 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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctr/types.h> | |
#include <ctr/srv.h> | |
#include <ctr/APT.h> | |
#include <ctr/GSP.h> | |
#include <ctr/GX.h> | |
#include <ctr/HID.h> | |
#include <ctr/svc.h> |