Skip to main content

Mini Update!

Mini Update:

My chassis has been fully assembled but the wiring has led to some minor complications that must be sorted out before I can continue. I am using code from both PiBorg and from Github as inspiration for my own code. I will use a ps4 remote and will use the same controls used in normal online games. Another thing that I learnt is that having an organized wiring system is far more important than I had previously thought (because otherwise, it turns into a large nest of random wires!). I will send a proper update soon, but until then I think this is a good summary of my work so far. 

Comments

Popular posts from this blog

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!

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...