From d965a971d802c19096717f5353f993fbd91298d0 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Tue, 10 Sep 2024 01:20:23 +0900 Subject: [PATCH] more observation & testing... --- faa_roller/faa_roller.ino | 2 +- faa_roller/test.log | 72 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 71 insertions(+), 3 deletions(-) diff --git a/faa_roller/faa_roller.ino b/faa_roller/faa_roller.ino index 8373d4a..cd77cdf 100644 --- a/faa_roller/faa_roller.ino +++ b/faa_roller/faa_roller.ino @@ -281,7 +281,7 @@ void osc() } } } -Task osc_task(0, TASK_FOREVER, &osc, &runner, false); // -> ENABLED, at start-up. +Task osc_task(1, TASK_FOREVER, &osc, &runner, false); // -> ENABLED, at start-up. //*-*-*-*-*-*-*-*-*-*-*-*-* // diff --git a/faa_roller/test.log b/faa_roller/test.log index 9253917..70bdd5d 100644 --- a/faa_roller/test.log +++ b/faa_roller/test.log @@ -1,3 +1,9 @@ + + +with : Task osc_task(0, TASK_FOREVER, &osc, &runner, false); + + + ( id=4001, pitch=0.00, velocity=96.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) 156 ( id=4001, pitch=0.00, velocity=98.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) @@ -100,5 +106,67 @@ set_speed:44 156 ( id=4001, pitch=0.00, velocity=44.00, onoff=0.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) (pio) doohoyi@Doohos-MacBook-Pro:~/Documents/Arduino/faa/faa_roller (wifi-interrupt -)$ arduino-cli compile && arduino-cli upload -v -p /dev/tty.SLAB_USBtoUART && pio d -evice monitor -p /dev/tty.SLAB_USBtoUART -b 115200 +)$ arduino-cli compile && arduino-cli upload -v -p /dev/tty.SLAB_USBtoUART && pio device monitor -p /dev/tty.SLAB_USBtoUART -b 115200 + + + + +with : Task osc_task(1, TASK_FOREVER, &osc, &runner, false); + + + +156 +( id=4001, pitch=0.00, velocity=45.00, onoff=0.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=46.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=48.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:48 +156 +( id=4001, pitch=0.00, velocity=50.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=52.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:52 +156 +( id=4001, pitch=0.00, velocity=53.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=55.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:55 +156 +( id=4001, pitch=0.00, velocity=56.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=58.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:58 +156 +( id=4001, pitch=0.00, velocity=59.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=61.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:61 +156 +( id=4001, pitch=0.00, velocity=62.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=64.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:64 +156 +( id=4001, pitch=0.00, velocity=65.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=67.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:67 +156 +( id=4001, pitch=0.00, velocity=68.00, onoff=1.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +156 +( id=4001, pitch=0.00, velocity=69.00, onoff=0.00, x1=0.00, x2=0.00, x3=0.00, x4=0.00, ps=2000.00 ) +set_speed:69 + + + +osc msg parsing is lost + sometimes, set_speed also doesn't fire. + +- when no set_speed, subsequent 1-2-3 msg lost.. +when i change scheduler speed slower. becomes worse. (loose more) + +- then scheduling too slow? + +- but then, why no set_speed? isn't it being streamed? (buffered?=saved?) + +- at some cases, only set_speed doesn't fire. => msg. is there. but set_speed not.