Go to advanced search

by Davespice
Sun Feb 26, 2017 7:50 pm
Forum: Astro Pi
Topic: Missions running at the same time ?
Replies: 5
Views: 1844

Re: Missions running at the same time ?

Hi, Thanks, it's finally working! I have another question (sorry for offtopic). What will the judges consider when rating our project? Only code is important or what we will do with data after program results return from the ISS ? Example: we're planning to make climate chart but it is only possibl...
by Davespice
Sat Feb 25, 2017 7:47 pm
Forum: Astro Pi
Topic: Missions running at the same time ?
Replies: 5
Views: 1844

Re: Missions running at the same time ?

Hi there, sorry for the slow reply. I was in the Netherlands for a meeting with ESA and got stuck over there because of Storm Dorris. Try this code, it should be fairly self explanatory: import time from signal import pause try: import thread except ImportError: import _thread as thread running = Tr...
by Davespice
Mon Feb 20, 2017 2:58 pm
Forum: Astro Pi
Topic: Issues with accelero and gyro sensitivity
Replies: 17
Views: 5407

Re: Issues with accelero and gyro sensitivity

Hi Grozhibou The xyz values for the raw accelerometer measurements in the original post look normal to me. It's quite common to get close to 1G on the Z axis and a small amount on other axes at the same time. This can happen if, for instance, the surface the Sense HAT is on is not level. One thing y...
by Davespice
Tue Feb 07, 2017 12:16 pm
Forum: Astro Pi
Topic: sensor list scratch
Replies: 3
Views: 1622

Re: sensor list scratch

Hi Julien You need to do three things from a new project; As mattmiller said you need to create a variable named AddOn and set its value to SenseHat Create a broadcast block with the text gpioserveron Execute both blocks by either docking them together and double clicking them, or using a when Green...
by Davespice
Tue Jan 10, 2017 3:23 pm
Forum: Astro Pi
Topic: Game Developing
Replies: 1
Views: 1262

Re: Game Developing

Everything you need should be on this page. It tells you all the commands you can use along with a code snippet that you can copy and paste to try out. Scroll down to Joystick for specifically what you're after. https://pythonhosted.org/sense-hat/api/ There are also lots of free resources about lear...
by Davespice
Fri Dec 16, 2016 9:58 am
Forum: Astro Pi
Topic: New release of Sense HAT Python library v2.2.0
Replies: 8
Views: 6317

Re: New release of Sense HAT Python library v2.2.0

You could try a manual install? I would remove everything first and then start again;

Code: Select all

git clone https://github.com/RPi-Distro/python-sense-hat
cd python-sense-hat
sudo python setup.py install
sudo python3 setup.py install
by Davespice
Fri Dec 16, 2016 9:50 am
Forum: Astro Pi
Topic: show_letter combined with set_rotation neads clear
Replies: 2
Views: 1666

Re: show_letter combined with set_rotation neads clear

You don't have two python programs running at the same time do you? If so you would need a call to set_rotation in both, otherwise the other process will still think it's on the default screen rotation. The set_rotation function also allows you the option to not redraw the screen if you don't want t...
by Davespice
Mon Nov 21, 2016 9:37 am
Forum: Astro Pi
Topic: Need help getting joystick to work the way i want.
Replies: 7
Views: 2348

Re: Need help getting joystick to work the way i want.

There is a single threaded way to use the new Joystick system. See here: http://pythonhosted.org/sense-hat/api/#joystick So your code might be something like; from sense_hat import SenseHat, ACTION_PRESSED, ACTION_HELD, ACTION_RELEASED import os sense = SenseHat() b=(200) # brightness def clamp(valu...
by Davespice
Fri Oct 28, 2016 10:30 am
Forum: Astro Pi
Topic: Astropi specifiactions
Replies: 7
Views: 2487

Re: Astropi specifiactions

Bonjour Julien, thanks for your questions. I'll try to take each one in turn below. Is it always fixed? Is that astronauts can be removed to carry out an experiment? There is one Astro Pi hard-mounted on a multi-use bracket in the Columbus module. A second one was mounted onto a hatch window in Node...
by Davespice
Mon Oct 24, 2016 7:05 pm
Forum: Astro Pi
Topic: Sense Hat missing RTIMU module
Replies: 2
Views: 3464

Re: Sense Hat missing RTIMU module

For reference, this is being dealt with on GitHub.
by Davespice
Thu Oct 13, 2016 1:49 pm
Forum: Astro Pi
Topic: Sense Hat Calibration and Compass.py Example Code
Replies: 4
Views: 4053

Re: Sense Hat Calibration and Compass.py Example Code

Yeah you can do it that way, or - you can set the screen rotation to I think either 90 or 270. sense.set_rotation(angle) The other thing you can do is manipulate the led_loop variable at the top of the program, move some LED numbers from the front to the back and you'll see this offsets where the bl...
by Davespice
Wed Oct 12, 2016 10:31 am
Forum: Astro Pi
Topic: European Astro Pi, what is this mission plan all about?
Replies: 0
Views: 1263

European Astro Pi, what is this mission plan all about?

Please refer to the information on the ESA website. This was updated on 17/10/2016 with more details and provides greater clarity on what you need to do.

If you have any questions after reading it feel free to post them below and I'll try to answer them.
by Davespice
Wed Oct 12, 2016 10:18 am
Forum: Astro Pi
Topic: Sense Hat Calibration and Compass.py Example Code
Replies: 4
Views: 4053

Re: Sense Hat Calibration and Compass.py Example Code

