So this is interesting. It means that a transfer was started, but not finished.
I don’t know what would cause that, but when it happens it’s supposed to cause a motion chip reset and then continue. The fix that I provided today may make that actually work the way it’s supposed to.
Well, I’m pretty sure the fix worked. Saber was working normally after an hour of sitting idle. I’ll leave it overnight and see what it does in the morning.
Cool. I’ll try it as well.
Hey all, so I connected the lightsaber with the usb and monitored it via serial monitor and it was working fine, I then flashed it with the new master and unplugged the usb, inserted my battery Swang on the lightsaber. I then go to try to twist off and it doesn’t turn off. Also the single button does not turn off.
Hum continues until I change the preset.
https://drive.google.com/file/d/1XGID-VgdxkDvkwmybSk9MxyP1MUA1uGw/view?usp=drivesdk
what’s the best way to share videos?
i was playing around with the motion gestures and and the gesture off worked but after a few attempts and trying to switch off the saber by twist off I wasn’t able to. please note that in this test the hum didn’t turn off.
unplugged the usb and plugged it back in twist on works but twist off doesn’t
23:24:53.906 -> Battery voltage: 0.15
23:24:58.486 -> EVENT: ?47 millis=329393
23:24:58.884 -> TWIST
23:24:58.884 -> EVENT: Twist millis=329800
23:24:58.884 -> Ignition.
23:24:58.917 -> unit = 0 vol = 0.50, Playing Bank16/preon1.wav
23:24:58.917 -> channels: 1 rate: 22050 bits: 16
23:24:59.481 -> EVENT: ?48 ON millis=330398
23:25:00.477 -> EVENT: ?48 ON millis=331400
23:25:03.265 -> Playing Bank16/poweron.wav
23:25:03.265 -> channels: 1 rate: 22050 bits: 16
23:25:03.265 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:03.265 -> channels: 1 rate: 22050 bits: 16
23:25:03.265 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:03.265 -> channels: 1 rate: 22050 bits: 16
23:25:03.397 -> EVENT: ?48 ON millis=334307
23:25:04.293 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:04.293 -> channels: 1 rate: 22050 bits: 16
23:25:04.293 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:04.293 -> channels: 1 rate: 22050 bits: 16
23:25:04.758 -> Playing Bank16/hum.wav
23:25:04.758 -> channels: 1 rate: 22050 bits: 16
23:25:05.388 -> EVENT: ?48 ON millis=336303
23:25:05.554 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:05.554 -> channels: 1 rate: 22050 bits: 16
23:25:05.587 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:05.587 -> channels: 1 rate: 22050 bits: 16
23:25:05.753 -> EVENT: Swing ON millis=336653
23:25:06.052 -> EVENT: Swing ON millis=336975
23:25:06.185 -> Playing Bank16/lswing1.wav
23:25:06.185 -> channels: 1 rate: 22050 bits: 16
23:25:06.185 -> Playing Bank16/hswing1.wav
23:25:06.218 -> channels: 1 rate: 22050 bits: 16
23:25:06.483 -> EVENT: Swing ON millis=337381
23:25:06.516 -> unit = 3 vol = 0.50, Playing Bank16/swing/swing7.wav
23:25:06.516 -> channels: 1 rate: 22050 bits: 16
23:25:06.583 -> EVENT: ?47 ON millis=337490
23:25:06.881 -> EVENT: Swing ON millis=337783
23:25:07.047 -> Playing Bank16/hum.wav
23:25:07.047 -> channels: 1 rate: 22050 bits: 16
23:25:07.180 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:07.180 -> channels: 1 rate: 22050 bits: 16
23:25:07.213 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:07.213 -> channels: 1 rate: 22050 bits: 16
23:25:07.279 -> EVENT: Swing ON millis=338193
23:25:08.209 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:08.209 -> channels: 1 rate: 22050 bits: 16
23:25:08.209 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:08.209 -> channels: 1 rate: 22050 bits: 16
23:25:09.137 -> Battery voltage: 0.24
23:25:09.436 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:09.436 -> channels: 1 rate: 22050 bits: 16
23:25:09.436 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:09.436 -> channels: 1 rate: 22050 bits: 16
23:25:09.801 -> Playing Bank16/hum.wav
23:25:09.801 -> channels: 1 rate: 22050 bits: 16
23:25:10.199 -> EVENT: ?47 ON millis=341117
23:25:10.730 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:10.730 -> channels: 1 rate: 22050 bits: 16
23:25:10.730 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:10.730 -> channels: 1 rate: 22050 bits: 16
23:25:10.963 -> TWIST
23:25:10.963 -> EVENT: Twist ON millis=341872
23:25:10.963 -> unit = 4 vol = 0.50, Playing Bank16/poweroff.wav
23:25:10.963 -> channels: 1 rate: 22050 bits: 16
23:25:11.195 -> EVENT: ?48 millis=342119
23:25:11.593 -> No sounds found: pstoff
23:25:12.855 -> EVENT: ?47 millis=343779
23:25:14.845 -> Playing Bank16/hum.wav
23:25:14.845 -> channels: 1 rate: 22050 bits: 16
23:25:16.604 -> EVENT: ?47 millis=347520
23:25:17.201 -> EVENT: Swing millis=348115
23:25:17.201 -> Ignition.
23:25:17.201 -> unit = 3 vol = 0.50, Playing Bank16/poweron.wav
23:25:17.201 -> channels: 1 rate: 22050 bits: 16
23:25:17.201 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:17.201 -> channels: 1 rate: 22050 bits: 16
23:25:17.201 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:17.234 -> channels: 1 rate: 22050 bits: 16
23:25:17.602 -> EVENT: ?48 ON millis=348522
23:25:18.696 -> Playing Bank16/hum.wav
23:25:18.696 -> channels: 1 rate: 22050 bits: 16
23:25:19.559 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:19.559 -> channels: 1 rate: 22050 bits: 16
23:25:19.559 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:19.559 -> channels: 1 rate: 22050 bits: 16
23:25:19.890 -> Playing Bank16/hum.wav
23:25:19.890 -> channels: 1 rate: 22050 bits: 16
23:25:20.554 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:20.554 -> channels: 1 rate: 22050 bits: 16
23:25:20.554 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:20.554 -> channels: 1 rate: 22050 bits: 16
23:25:21.682 -> EVENT: ?47 ON millis=352583
23:25:21.748 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:21.748 -> channels: 1 rate: 22050 bits: 16
23:25:21.748 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:21.748 -> channels: 1 rate: 22050 bits: 16
23:25:22.014 -> TWIST
23:25:22.014 -> EVENT: Twist ON millis=352930
23:25:22.014 -> unit = 4 vol = 0.50, Playing Bank16/poweroff.wav
23:25:22.014 -> channels: 1 rate: 22050 bits: 16
23:25:22.644 -> No sounds found: pstoff
23:25:22.678 -> EVENT: ?48 millis=353584
23:25:24.337 -> EVENT: ?47 millis=355265
23:25:24.702 -> TWIST
23:25:24.702 -> EVENT: Twist millis=355625
23:25:24.702 -> Ignition.
23:25:24.702 -> unit = 3 vol = 0.50, Playing Bank16/preon1.wav
23:25:24.702 -> channels: 1 rate: 22050 bits: 16
23:25:24.934 -> Playing Bank16/hum.wav
23:25:24.934 -> channels: 1 rate: 22050 bits: 16
23:25:25.365 -> EVENT: ?48 ON millis=356266
23:25:28.783 -> EVENT: ?48 ON millis=359706
23:25:29.048 -> Playing Bank16/poweron.wav
23:25:29.048 -> channels: 1 rate: 22050 bits: 16
23:25:29.048 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:29.048 -> channels: 1 rate: 22050 bits: 16
23:25:29.048 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:29.048 -> channels: 1 rate: 22050 bits: 16
23:25:29.148 -> Battery voltage: 0.23
23:25:29.977 -> Playing Bank16/hum.wav
23:25:29.977 -> channels: 1 rate: 22050 bits: 16
23:25:30.542 -> Playing Bank16/hum.wav
23:25:30.542 -> channels: 1 rate: 22050 bits: 16
23:25:32.399 -> EVENT: ?47 ON millis=363323
23:25:33.527 -> EVENT: ?48 ON millis=364447
23:25:33.626 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:33.626 -> channels: 1 rate: 22050 bits: 16
23:25:33.626 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:33.626 -> channels: 1 rate: 22050 bits: 16
23:25:34.655 -> EVENT: ?47 ON millis=365570
23:25:34.887 -> unit = 2 vol = 0.00, Playing Bank16/lswing1.wav
23:25:34.887 -> channels: 1 rate: 22050 bits: 16
23:25:34.887 -> unit = 1 vol = 0.00, Playing Bank16/hswing1.wav
23:25:34.887 -> channels: 1 rate: 22050 bits: 16
23:25:35.020 -> Playing Bank16/hum.wav
23:25:35.020 -> channels: 1 rate: 22050 bits: 16
23:25:35.086 -> Playing Bank16/lswing1.wav
23:25:35.086 -> channels: 1 rate: 22050 bits: 16
23:25:35.086 -> Playing Bank16/hswing1.wav
23:25:35.086 -> channels: 1 rate: 22050 bits: 16
23:25:35.584 -> Playing Bank16/hum.wav
23:25:35.584 -> channels: 1 rate: 22050 bits: 16
23:25:35.949 -> unit = 1 vol = 0.00, Playing Bank16/lswing1.wav
23:25:35.949 -> channels: 1 rate: 22050 bits: 16
23:25:35.949 -> unit = 2 vol = 0.00, Playing Bank16/hswing1.wav
23:25:35.949 -> channels: 1 rate: 22050 bits: 16
23:25:40.070 -> Playing Bank16/hum.wav
23:25:40.070 -> channels: 1 rate: 22050 bits: 16
23:25:40.635 -> Playing Bank16/hum.wav
23:25:40.635 -> channels: 1 rate: 22050 bits: 16
23:25:44.720 -> Playing Bank16/lswing1.wav
23:25:44.720 -> channels: 1 rate: 22050 bits: 16
23:25:44.720 -> Playing Bank16/hswing1.wav
23:25:44.720 -> channels: 1 rate: 22050 bits: 16
23:25:45.119 -> Playing Bank16/hum.wav
23:25:45.119 -> channels: 1 rate: 22050 bits: 16
23:25:45.686 -> Playing Bank16/hum.wav
23:25:45.686 -> channels: 1 rate: 22050 bits: 16
23:25:49.143 -> Battery voltage: 0.24
23:25:50.172 -> Playing Bank16/hum.wav
23:25:50.172 -> channels: 1 rate: 22050 bits: 16
23:25:50.736 -> Playing Bank16/hum.wav
23:25:50.736 -> channels: 1 rate: 22050 bits: 16
23:25:54.357 -> Playing Bank16/lswing1.wav
23:25:54.357 -> channels: 1 rate: 22050 bits: 16
23:25:54.357 -> Playing Bank16/hswing1.wav
23:25:54.357 -> channels: 1 rate: 22050 bits: 16
23:25:55.220 -> Playing Bank16/hum.wav
23:25:55.220 -> channels: 1 rate: 22050 bits: 16
23:25:55.785 -> Playing Bank16/hum.wav
23:25:55.785 -> channels: 1 rate: 22050 bits: 16
23:26:00.269 -> Playing Bank16/hum.wav
23:26:00.269 -> channels: 1 rate: 22050 bits: 16
23:26:00.845 -> Playing Bank16/hum.wav
23:26:00.845 -> channels: 1 rate: 22050 bits: 16
23:26:03.967 -> Playing Bank16/lswing1.wav
23:26:03.967 -> channels: 1 rate: 22050 bits: 16
23:26:04.000 -> Playing Bank16/hswing1.wav
23:26:04.000 -> channels: 1 rate: 22050 bits: 16
23:26:05.329 -> Playing Bank16/hum.wav
23:26:05.329 -> channels: 1 rate: 22050 bits: 16
23:26:05.860 -> Playing Bank16/hum.wav
23:26:05.860 -> channels: 1 rate: 22050 bits: 16
23:26:09.149 -> Battery voltage: 0.25
23:26:10.379 -> Playing Bank16/hum.wav
23:26:10.379 -> channels: 1 rate: 22050 bits: 16
23:26:10.910 -> Playing Bank16/hum.wav
23:26:10.910 -> channels: 1 rate: 22050 bits: 16
23:26:13.598 -> Playing Bank16/lswing1.wav
23:26:13.598 -> channels: 1 rate: 22050 bits: 16
23:26:13.632 -> Playing Bank16/hswing1.wav
23:26:13.632 -> channels: 1 rate: 22050 bits: 16
23:26:15.425 -> Playing Bank16/hum.wav
23:26:15.425 -> channels: 1 rate: 22050 bits: 16
23:26:15.956 -> Playing Bank16/hum.wav
23:26:15.956 -> channels: 1 rate: 22050 bits: 16
23:26:20.471 -> Playing Bank16/hum.wav
23:26:20.471 -> channels: 1 rate: 22050 bits: 16
23:26:21.002 -> Playing Bank16/hum.wav
23:26:21.002 -> channels: 1 rate: 22050 bits: 16
23:26:23.259 -> Playing Bank16/lswing1.wav
23:26:23.259 -> channels: 1 rate: 22050 bits: 16
23:26:23.259 -> Playing Bank16/hswing1.wav
23:26:23.259 -> channels: 1 rate: 22050 bits: 16
23:26:25.517 -> Playing Bank16/hum.wav
23:26:25.517 -> channels: 1 rate: 22050 bits: 16
23:26:26.049 -> Playing Bank16/hum.wav
23:26:26.049 -> channels: 1 rate: 22050 bits: 16
23:26:29.137 -> Battery voltage: 0.26
23:26:30.564 -> Playing Bank16/hum.wav
23:26:30.564 -> channels: 1 rate: 22050 bits: 16
23:26:31.095 -> Playing Bank16/hum.wav
23:26:31.095 -> channels: 1 rate: 22050 bits: 16
23:26:32.888 -> Playing Bank16/lswing1.wav
23:26:32.888 -> channels: 1 rate: 22050 bits: 16
23:26:32.888 -> Playing Bank16/hswing1.wav
23:26:32.888 -> channels: 1 rate: 22050 bits: 16
23:26:35.610 -> Playing Bank16/hum.wav
23:26:35.610 -> channels: 1 rate: 22050 bits: 16
23:26:36.142 -> Playing Bank16/hum.wav
23:26:36.142 -> channels: 1 rate: 22050 bits: 16
23:26:40.658 -> Playing Bank16/hum.wav
23:26:40.658 -> channels: 1 rate: 22050 bits: 16
23:26:41.190 -> Playing Bank16/hum.wav
23:26:41.190 -> channels: 1 rate: 22050 bits: 16
23:26:42.518 -> Playing Bank16/lswing1.wav
23:26:42.518 -> channels: 1 rate: 22050 bits: 16
23:26:42.518 -> Playing Bank16/hswing1.wav
23:26:42.518 -> channels: 1 rate: 22050 bits: 16
23:26:45.704 -> Playing Bank16/hum.wav
23:26:45.704 -> channels: 1 rate: 22050 bits: 16
23:26:46.235 -> Playing Bank16/hum.wav
23:26:46.235 -> channels: 1 rate: 22050 bits: 16
23:26:49.123 -> Battery voltage: 0.26
23:26:50.750 -> Playing Bank16/hum.wav
23:26:50.750 -> channels: 1 rate: 22050 bits: 16
23:26:51.314 -> Playing Bank16/hum.wav
23:26:51.314 -> channels: 1 rate: 22050 bits: 16
23:26:52.145 -> Playing Bank16/lswing1.wav
23:26:52.145 -> channels: 1 rate: 22050 bits: 16
23:26:52.145 -> Playing Bank16/hswing1.wav
23:26:52.145 -> channels: 1 rate: 22050 bits: 16
23:26:55.797 -> Playing Bank16/hum.wav
23:26:55.797 -> channels: 1 rate: 22050 bits: 16
23:26:56.362 -> Playing Bank16/hum.wav
23:26:56.362 -> channels: 1 rate: 22050 bits: 16
23:27:00.845 -> Playing Bank16/hum.wav
23:27:00.845 -> channels: 1 rate: 22050 bits: 16
23:27:01.409 -> Playing Bank16/hum.wav
23:27:01.409 -> channels: 1 rate: 22050 bits: 16
23:27:01.775 -> Playing Bank16/lswing1.wav
23:27:01.775 -> channels: 1 rate: 22050 bits: 16
23:27:01.775 -> Playing Bank16/hswing1.wav
23:27:01.775 -> channels: 1 rate: 22050 bits: 16
23:27:05.889 -> Playing Bank16/hum.wav
23:27:05.889 -> channels: 1 rate: 22050 bits: 16
23:27:06.453 -> Playing Bank16/hum.wav
23:27:06.453 -> channels: 1 rate: 22050 bits: 16
23:27:09.146 -> Battery voltage: 0.27
23:27:10.937 -> Playing Bank16/hum.wav
23:27:10.937 -> channels: 1 rate: 22050 bits: 16
23:27:11.405 -> Playing Bank16/lswing1.wav
23:27:11.405 -> channels: 1 rate: 22050 bits: 16
23:27:11.405 -> Playing Bank16/hswing1.wav
23:27:11.405 -> channels: 1 rate: 22050 bits: 16
23:27:11.500 -> Playing Bank16/hum.wav
23:27:11.500 -> channels: 1 rate: 22050 bits: 16
23:27:15.982 -> Playing Bank16/hum.wav
23:27:15.982 -> channels: 1 rate: 22050 bits: 16
23:27:16.546 -> Playing Bank16/hum.wav
23:27:16.546 -> channels: 1 rate: 22050 bits: 16
23:27:21.030 -> Playing Bank16/lswing1.wav
23:27:21.030 -> channels: 1 rate: 22050 bits: 16
23:27:21.030 -> Playing Bank16/hum.wav
23:27:21.030 -> channels: 1 rate: 22050 bits: 16
23:27:21.030 -> Playing Bank16/hswing1.wav
23:27:21.030 -> channels: 1 rate: 22050 bits: 16
23:27:21.594 -> Playing Bank16/hum.wav
23:27:21.594 -> channels: 1 rate: 22050 bits: 16
23:27:23.253 -> EVENT: Clash ON millis=474191
23:27:23.253 -> unit = 5 vol = 0.50, Playing Bank16/clsh/clsh02.wav
23:27:23.253 -> channels: 1 rate: 22050 bits: 16
in this monitor I changed preset and it turned off and twist on and twist off worked,
I may have found the cause (or at least a contributing factor). I had made DetectMenuTwist() available outside the menu a little while back but it appears it’s interfering with EVENT_TWIST in certain scenarios and the 1 button additions were missing the reset on last_twist_millis_ which is used to prevent multiple twist events triggering from users twisting back and forth more than once to perform action. It may have been causing certain Twist events shared by one and two buttons to act differently. I added to the existing PR for the saber_off_time_millis_ reset as this also was causing some motion troubles. If you can merge I’d like to have Matt and Max give the changes a try. I had some odd behavior on Twist events but it wasn’t consistent so I looked at the code itself and these fixes seem to have done it for me but since was an inconsistent problem I’d like more testing.
To clarify, download the latest prop file and flash the board, right?
Not until it’s merged.
I’m watching the github as we speak and I’ll monitor it for now
The “ALPHA exit criteria” list is done.
This the last call for new features in ProffieOS v6.x.
Unless something comes up, ProffieOS v6.x will go from ALPHA to BETA tomorrow.
(Assuming I have the time to make zip files and stuff.)
Going to beta will mean two things:
- I will make zip files available, to make it easier for people to try it.
- The bar for adding new features is raised, generally, after tomorrow, any new features we want to add to ProffieOS should go to ProffieOS 7.x instead of ProffieOS 6.x.
I have 2 helper functions I need to add to my prop, just need to resynch the prop with the recent fixes and I’ll submit.
This thread is ending. I’m creating a new thread for BETA testing.
(Long threads are hard to navigate…)