Go to advanced search

by mighty69
Wed Aug 13, 2014 9:20 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

Re: real-time data

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 *...
by mighty69
Wed Aug 13, 2014 8:49 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

Re: real-time data

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 ...
by mighty69
Wed Aug 13, 2014 6:17 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

Re: real-time data

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.
by mighty69
Wed Aug 13, 2014 6:09 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

Re: real-time data

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...
by mighty69
Wed Aug 13, 2014 3:55 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

Re: real-time data

i'm pretty new to python and programming. I thought that's what i had done, but i guess I'm not quite there.
by mighty69
Wed Aug 13, 2014 3:39 pm
Forum: General discussion
Topic: real-time data
Replies: 8
Views: 1038

real-time data

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...
by mighty69
Fri Jul 18, 2014 4:05 pm
Forum: General discussion
Topic: servo power
Replies: 0
Views: 411

servo power

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?
by mighty69
Thu Jul 17, 2014 3:11 pm
Forum: General discussion
Topic: Mercurial
Replies: 5
Views: 1362

Re: Mercurial

i renamed the repo and for some reason it worked.
by mighty69
Thu Jul 17, 2014 3:05 pm
Forum: General discussion
Topic: Mercurial
Replies: 5
Views: 1362

Re: Mercurial

never pinged a site before, forgive my ignorance.
all i did was copy paste the url
by mighty69
Thu Jul 17, 2014 2:00 pm
Forum: General discussion
Topic: Mercurial
Replies: 5
Views: 1362

Mercurial

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...
by mighty69
Wed Jul 16, 2014 1:23 pm
Forum: General discussion
Topic: kernel install
Replies: 2
Views: 581

kernel install

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...
by mighty69
Wed Jul 02, 2014 4:01 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

i got it working. needed to define the class Obj3D.
by mighty69
Wed Jul 02, 2014 1:36 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

I get an AttributeError: 'function' object has no attribute 'x' when I use the format

Code: Select all

accel.x*tsq+p[0]
when I use

Code: Select all

accel[0]*tsq+p[0]
I get a different AttributeError: Obj3D has no attribute '_getitem_'
by mighty69
Tue Jul 01, 2014 9:11 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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 * ...
by mighty69
Tue Jul 01, 2014 8:12 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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...
by mighty69
Tue Jul 01, 2014 5:14 pm
Forum: General discussion
Topic: Mercurial
Replies: 2
Views: 1405

Re: Mercurial

perfecto
by mighty69
Tue Jul 01, 2014 4:07 pm
Forum: General discussion
Topic: Mercurial
Replies: 2
Views: 1405

Mercurial

I've installed mercurial vcs on my RPi via:

Code: Select all

sudo apt-get install mercurial
and i'm trying to find it so i can build a repository but it is nowhere to be seen. any clues?
by mighty69
Mon Jun 30, 2014 7:25 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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 ...
by mighty69
Mon Jun 30, 2014 3:11 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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...
by mighty69
Mon Jun 30, 2014 2:42 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

I commented the i2c blacklist out, so it should work. never seen foo.py though?
by mighty69
Mon Jun 30, 2014 2:34 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

the lines in question in my code are:

Code: Select all

from Adafruit_I2C import Adafruit_I2C
from Adafruit_L3GD20 import L3GD20
from Adafruit_LSM303DLHC import LSM303DLHC
if I comment out the lines, my program runs as it did previously.
by mighty69
Mon Jun 30, 2014 2:29 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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...
by mighty69
Thu Jun 26, 2014 4:00 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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...
by mighty69
Wed Jun 25, 2014 10:06 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

Re: referencing hardware outputs

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...
by mighty69
Wed Jun 25, 2014 6:16 pm
Forum: Beginners
Topic: referencing hardware outputs
Replies: 24
Views: 2747

referencing hardware outputs

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

Go to advanced search