Ticket #155 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

TurtleArtwithSensors has different requirements for non-XO hardware

Reported by: walter Owned by: walter
Priority: Normal Milestone: 0.90
Component: Turtleart Version: Unspecified
Severity: Minor Keywords:
Cc: sascha_silbe, sayamindu Distribution/OS: Unspecified
Bug Status: Assigned

Description

On Ubuntu, using sugar-jhbuild, TA with Sensors fails to launch due to missing moduke alsaaudio imported by audiograb.py

Change History

Changed 4 years ago by walter

the python-alsaaudio module (alsaaudio.so) perhaps should be in the build, but there is a follow up problem for non-XO machines. There seems to be a mode that was added for the XO mic in:

File "/home/walter/Activities/TurtleArtwithSensors.activity/talogo.py", line 3

24, in doevalstep

if not lc.step.next(): stopsignoff(lc); return False

File "/home/walter/Activities/TurtleArtwithSensors.activity/talogo.py", line 1

36, in evalsym

else: result = lc.cfun.fcn(lc, *lc.arglist)

File "/home/walter/Activities/TurtleArtwithSensors.activity/talogo.py", line 2

49, in <lambda>

defprim(lc,'sensor_val0', 0, lambda lc: sensor_val(lc, 0))

File "/home/walter/Activities/TurtleArtwithSensors.activity/talogo.py", line 3

68, in sensor_val

ag = AudioGrab()

File "/home/walter/Activities/TurtleArtwithSensors.activity/audiograb.py", lin

e 47, in init

self.dcmode = Mixer('DC Mode Enable')

Changed 4 years ago by walter

  • status changed from new to accepted

I suppose I should be adding alsaaudio module to the bundle. There are numerous other problems with audio that need to be fixed: perhaps this can become a collector ticket for them all:

1. alsaaudio module required
2. pitch doesn't work due to missing real_fft module
3. audio is turned on and off with each sample. It should be left on while a stack is running and TA should detect when it is put into the background in order to free up the device.
4. resistance and voltage blocks should be disabled on non-OLPC-XO-1 machines.

Changed 4 years ago by gregdek

  • distribution set to Unspecified
  • status_field set to Assigned
  • summary changed from TurtleArtwithSensors requires alsaaudio module to TurtleArtwithSensors has different requirements for non-XO hardware
  • severity set to Minor
  • milestone set to 0.86

Moving out to the 0.86 release.

Changed 4 years ago by erikos

The problem is, if you add it to the bundle it will break on different architectures - 64bit etc. Is this functionality not available upstream?

Changed 4 years ago by walter

The OLPC-specific needs are not upstream (and I cannot imagine they will ever be accepted upstream), so the inclusion of the binary is for OLPC, not other distros.

Changed 4 years ago by sascha_silbe

  • cc sascha_silbe added

Changed 4 years ago by sayamindu

  • cc sayamindu added

Changed 4 years ago by walter

  • priority changed from minor to Normal
  • milestone changed from 0.86 to 0.88

Changed 3 years ago by walter

  • milestone changed from 0.88 to 0.90

Will resolve in context of 0Install work.

Changed 3 years ago by walter

Well, with the work Sascha did on Measure's amixer controls, I managed to rework the audio grab for TA with sensors to no longer have any alsaaudio dependencies. #2035 is relevant to TA as well.

Changed 3 years ago by walter

  • status changed from accepted to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.