newsletters:2025-01
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newsletters:2025-01 [2025/02/03 02:37] – [General Folk system improvements] osnr | newsletters:2025-01 [2025/02/03 03:46] (current) – [Portable Folk gadget] osnr | ||
---|---|---|---|
Line 34: | Line 34: | ||
=== Smoothing === | === Smoothing === | ||
+ | Mason has been testing [[https:// | ||
+ | |||
+ | > The idea is to use a continuous average, but if the movement is too large to jump to the new location… Right now I'm just averaging the matrix coefficients, | ||
+ | > | ||
+ | > I'm not completely satisfied with how it's designed right now as it's a linear interpolation of the matrix coefficients. I'm wondering if I could do something like a quadratic or hermite spline of position + rotation as quaternion | ||
+ | |||
+ | It reduces jitter a lot; probably most useful for the code editor where jitter gets very annoying. Videos are on Discord if you're on Discord: https:// | ||
+ | |||
+ | (Omar: Some interesting questions about what the right policy here is. It does look like it adds latency, and maybe the right behavior is application-dependent, | ||
+ | |||
+ | === Edit running programs === | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | When /page/ is a keyboard with path /kbPath/ / | ||
+ | / | ||
+ | the /kbPath/ cursor is /cursor/ { | ||
+ | |||
+ | set id " | ||
+ | |||
+ | When $page points up at /target/ & /target/ has program code / | ||
+ | |||
+ | Wish $target is labelled " | ||
+ | |||
+ | Hold " | ||
+ | # Claim the $kbPath cursor is [list 0 0 ] | ||
+ | Hold " | ||
+ | # Claim $id has editor code [deleteToBeginning $editorCode $cursor] | ||
+ | Claim $id has program code $runningCode | ||
+ | Claim $id has editor code $runningCode | ||
+ | } | ||
+ | lassign $cursor x y | ||
+ | Claim the $kbPath cursor is [list 0 $y] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | > This editor hack allows you to edit a running program by " | ||
==== New parallel evaluator ==== | ==== New parallel evaluator ==== | ||
- | Omar: Progress on this has been limited this month. | + | Omar: Progress on this has been limited this month. |
- | A lot of looking at these specific spans in Tracy where there was a blink-out of a tag outline: | + | {{: |
- | {{: | + | You can see the drawcount plot mentioned at the bottom |
- | You can see the drawcount plot at the bottom -- when that dips from 4 to 0, you know you have an unwanted blink. Tried adding more messages so we can see the actual statement. | + | You can see some of the red spans in the above images where threads are getting preempted while running Folk When code, which delays all downstream statements, and they might be delayed for 10ms+ while the thread isn't on the CPU, which means you'll miss the frame deadline and the page blinks out! Here's another one (the SAY I'm hovering over and the HOLD above it have both been preempted and delayed in that way): |
- | Red span | + | {{: |
- | I cleaned up the detection of past versions (it makes an explicit folk.pid file) and have been rethinking our thread spawning/ | + | |
+ | |||
+ | After getting back in late January, I ran into issues running the real-time scheduler branch from last month (it's hard to find & kill those threads by process name? do they dominate their CPUs too much?). So I cleaned up the detection of past versions (Folk now makes an explicit folk.pid file) and have been rethinking our thread spawning/ | ||
+ | |||
+ | Again, | ||
==== Portable Folk gadget ==== | ==== Portable Folk gadget ==== | ||
- | All the components are in. This revision uses the Orange Pi 5. | + | Omar: I've been working on a new portable Folk gadget that uses off-the-shelf parts, so anyone will be able to build/buy one, along with some other improvements: |
+ | |||
+ | All the components are in place and I'm starting to fix up the software to make Folk work on the platform. | ||
{{: | {{: | ||
+ | |||
+ | This revision uses the Orange Pi 5 instead of the Raspberry Pi 5, and a stereo USB camera instead of Pi wide-angle camera, which has caused various random issues. | ||
=== Network setup === | === Network setup === | ||
Line 60: | Line 108: | ||
* Still struggling to make it do ad-hoc or access point mode by default | * Still struggling to make it do ad-hoc or access point mode by default | ||
* (ideally it would work in concurrent mode, so could both get on known existing networks and make its own for wild environments: | * (ideally it would work in concurrent mode, so could both get on known existing networks and make its own for wild environments: | ||
- | * {{: | + | * {{: |
=== The stereo camera === | === The stereo camera === | ||
- | The stereo camera works! Its field of view is huge, though: | + | The stereo camera works! Its field of view is huge, though |
- | {{newsletters: | + | {{newsletters: |
- | Added crop support to just take the center part of the left image for now so we don't waste time processing the rest and can start trying to calibrate right away. | + | [[https:// |
+ | |||
+ | Haven' | ||
=== Current state & next steps === | === Current state & next steps === | ||
- | really heavy | + | Overall, the new gadget revision is in OK shape, although not done yet: |
- | + | ||
- | button works | + | |
- | + | ||
- | battery works | + | |
- | sound not working yet | + | * It has a working |
+ | * {{newsletters: | ||
+ | * This is the program that implements that (I just put it in setup.folk, since we don't have physical programs here yet): | ||
+ | * < | ||
+ | exec gpio mode 7 up | ||
- | need to figure | + | When display /disp/ has width /w/ height /h/ { |
+ | When the clock time is /t/ { | ||
+ | set pressed [expr {![exec gpio read 7]}] | ||
+ | set color [expr {$pressed ? " | ||
+ | Wish to draw a dashed stroke with points [list [list 0 0] [list $w 0] [list $w $h] [list 0 $h] [list 0 0]] \ | ||
+ | color $color width 10 dashlength 40 dashoffset [expr {fmod($t, 10)*-120}] | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | * it basically just sets a pullup resistor on GPIO 7 (where I plugged the button in) & shells | ||
+ | * It has a working battery, so you don't need to plug it in & carry a long extension cord! I haven' | ||
+ | * {{: | ||
+ | * (will be fun to get this info into Folk and display it ambiently in the corner or on the marching ants border or whatever) | ||
+ | * It's really heavy and kind of big, notably heavier than the older gadget (because it has 3 18650 batteries and a heavier mini projector with a full chassis). Not sure what to do about this. Maybe go back to the concept of the detachable battery pack (a standard USB-C battery pack would be ideal, but I don't think I could quite get that to work without more custom power stuff). | ||
+ | * It has a speaker! I haven' | ||
+ | * The biggest issue is that I haven' | ||
- | need to do some physical | + | Finally, |
==== RFID localization ==== | ==== RFID localization ==== | ||
Line 101: | Line 166: | ||
===== What we'll be up to in February ===== | ===== What we'll be up to in February ===== | ||
- | * **Our next Folk open house is [[https:// | + | * **Our next Folk open house is [[https:// |
+ | * Omar: Finish the new gadget revision (back panel, audio support, calibrate camera) and document it on GitHub for people to try. | ||
+ | * Omar: Set up the out-of-band RFID radio and maybe start on localization. | ||
+ | * Omar: Figure out thread management on the new evaluator so work items don't get delayed for 10ms at a time (hopefully will fix blinking) | ||
+ | * Andrés: Work on video | ||
+ | * Andrés: Dot detector port to work under 3D calibration | ||
* We'll be speaking at the [[https:// | * We'll be speaking at the [[https:// | ||
- | * We'll also be showing Folk as an interactive prototype in a workshop in the Design in Action course at Columbia GSAPP. The students' | + | * We'll also be showing Folk as an interactive prototype in a workshop in the Design in Action course at Columbia GSAPP. The students' |
+ | * Meeting with the people from [[https:// | ||
===== Links we've enjoyed ===== | ===== Links we've enjoyed ===== | ||
newsletters/2025-01.1738550244.txt.gz · Last modified: 2025/02/03 02:37 by osnr