All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

jesse / mecanum_route.c

0 likes
0 forks
1 files
Last active 6 hours ago
1 #include <kipr/wombat.h>
2 #include <stdlib.h>
3 #define BLACK_VALUE 3700
4
5 int stop_at_line(int min_ticks){
6 if(analog(1)>BLACK_VALUE && gmpc(0)> min_ticks){
7 printf("reach end of ramp\n");
8 return 1;
9 }
10 printf("keep going analog_1=%d, gmpc_0=%d\n",analog(1), gmpc(0));

jesse / claude_cheat_sheet.md

0 likes
0 forks
1 files
Last active 7 hours ago

🤖 Botball C Programming Cheat Sheet

📊 Reading Sensors

// Digital sensors (touch, bumper) - returns 0 or 1
digital(port_number);  // Example: if(digital(0)) { ... }

// Analog sensors (light, distance) - returns 0 to 4095
analog(port_number);   // Example: if(analog(0) > 2000) { ... }
Newer Older

Powered by Opengist ⋅ Load: 107ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文