mattb0ne has quit [Ping timeout: 255 seconds]
mattb0ne has joined #beagle
Shadyman has joined #beagle
mattb0ne has quit [Ping timeout: 260 seconds]
mattb0ne has joined #beagle
CrazyEddy has quit [Remote host closed the connection]
mattb0ne has quit [Ping timeout: 256 seconds]
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #beagle
vagrantc has quit [Quit: leaving]
renrelkha has quit [Quit: bye]
renrelkha has joined #beagle
vigneshr has quit [Quit: Connection closed for inactivity]
set_ has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
set_ has joined #beagle
buzzmarshall has quit [Quit: Konversation terminated!]
<zmatt> dunno, first time I've heard about a discord
brook has quit [Ping timeout: 255 seconds]
brook_ has joined #beagle
ikarso has joined #beagle
CrazyEddy has joined #beagle
<zmatt> (or maybe it's not, but I already forgot again)
Shadyman has quit [Quit: Leaving.]
mattb0ne has joined #beagle
mattb0ne has quit [Ping timeout: 245 seconds]
CrazyEddy has quit [Remote host closed the connection]
mattb0ne has joined #beagle
<mattb0ne> so zmatt back to my question. If I am usng two PRUs and I want one program to know about the mapping in the other PRU how would I map variables. Based on what you said about how things init I can only map the local PRU and shared memory...
<mattb0ne> Though I am confused, since wouldn't i have the same problem if I have two programs mapping to shared memory.
<mattb0ne> basically one program will always run and the other program will start and stop but want access to state of the other PRU
mattb0ne has quit [Ping timeout: 256 seconds]
mattb0ne has joined #beagle
mattb0ne has quit [Ping timeout: 252 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
mattb0ne has joined #beagle
Stat_headcrabed has joined #beagle
jfsimon1981_c has quit [Quit: Leaving]
mattb0ne has quit [Ping timeout: 276 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #beagle
<zmatt> yes, previously that hasn't been a problem since the other core was running an assembly program that didn't touch any ram other than its local ram
<zmatt> not sure what your current intentions are.... your code was previously completely synchronized to load cell measurements, not sure what to make what you've got right now
<zmatt> other than that it looks like it will spam python with messages at the pru's max rate
buzzmarshall has joined #beagle
mattb0ne has joined #beagle
<mattb0ne> right, the loadcell is still the bottleneck which is fine.
<mattb0ne> So is the compiler smart enough to deal with the fact that I am mapping to shared memory in two separate programs. Like when I load it wont overwrite anything?
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #beagle
<zmatt> lol no, the compiler is dumb as fuck
mattb0ne has quit [Ping timeout: 268 seconds]
<zmatt> the load cell wasn't merely "the bottleneck", it was the source of timing for your entire control loop
mattb0ne has joined #beagle
<zmatt> i.e. any alteration that causes "receive_measurement()" to no longer be at the top of your main loop is a complete change in how the program works
<zmatt> if you want to use two C programs, the shared memory region should be initialized by at most one of them
<zmatt> or they could be made responsible for non-overlapping parts of it
<zmatt> it would be nice if it were possible to just define and initialize the variable in one program and declare it as "extern" in the other and somehow make this work with the linker, but that doesn't seem like it would be particularly easy (but it's something I've had occasional thoughts about myself)
mattb0ne has quit [Ping timeout: 256 seconds]
<zmatt> easiest is to just ensure (though the linker script) that each piece of memory is "owned" by only one of the two programs, allocate stuff in it at fixed offsets, and then access it from the other core by casting the address to a pointer (same as how you accessed the quadrature decoder value when the other pru core was doing that)
<zmatt> what your use case currently for using both cores?
jfsimon has quit [Read error: Connection reset by peer]
jfsimon1981 has joined #beagle
darkapex_ has quit [Quit: WeeChat 2.3]
darkapex has joined #beagle
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #beagle
ikarso has joined #beagle
Stat_headcrabed has quit [Quit: Stat_headcrabed]
mattb0ne has joined #beagle
mattb00ne has joined #beagle
<mattb00ne> I am stuck on why this does not incrementing
<mattb00ne> is the c code
<mattb00ne> the python
<mattb00ne> when I run I will get that the target and current are different but it appears that pos is not incrementing or the code gets trapped.
<mattb00ne> but I am not sure why...
<mattb00ne> wondering if my mapping is no good.
mattb0ne has quit [Ping timeout: 245 seconds]
mattb00ne has quit [Ping timeout: 260 seconds]
zjason` has joined #beagle
zjason has quit [Ping timeout: 245 seconds]
mattb0ne has joined #beagle
mattb0ne has quit [Ping timeout: 264 seconds]
renrelkha has quit [Quit: bye]
renrelkha has joined #beagle