Ah yes, I think there is a bug with the actual python code in that example. I think it points West... so it's always 90 degrees out :)
You can bodge it by using set_rotation and then it should work.
by Davespice
Wed Oct 12, 2016 10:15 am
Forum: Astro Pi
Topic: Setting locale destroys RTIMULib.ini
Replies: 1
Views: 1220

Re: Setting locale destroys RTIMULib.ini

That sounds like a bug with the RTIMU library that we use, you could report it here https://github.com/richardstechnotes/RTIMULib2
by Davespice
Wed Oct 12, 2016 10:06 am
Forum: Astro Pi
Topic: Compass conflicts with Pitch and Roll - Reading of Zero
Replies: 1
Views: 1076

Re: Compass conflicts with Pitch and Roll - Reading of Zero

So the get_compass function makes a call to set_imu_config to disable everything but the compass. In your code you would need to do something like this to compensate north = sense.get_compass() sense.set_imu_config(True, True, True) orientation = sense.get_orientation() pitch = orientation['pitch'] ...
by Davespice
Wed Aug 24, 2016 11:21 am
Forum: Astro Pi
Topic: Browser based Sense HAT Emulator open beta this weekend!
Replies: 8
Views: 3823

Re: Browser based Sense HAT Emulator open beta this weekend!

Oh? What issue number is it? I can't see it on there, unless it's closed and we need to reopen it.
by Davespice
Tue Aug 23, 2016 8:32 am
Forum: Astro Pi
Topic: New release of Sense HAT Python library v2.2.0
Replies: 8
Views: 6317

Re: New release of Sense HAT Python library v2.2.0

Just to let you know the latest version of the API is now in apt. To pull it run the following commands.

Code: Select all

sudo apt-get update
sudo apt-get install python-sense-hat python3-sense-hat -y
by Davespice
Tue Aug 23, 2016 8:30 am
Forum: Astro Pi
Topic: Sense HAT RGB values limitation?
Replies: 7
Views: 4442

Re: Sense HAT RGB values limitation?

Yeah the gamma functions were put in just before the Astro Pi mission started. ESA required us to give it a dimming function because the ISS is really dark and dingy and full brightness would dazzle the crew :)
by Davespice
Tue Aug 23, 2016 8:28 am
Forum: Astro Pi
Topic: Browser based Sense HAT Emulator open beta this weekend!
Replies: 8
Views: 3823

Re: Browser based Sense HAT Emulator open beta this weekend!

In IE the image of the sense hat is half hidden. I can only see the bottom half of it. IE locked up eventually too and I had to use task manager to close it. I was really wanting to test some new code on it too. I have to redo my joystick code. Would have been nice to test it on the emulator first ...
by Davespice
Tue Aug 23, 2016 8:21 am
Forum: Astro Pi
Topic: One Joystick Key Press, Two Events
Replies: 3
Views: 1836

Re: One Joystick Key Press, Two Events

Folks, did you know this has all been simplified into the Sense HAT API itself? From version 2.2.0 onwards. Among other things you can now go: sense.stick.get_events() Scroll down to Joystick here: http://pythonhosted.org/sense-hat/api/ You probably have version 2.1.0 installed though so you'll need...
by Davespice
Mon Aug 08, 2016 10:49 am
Forum: Astro Pi
Topic: SenseHat Joystick events
Replies: 4
Views: 3211

Re: SenseHat Joystick events

They are available in pip already, see here: viewtopic.php?f=104&t=154230
But if you can wait a few days they should also be available in apt.
by Davespice
Fri Aug 05, 2016 1:15 pm
Forum: Astro Pi
Topic: Browser based Sense HAT Emulator open beta this weekend!
Replies: 8
Views: 3823

Browser based Sense HAT Emulator open beta this weekend!

A web-based emulator of the Sense HAT is now in beta and ready for you all to get your hands on. In partnership with US-based startup Trinket , the emulator has been created to allow everybody the chance to programme with the Sense HAT, increasing educational opportunities AND future interaction wit...
by Davespice
Mon Jul 18, 2016 12:40 pm
Forum: General discussion
Topic: Apollo Guidance Computer on Pi
Replies: 13
Views: 15060

Apollo Guidance Computer on Pi

Hi all; http://www.therpf.com/attachments/f11/apollo-lem-5-dsky-agc-agc2.jpg-254822d1384272894 Those of you who're old enough to know what this is, there is a cross platform software emulation of the AGC available online here: http://www.ibiblio.org/apollo/ I've saved you the trouble of building it....
by Davespice
Wed Jul 13, 2016 9:43 am
Forum: Astro Pi
Topic: New release of Sense HAT Python library v2.2.0
Replies: 8
Views: 6317

New release of Sense HAT Python library v2.2.0

Hi all We have just done a new release of the Sense HAT python library. Version 2.2.0. It's planned to go ino the next Raspbian image however, if you want it now, you can install it using pip. sudo apt-get remove python-sense-hat python3-sense-hat sudo pip install sense_hat sudo pip3 install sense_h...
by Davespice
Thu Jun 16, 2016 1:34 pm
Forum: Astro Pi
Topic: AstroPi Data Analysis - O2 Pressurization Event
Replies: 3
Views: 1764

Re: AstroPi Data Analysis - O2 Pressurization Event

Hi Scott, I concur with your findings. The anomaly on 25/02/2016 is most interesting though, the pressure shouldn't jump up and then back down again. So I'm stumped for an explanation for that one. I'm going to attempt to get someone for DLR or UKSA to verify.

Go to advanced search