Skip to main content

Posts

Coronavirus update

Coronavirus update  Today we got some really sad news as PiWars was decided to be postponed to a later date. Despite this being unfortunate, it was definitely a well thought out choice and was made for good reasons.  However...... This could also be pretty useful as well because this means that I get (a lot) more time to work on my robot and further develop it. Below is a to-do list of my new ideas: - Get the flywheel mechanism working ASAP - Tweak all my code and do further testing - Work on further autonomous code (to gain more points) I am very excited to accomplish these goals!
Recent posts

Code Update!

Code Update! After a while of working on writing code, I have finally done it! This script below is adapted from the MonsterJoy code by PiBorg, yet it has a number of important changes. I will probably also tweak the code slightly (ie turn magnitude). #!/usr/bin/env python # coding: Latin-1 # Load library functions we want import time import os import sys import pygame import ThunderBorg import UltraBorg # Re-direct our output to standard error, we need to ignore standard out to hide some nasty print statements from pygame sys . stdout = sys . stderr # Setup the ThunderBorg TB = ThunderBorg . ThunderBorg () TB . i2cAddress = 0xA # Uncomment and change the value if you have changed the board address TB . Init () if not TB . foundChip : boards = ThunderBorg . ScanForThunderBorg () if len ( boards ) == 0 : print 'No ThunderBorg found, check you are attached :)' else : print 'No