#robotics Logs
Jan 15 2022
#robotics Calendar
12:00 AM Jak_o_Shadows: Nah, all seems good
12:08 AM rue_mohr: :)
12:08 AM rue_mohr: but as you can see, it could be a crazy complex machine
12:08 AM rue_mohr: same code, different LUT
12:08 AM Jak_o_Shadows: yeah
12:08 AM rue_mohr: http://paste.debian.net/1227176/ the printfs are a bit easier to follow
12:08 AM rue_mohr: and its the BBC the triggers it
12:16 AM rue_mohr: state machines are great for encoding and decoding sequences
12:16 AM rue_mohr: do you know of bigtrak, the programmable toy?
12:18 AM rue_mohr: progCore.c:37:26: error: expected ';' before ':' token
12:18 AM rue_mohr: 37 | state = FSMLUT[IP] >> 4:
12:18 AM rue_mohr: sofar my errors are silly
12:19 AM rue_mohr: huh, the last command didn't commit.
12:48 AM rue_mohr: 2217
02:52 AM rue_mohr: Jak_o_Shadows, in my complex thing here
02:52 AM Jak_o_Shadows: mmm?
02:53 AM rue_mohr: the Event output of the state machine is decoded by another switch
02:53 AM rue_mohr: IP = (E & 0x1F) | (state << 5);
02:53 AM rue_mohr: state = FSMLUT[IP] >> 4;
02:53 AM rue_mohr: EO = FSMLUT[IP] & 0x0F;
02:53 AM rue_mohr:
02:53 AM rue_mohr: switch (EO) {
02:53 AM rue_mohr: case ER_none : event_error(); break;
02:53 AM rue_mohr: case ER_incWriteCmd : proc_writeNextCmd( E ); break;
02:53 AM rue_mohr: case ER_writeCmd : proc_writeCmd( E ); break;
02:53 AM rue_mohr: case ER_writeParam1 : proc_writeparam1( E - EV_0); break;
02:53 AM rue_mohr: case ER_writeParam2 : proc_writeparam2( E - EV_0); break;
02:53 AM rue_mohr: case ER_clrProg : event_cmdOK(); proc_clearmem(); break;
02:53 AM rue_mohr: case ER_delLast : event_cmdOK(); proc_delCmd(); break;
02:53 AM rue_mohr: case ER_incExecLast : event_cmdOK(); proc_incAndTest(); break;
02:53 AM rue_mohr: case ER_execLast : event_cmdOK(); proc_testCmd(); break;
02:53 AM rue_mohr: case ER_run : event_cmdOK(); proc_runProg(); break;
02:53 AM rue_mohr: }
02:54 AM rue_mohr: looks like I got it tho
03:00 AM Jak_o_Shadows: nice
03:00 AM rue_mohr: I was having issues because the output event handlers can have an issue if the memory is full
03:00 AM rue_mohr: I was able to create an event back to the state machine that locks it into a "memory full" mode
11:46 AM Elleo_ is now known as Elleo
04:47 PM rue_mohr: hmm, I wonder if my delay function should have an abort flag it monitors
04:48 PM rue_mohr: or would that help, I have a lot of layers of functions I'd like it to climb out of
04:58 PM rue_mohr: oh and wifi controller
04:58 PM rue_mohr: I need to make up the controlpad as an SVG
08:59 PM rue_mohr: ok, shopping donwe