That's what i've gathered from others as well. I put that line in the InitialCondition class and then again in the CurrentCondition class which is the one that repeats, but i'm still running into the same wall. import os import math from Adafruit_I2C import Adafruit_I2C from Adafruit_L3GD20 import *...
My code is here, Lines 22-25 are the initial call and 75 -78 i think are the references i'm talking about: import os import math from Adafruit_I2C import Adafruit_I2C from Adafruit_L3GD20 import * from Adafruit_LSM303DLHC import * from Adafruit_PWM_Servo_Driver import PWM from servo_actuator import ...
I was able to confirm that the output datatype is, in fact, a float type in both cases, but for some reason i'm still having trouble. I essentially copy and pasted the code from the test class. still not sure what the issue is.
when i run the test program without moving my model I get the same data results that my program generates. The difference is that when i move the model around while running the test program the results change, but this is not the case during my program run. I am mistaken in calling it a test program...
I'm using a gyroscope for a robotics project. I found a library that generates a sensor output in degrees per second with an included test script. if i run the test script i can get real-time data from the sensor, but when i import the library into my code, i can only seem to get an initial read. Th...
I'm looking to improve the specs on a robotics project i'm working on. I'm currently using Batan B2122 motors and need something with a larger power output (torque?) that is compatible with a raspberry pi and hopefully compatible with the 16-channel PWM driver. any suggestions?
this probably isn't the best forum for this question, but i'm at a loss. anyone know why i keep getting a http 404 error when i try to push my repository to bitbucket? i'm using mercurial, and i input hg push https://bitbucket.org/myname/myrepo i've also edited the .hgrc file to read the same url. s...
hi all, i'm working on a project that uses servo motors from adafruit and i've found a kernel that helps to manipulate them. only problem is i know nothing about kernels. i've downloaded it onto the pi using tar vfxz OccidentalisV02Kernel.tgz but now i have no idea what to do with it. i thought i ex...
Here is the portion of my project i've been asking about. feel free to cut me to pieces; like i said i've never seen python or an RPi before a few weeks ago. import os import math from Adafruit_I2C import Adafruit_I2C from Adafruit_LSM303DLHC import LSM303DLHC import numpy as np from numpy import * ...
Thanks to everyone once again for the help with this project, especially Andrew S. I'm so close to getting this and then my project will take off. the short version is this: from Adafruit_LSM303DLHC import LSM303DLHC lsm = LSM303DLHC(0x19, 0x1E, False) accel = lsm.readAccelerationsG() from my unders...
Yup, read that one, read a bunch of others. all very informative and answered none of the questions I've posted in this forum. great, i can find out how many letters are in my name or iterate a list of numbers from one - 100. doesn't really help with the advanced robotics i'm trying to get a handle ...
ahhhhhh I see. This is my first exposure to any sort of coding or programming so I apologize retrospectively. My first thoughts were, what is this "foo", and how do I get it? regardless, I haven't changed anything, but now it runs. Seems to happen a lot, and I can't really explain it. sudo python Ma...
If I call the module alone it works just fine, but when I import it into my code and try to run my program I get the following error message: Traceback (most recent call last)" File "Master.py", line 4, in <module> from Adafruit_I2C import Adafruit_I2C File "/home/pi/Adafruit_I2C.py", line 23, in <m...
I really appreciate the help. Let me see if I understand completely: I'm using the LSM303DLHC Compass+accel from adafruit and I've looked through the tutorial and found/downloaded the module to use. Adafruit.com supplies everything for Arduino in C++ looks like. But I found this: https://bitbucket.o...
Excellent, thank you Ivan. Essentially the naming is arbitrary then? As far as coding is concerned then, I would just use the name and assign it to the hardware somehow? I'm failing to see how the program knows to access the hardware for providing data. Reference the i2c address? or GPIO? I feel lik...
hi all, as i write a code for my raspberry pi, how would i go about calling the outputs from my hardware? I'm creating a robotics project essentially. using a GPS, gyro and compass/accelerometer simultaneously. i imagine it's a reference or input command? maybe something like: from gps use lat,long;...