d_thingable
u/d_thingable
So I am looking to make a list of class objects from user input. My problem is that I am appending the same object with new data each time. Any thoughts?
class Dog:
def __init__(self, name, breed):
self.name = name
self.breed = breed
def __str__(self):
return "{0}:{1}".format(name, breed)
dogs = []
input_name = "Please enter a dog's name: "
input_breed = "Please enter {0}'s breed: "
while(True):
name = input(input_name)
if name:
breed = input(input_breed.format(name))
dog = Dog(name, breed)
dogs.append(dog)
for i, dog in enumerate(dogs):
pr
Hey guys! I wanted to follow up on some help that r/robotics gave me on my differential drive bot that I have been designing the controller for. Here is the orginal post.
I wrote up the beginnings of my design and posted it to my blog, but I wanted to share it with you guys here. If you are interested in Matlab fuzzy controllers for robotics, the figures up on thingable.co (It is not monetized; just a personal blog.)
Fighting sumo bots (also known as Robot-sumo) is a tradition that pits two robots against each other in a ring with the goal of pushing the opponent out. These sort of competitions are geared for
Not sure if this is the place to ask this, so please let me know if I should ask somewhere else. I am an EE working on a fuzzy logic project for an intelligent controls class for a Sumo Bot (basically a bot with two wheels that is made to push another out of a ring). My controller outputs the speeds of the motors from -500 to 500 for both of the wheels (negative for reverse).
I am modeling all of this in Matlab and Simulink right now and I can not figure out or a formula that relates the speed of the two wheels to the radius of the turn and the angular velocity. Can anybody give me some pointers or direct me to a place that has some info?
Hey guys, I have been chugging away at a wifi autoconnect/AP mode manager this weekend. It works mostly as expected, even if it is a little clunky right now, however it crashes when the addConnection method is called. I was hoping someone could take a look at it and point me in the right direction. Let me know if I need to flush out the documentation a bit if it is confusing.
Thanks!
I have been thinking about ways for an ESP to connect and remember multiple different wifi networks. My first thought was to store the information in flash memory, but that feels like it could be a security issue. Any thoughts?
You've reached the end of this feed.
