<set_> Hey guys/gals. It is almost Friday Funday!
ft has quit [Ping timeout: 272 seconds]
ft has joined #beagle
<set_> and finally, i.e. yesterday! I finally got the build process down pat again! I know, I know. Everyone already knows.
<set_> I had to remember what happened and when. Then, a wild guess. Now, building!
brook has joined #beagle
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #beagle
thinkfat has joined #beagle
thinkfat_ has quit [Ping timeout: 255 seconds]
indigaz has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
Shadyman has joined #beagle
buzzmarshall has quit [Quit: Konversation terminated!]
ikarso has joined #beagle
brook has quit [Remote host closed the connection]
hnv has quit [Quit: Client closed]
thinkfat has quit [Ping timeout: 240 seconds]
otisolsen70 has joined #beagle
Raajeshwar has joined #beagle
Raajeshwar has quit [Ping timeout: 244 seconds]
Shadyman has quit [Quit: Leaving.]
Raajeshwar has joined #beagle
Raajeshwar has quit [Ping timeout: 244 seconds]
ft has quit [Quit: leaving]
Raajeshwar has joined #beagle
set_ has quit [Ping timeout: 272 seconds]
set_ has joined #beagle
lucascastro has joined #beagle
florian has joined #beagle
otisolsen70 has quit [Quit: Leaving]
Raajeshwar has quit [Quit: Ping timeout (120 seconds)]
Raajeshwar has joined #beagle
Posterdati has quit [Read error: Connection reset by peer]
starblue has quit [Ping timeout: 272 seconds]
starblue has joined #beagle
otisolsen70 has joined #beagle
Posterdati has joined #beagle
Raajeshwar has quit [Quit: Client closed]
otisolsen70 has quit [Ping timeout: 240 seconds]
<set_> Yawning in the morning w/ the ServoCape at the helm!
<set_> The only issue at hand is this idea. I cannot make lists in python3 to handle the movement of two, separate servos at the same time.
<set_> So, when I make a function on the BBB for the ServoCape, my function passes but my source in another file that calls the function and class gets error prone.
<set_> ...
<set_> Would making lists in the file that gets called be useful or would I use need to make lists in the source that is used to handle the servos from the PCA9685 on the ServoCape?
otisolsen70 has joined #beagle
<lucascastro> "the same time" same clock time. don't you need parallel process ?
<lucascastro> afk
uart0_person has joined #beagle
<uart0_person> Hello
<uart0_person> zmatt I think now works, I replaced ttys0 in more files with ttys1 and used those mask commands
Raajeshwar has joined #beagle
<zmatt> lucascastro: no
<zmatt> set_: ??
<set_> @zmatt: Do not worry. I am out classed!
<set_> I need to get ready to get the ole truck worked on! BBL!
<lucascastro> I guess if it's going to send data to two gpio output, 'to two output' and expect the same time operation, isn't it required parallel process?
<uart0_person> now I will just write a python script trying to connect to uart0 and see if anything is arriving
<zmatt> lucascastro: no? this isn't about gpio anyway, but using parallel threads/processes would just degrade performance and make it harder to get any useful timing relationship
<zmatt> (since "parallel" threads/processes just execute in a sequential time-sliced manner anyway)
<lucascastro> so required some mirror circuit.
<zmatt> ????
<lucascastro> I can't see how it can get same time operation without some external circuit arrangement at all, so it can duplicate the signal.
<lucascastro> I got wrong.
<lucascastro> I guessed he was trying same move to two motors at same time... mirrored movement.
<zmatt> the subject was controlling multiple servo outputs on the servocape, this reallly doesn't any sort of high-precision timing (nor will you get any anyway since the servocape uses an i2c pwm controller)
<zmatt> sending commands for both outputs back-to-back is plenty tight enough
uart0_person96 has joined #beagle
uart0_person96 has quit [Ping timeout: 244 seconds]
uart0_person has quit [Ping timeout: 244 seconds]
lucascastro has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
ikarso has joined #beagle
uart0_person has joined #beagle
ft has joined #beagle
Raajeshwar has quit [Quit: Client closed]
<jfsimon1981> Hello, a bit of clarification could be helpful regarding DWT the watchdog timer
<jfsimon1981> Do we know if that's tied to a crystal clock or RC ?
<jfsimon1981> I'd like to check its accuracy compared with system clock (for example the usleep() or sleep_for() function calls).
<jfsimon1981> I understand the WDT clock comes from 32 kHz, will be a RC or XTAL.
<jfsimon1981> And system timers I understand they come from system interrupt, i'm not sure wether this is the same clock source or not and deviations they can have between them.
<jfsimon1981> If someone has done a bit of work already with the watchdog, thanks.
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
<zmatt> jfsimon1981: essentially all clocks on the system derive from the 24 MHz oscillator
<zmatt> except the rtc clock
<jfsimon1981> really, are you sure also watchdog clock for this ?
<jfsimon1981> ok.
<zmatt> the watchdog timer can either be clocked by an internal RC osc or by a 32 kHz clock that derives from the 24 MHz osc ... but the internal RC osc is known to be so incredibly inaccurate that it's essentially useless
<zmatt> like the internal RC osc is specified as "16 kHz - 60 kHz"
<jfsimon1981> That's what i was a bit worry about
<zmatt> but that's why linux just doesn't use the internal RC osc for anything
<jfsimon1981> i intended to have about 50% separation margin for safely, i know some capacitors can get ver ver different values with extreme temperature.
<jfsimon1981> Ok that's better then
<zmatt> if your main osc dies there's really nothing much you can do anyway
<jfsimon1981> Ye sthat sounds very reasonable
<jfsimon1981> For sure i much prefer it on the 24MHz than have to get good margins for RC
<jfsimon1981> All right thank you i'll keep the soft tight then
<zmatt> note that instead of using the watchdog directly, you can also let systemd keep the watchdog alive and use per-service watchdogs provided by systemd to kill and restart services if they hang
<zmatt> but whether or not that's preferred is up to you
<jfsimon1981> yes i remind, though i have a specific set of parameters here to enable and disable or change timout per customer parameter (which can be updated at runtime).
<jfsimon1981> Essentially, there are situations where the soft will hang off on purpose (ie external device becomes unreachable for too long). In that case I let the customer have flexibility to get automatic reboots every wdt period or none.
<zmatt> oh and it looks like I lied: linux does use the RC osc for one thing, namely as debounce clock for the gpio0 controller, which makes sense since that clock should be available even when the main osc is powered off in deepsleep (since gpio0 is a wakeup source for deepsleep) and the rtc osc is optional hence can't be relied on
<jfsimon1981> I don't know in advance how they will set it up.
<jfsimon1981> yep
<zmatt> and a debounce clock doesn't have to be very precise anyway
<jfsimon1981> that one is not significant for accuracy, i think it's a few ms debounce typically
<jfsimon1981> like 5ms
<jfsimon1981> Where do you find those infos ?
<zmatt> honestly I'm not even sure how you'd enable debounce for specific gpios
<zmatt> /sys/kernel/debug/clk/clk_summary
<jfsimon1981> I was reading the 5k pages manual but that all depends on the system configuration.
<jfsimon1981> Ok right
<zmatt> that shows your currently configured clock tree
<jfsimon1981> i'll have a look
<zmatt> clk_rc32k_ck is the RC osc
<jfsimon1981> ok thx
<zmatt> sys_clkin_ck is the 24 MHz main osc
<jfsimon1981> ok
uart0_person has quit [Ping timeout: 244 seconds]
<jfsimon1981> very useful
<zmatt> jfsimon1981: also, I made a tiny utility that's quite handy to find things in files that are organized into a tree based on indent: https://pastebin.com/GwXvzHex ... save as /usr/local/bin/indentgrep and make it executable, and then you can do this: https://pastebin.com/raw/rgXBF1z9
uart0_person has joined #beagle
<uart0_person> Hi zmatt
<uart0_person> thank you for the help
<zmatt> jfsimon1981: it shows lines that match the pattern given *and* their parents (based on indent)
<jfsimon1981> ok
<zmatt> uart0_person: you're welcome!
<zmatt> glad to hear you got it working
<uart0_person> it seems working, it booted after I changed in the other files
<uart0_person> now just need to see if there is anything arriving in uart0
<uart0_person> I am going to write a little python script to see if there is arriving, but is there a command line I can enter in the terminal to see this?
<zmatt> not really, using the python3 repl to test this interactively would be the easier way
<jfsimon1981> ok thanks
uart0_person has quit [Ping timeout: 244 seconds]
aussetg has quit [Remote host closed the connection]
aussetg has joined #beagle
uart0_person has joined #beagle
uart0_person has quit [Ping timeout: 244 seconds]
florian has quit [Quit: Ex-Chat]
brook has quit [Remote host closed the connection]
brook has joined #beagle
<set_> Whelp...I made it back, got ripped off, and now. Well. I am broke and w/ my BBB!
<set_> @zmatt: I think what I need is a list in a dictionary not just some random barf of lists I hand sculpt.
<set_> So, this nice fellow online told me so. I am going to try it!
<set_> I was using assignment operators instead of : operations in a list for dictionaries.
<zmatt> set_: I see you typing words, I have no idea what they mean
<set_> All I know so far... 1. The ServoCape is awesome. 2. It works well w/ the BBB.
<set_> I am learning about dictionaries now w/ source that I call from another file.
<set_> So, I have file_A and my source, file_B, uses the dictionary from a function from file_A.
<set_> I know.
<set_> It is not rocket science but still, I am learning more!
<set_> Finally, a way I can use dict objects in a function to handle movement of motors.
<set_> @zmatt: Once I get the source ready, I will share it.
<set_> This way, you can tell others about the ServoCape when they come in and wander in w/ ideas about the PCA9685!
<set_> coding is really a complicated science...
<set_> It is like rules and regulations dictate what is collective until a change is made upstream or accepted for the "betterment" of the language.
<set_> For instance, Python3... I always thought it was an easy to learn language. It is not so easy. They have many libs. and built-ins that are very useful but I have no clue, as @zmatt will say, when or why to use the built-ins.
<set_> ...
<set_> For instance. os, glob, and etc.
<set_> It seems someone would have put together a sheet of python3 somewhere that teaches system calls and the difference of userspace and system calls.
<set_> Are system calls python3-cython or are...never mind me.
ikarso has quit [Quit: Connection closed for inactivity]
zjason` is now known as zjason
lucascastro has joined #beagle
uart0_person has joined #beagle
brook has quit [Remote host closed the connection]
vagrantc has joined #beagle
brook has joined #beagle
<set_> Okay! I just figured it out. Nothing I do works b/c of other people. Aw!
<set_> I repeat. Aw!
buzzmarshall has joined #beagle
buzzmarshall has quit [Client Quit]
buzzmarshall has joined #beagle
brook has quit [Remote host closed the connection]
uart0_person has quit [Ping timeout: 244 seconds]
brook has joined #beagle
<jfsimon1981> set_ do you code in Python ?
Shadyman has joined #beagle
lucascastro has quit [Ping timeout: 272 seconds]
<set_> I try.
<set_> So, yes and no. I would say I try to code in Python more than wanting to mow grass but I am far from a professional.
<set_> jfsimon1981: I have not sat down to completely understand each, separate mechanism in the python3 langauge set. So, I do not have a firm grasp on anything! Ever. But...I am going to make it to vectors and arrays one day. Bet on it!
otisolsen70 has quit [Quit: Leaving]
<set_> That is the python3 error I am coming across. Has anyone seen such a thing?
<set_> "unhashable" ?
<set_> What?
<set_> It is like I am lost in Egypt on a whim for traveling to England.
<set_> Aw.
<set_> brb
<set_> senses are back. Phew.
<set_> It tells me in output, 'function' object has no attribute 'name', and then I can make an addition to the function for name. It still says, 'function' object has no attribute 'name'.
<set_> I think this loop has me goofed-umed.
nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
<jfsimon1981> set_ it's just containers i believe
<set_> I have some files to share.
<jfsimon1981> (vector and array)
<set_> Please bear w/ me.
<jfsimon1981> i'm leaving
<set_> Yay!
<set_> I will catch up w/ you later, i.e. if possible.
<jfsimon1981> yes
<jfsimon1981> but checkout python irc
<set_> Oh. Okay.
<set_> Thank you.
<jfsimon1981> this is almost certain you'll find at least one
<set_> Okay.
<jfsimon1981> just reading in there can already get you up to speed in that
<jfsimon1981> see you later
<set_> I am going elsewhere w/ my issues/errors. Python here I come!
<set_> Later for now!
<set_> anyway, here is one function in case anyone wants to participate: https://pastebin.com/krdkBe4a and this is in the change drawer now!
brook has quit [Remote host closed the connection]