matches/MCTX3420.git
11 years agostuff
Jeremy Tan [Wed, 23 Oct 2013 08:12:04 +0000 (16:12 +0800)]
stuff

11 years agoypo typo
Jeremy Tan [Wed, 23 Oct 2013 02:43:41 +0000 (10:43 +0800)]
ypo  typo

11 years agofixes
Jeremy Tan [Wed, 23 Oct 2013 02:38:12 +0000 (10:38 +0800)]
fixes

11 years agoExperiment with unblurring the captured image
Jeremy Tan [Tue, 22 Oct 2013 14:12:32 +0000 (22:12 +0800)]
Experiment with unblurring the captured image

11 years agoAdd legend + save image works better
Jeremy Tan [Tue, 22 Oct 2013 13:45:25 +0000 (21:45 +0800)]
Add legend + save image works better

11 years agoIgnore static libs
Jeremy Tan [Tue, 22 Oct 2013 11:47:30 +0000 (19:47 +0800)]
Ignore static libs

11 years agoAdd samplerate control to control page
Jeremy Tan [Tue, 22 Oct 2013 11:45:12 +0000 (19:45 +0800)]
Add samplerate control to control page

11 years agomf
Jeremy Tan [Tue, 22 Oct 2013 11:41:18 +0000 (19:41 +0800)]
mf

11 years agoAutomatic commit of irc logs
Sam Moore [Mon, 21 Oct 2013 17:00:08 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge pull request #62 from firefields/master
firefields [Mon, 21 Oct 2013 06:54:49 +0000 (23:54 -0700)]
Merge pull request #62 from firefields/master

Added new GUI with refreshing interface.

11 years agoAdded new GUI with refreshing interface.
firefields [Mon, 21 Oct 2013 06:48:50 +0000 (14:48 +0800)]
Added new GUI with refreshing interface.

11 years agoMerge pull request #61 from jtanx/master
Jeremy Tan [Mon, 21 Oct 2013 04:23:32 +0000 (21:23 -0700)]
Merge pull request #61 from jtanx/master

modified version to get control key

11 years agomodified version to get control key
Jeremy Tan [Mon, 21 Oct 2013 04:22:50 +0000 (12:22 +0800)]
modified version to get control key

11 years agoAutomatic commit of irc logs
Sam Moore [Sun, 20 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoSwitch to named cookies (mctxkey)
Jeremy Tan [Sun, 20 Oct 2013 14:19:11 +0000 (22:19 +0800)]
Switch to named cookies (mctxkey)

11 years agoMerge pull request #60 from Callum-/master
Callum [Sun, 20 Oct 2013 10:16:52 +0000 (03:16 -0700)]
Merge pull request #60 from Callum-/master

updated dilatometer

11 years agoadded canny edge
Callum [Sun, 20 Oct 2013 10:14:41 +0000 (18:14 +0800)]
added canny edge

11 years agoMerge remote-tracking branch 'upstream/master'
Callum [Sun, 20 Oct 2013 08:00:44 +0000 (16:00 +0800)]
Merge remote-tracking branch 'upstream/master'

11 years agoAutomatic commit of irc logs
Sam Moore [Sat, 19 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoFix sensor header
Sam Moore [Sat, 19 Oct 2013 15:46:08 +0000 (23:46 +0800)]
Fix sensor header

Added averaging to sensors but forgot to commit sensor.h
Got overwritten in previous merge.

11 years agoMerge branch 'master' of github:szmoore/MCTX3420
Sam Moore [Sat, 19 Oct 2013 15:40:22 +0000 (23:40 +0800)]
Merge branch 'master' of github:szmoore/MCTX3420

Conflicts:
server/control.c

11 years agoAdd define for compiling under RTLinux
Sam Moore [Sat, 19 Oct 2013 15:35:36 +0000 (23:35 +0800)]
Add define for compiling under RTLinux

Tested on amd64; doesn't really improve sampling consistency over vanilla.
But whatever.

11 years agoMerge pull request #59 from jtanx/master
Jeremy Tan [Sat, 19 Oct 2013 14:54:04 +0000 (07:54 -0700)]
Merge pull request #59 from jtanx/master

Control updates and stuff

11 years agoSomewhat done control page
Jeremy Tan [Sat, 19 Oct 2013 14:50:26 +0000 (22:50 +0800)]
Somewhat done control page
Todo: Add in values for sensors

One problem is that we don't distinguish between the
whole 'strain' vs 'explode' experiment, and you can
pretty much set the pressure to whatever you like.

That should probably be changed??

Blegh javascript.

11 years agoFix another graph bug + some more work on control page
Jeremy Tan [Sat, 19 Oct 2013 13:19:00 +0000 (21:19 +0800)]
Fix another graph bug + some more work on control page

11 years agoadd back check
Jeremy Tan [Sat, 19 Oct 2013 07:49:08 +0000 (15:49 +0800)]
add back check

11 years agoUse experiment folders instead of chdir
Jeremy Tan [Sat, 19 Oct 2013 07:45:30 +0000 (15:45 +0800)]
Use experiment folders instead of chdir

11 years agoIncrease precision of timestamps
Sam Moore [Sat, 19 Oct 2013 07:30:11 +0000 (15:30 +0800)]
Increase precision of timestamps

Since we have nanosecond resolution. Theoretically.

11 years agofix fix fix
Jeremy Tan [Sat, 19 Oct 2013 07:01:33 +0000 (15:01 +0800)]
fix fix fix

11 years agoChange from usleep and gettimeofday to clock_nanosleep and clock_gettime
Sam Moore [Sat, 19 Oct 2013 06:56:39 +0000 (14:56 +0800)]
Change from usleep and gettimeofday to clock_nanosleep and clock_gettime

Requires -std=gnu99 instead of -std=c99

11 years agoFix brackets
Jeremy Tan [Sat, 19 Oct 2013 06:51:57 +0000 (14:51 +0800)]
Fix brackets

11 years agoFix two bugs in mctx.gui.js ++
Jeremy Tan [Sat, 19 Oct 2013 06:49:42 +0000 (14:49 +0800)]
Fix two bugs in mctx.gui.js ++

11 years agoGet most of the stuff down for controls
Jeremy Tan [Sat, 19 Oct 2013 02:38:45 +0000 (10:38 +0800)]
Get most of the stuff down for controls

11 years agoAutomatic commit of irc logs
Sam Moore [Fri, 18 Oct 2013 17:00:08 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Fri, 18 Oct 2013 13:57:49 +0000 (21:57 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoSort of make a start on control page
Jeremy Tan [Fri, 18 Oct 2013 13:57:10 +0000 (21:57 +0800)]
Sort of make a start on control page
Refactor other stuff in gui
although this will probably be erased anyway

11 years agoAdd python based GUI as proof of concept
Sam Moore [Fri, 18 Oct 2013 13:37:18 +0000 (21:37 +0800)]
Add python based GUI as proof of concept

Uses matplotlib.pyplot, numpy and requests
Interfaces with existing server API.

Could potentially be expanded using Tkinter or something.
TKinter won't look as pretty as a jQuery GUI though.

Also I have no idea how cookies work with requests.
At the moment you have to disable the login check in fastcgi.c to test this.

11 years agoAutomatic commit of irc logs
Sam Moore [Thu, 17 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Thu, 17 Oct 2013 09:11:17 +0000 (17:11 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoAllow only one camera on at a time.
Debian User [Thu, 17 Oct 2013 02:04:07 +0000 (10:04 +0800)]
Allow only one camera on at a time.

This fixes a crash if both cameras are activated at once.

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420
Debian User [Thu, 17 Oct 2013 01:58:58 +0000 (09:58 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420

11 years agoModify image capture routine
Debian User [Thu, 17 Oct 2013 01:57:58 +0000 (09:57 +0800)]
Modify image capture routine

11 years agoAutomatic commit of irc logs
Sam Moore [Wed, 16 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoAutomatic commit of irc logs
Sam Moore [Tue, 15 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoAutomatic commit of irc logs
Sam Moore [Mon, 14 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Mon, 14 Oct 2013 14:37:03 +0000 (22:37 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoWork on user based control
Sam Moore [Mon, 14 Oct 2013 14:32:02 +0000 (22:32 +0800)]
Work on user based control

Test file shadow (password matches username *cough*) for login purposes.

When a user gains FCGI_LockControl, a directory is created (if it doesn't exist).
Control_Handler will operate from the directory of the currently logged in user.

The user who owns the currently running experiment must match a user who wants to control it.
Alternately an administrator can pass "force"

Consider generalising this to also apply to actuators (since any user can change the actuator control :S).

Also it's horribly messy and terrible and all in the Control_Handler at the moment.

FCGI_Context should probably store a lot of the information that the g_controls structure is storing at the moment? Merge/replace?

11 years agoadd crappy download link (not really)
Jeremy Tan [Mon, 14 Oct 2013 11:22:09 +0000 (19:22 +0800)]
add crappy download link (not really)

11 years agoMerge branch 'master' of github:szmoore/MCTX3420
Sam Moore [Mon, 14 Oct 2013 07:48:25 +0000 (15:48 +0800)]
Merge branch 'master' of github:szmoore/MCTX3420

I BROKED IT ALL

11 years agoTweak Actuators/Sensors code
Sam Moore [Mon, 14 Oct 2013 07:47:31 +0000 (15:47 +0800)]
Tweak Actuators/Sensors code

Actuators stores an extra data point.
Actuators must be initialised to a value.
Replaced thresholds with a sanity function for sensors.

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Mon, 14 Oct 2013 07:43:36 +0000 (15:43 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agofix some crap
Jeremy Tan [Mon, 14 Oct 2013 07:42:04 +0000 (15:42 +0800)]
fix some crap

11 years agoAdd pressure sensors
Sam Moore [Mon, 14 Oct 2013 06:28:21 +0000 (14:28 +0800)]
Add pressure sensors

Untested on BBB

11 years agoMerge remote-tracking branch 'upstream/master'
Callum [Mon, 14 Oct 2013 04:34:53 +0000 (12:34 +0800)]
Merge remote-tracking branch 'upstream/master'

11 years agoslight changes
Callum [Mon, 14 Oct 2013 04:33:23 +0000 (12:33 +0800)]
slight changes

11 years agoAutomatic commit of irc logs
Sam Moore [Sun, 13 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoFix id bounds check for actuator + update graph code
Jeremy Tan [Sun, 13 Oct 2013 15:29:21 +0000 (23:29 +0800)]
Fix id bounds check for actuator + update graph code

I dunno, graph code seems to work... too tired to continue.

11 years agoMerge pull request #58 from Callum-/master
Callum [Sun, 13 Oct 2013 13:36:37 +0000 (06:36 -0700)]
Merge pull request #58 from Callum-/master

Dilatometer test function

11 years agoFinished test function
Callum [Sun, 13 Oct 2013 13:22:22 +0000 (21:22 +0800)]
Finished test function

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Sun, 13 Oct 2013 12:52:39 +0000 (20:52 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoRename help/data file + fix the sidebar width
Jeremy Tan [Sun, 13 Oct 2013 12:52:07 +0000 (20:52 +0800)]
Rename help/data file + fix the sidebar width

11 years agoMerge remote-tracking branch 'upstream/master'
Callum [Sun, 13 Oct 2013 11:49:27 +0000 (19:49 +0800)]
Merge remote-tracking branch 'upstream/master'

11 years agoAutomatic commit of irc logs
Sam Moore [Sat, 12 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge branch 'master' of github:szmoore/MCTX3420
Sam Moore [Sat, 12 Oct 2013 14:52:48 +0000 (22:52 +0800)]
Merge branch 'master' of github:szmoore/MCTX3420

11 years agoAdd dedicated page for graphing stuff
Sam Moore [Sat, 12 Oct 2013 14:48:57 +0000 (22:48 +0800)]
Add dedicated page for graphing stuff

Needs work. Would probably make professional web developers cry.
Can plot things. Can set time ranges to plot. Can plot things vs other things.
Seems to work.

The Actuator data needs to include 2 points every time it changes so that the
fact that it is stepping discretely instead of linearly changing is apparent.

Also data to plot can probably be updated rather than recreated every time.
(Unless the variables to plot are changed).

Lastly, it would be good if things maintained their colours.

Someone *cough* should make the radio boxes and check boxes suitably stylish.

11 years agoRemove old lock/release cases from control.c + hopefully silence warnings on 64 bit...
Jeremy Tan [Sat, 12 Oct 2013 14:13:33 +0000 (22:13 +0800)]
Remove old lock/release cases from control.c + hopefully silence warnings on 64 bit compilers for True_Stub

Those lock/release cases were a login loophole, woops...

=================================================================
control.c:61:11: warning: variable 'desired_mode' is used uninitialized whenever
      'if' condition is true [-Wsometimes-uninitialized]
        else if (!strcmp(action, "release")) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
control.c:77:6: note: uninitialized use occurs here
        if (desired_mode == CONTROL_START) {
            ^~~~~~~~~~~~
control.c:61:7: note: remove the 'if' if its condition is always false
        else if (!strcmp(action, "release")) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
control.c:38:2: note: variable 'desired_mode' is declared here
        ControlModes desired_mode;
        ^
====================================================================

Why, thank you clang :P

11 years ago@brief, not @purpose
Jeremy Tan [Sat, 12 Oct 2013 13:50:41 +0000 (21:50 +0800)]
@brief, not @purpose

11 years agoMinor formatting changes to justin's webpages.
Jeremy Tan [Sat, 12 Oct 2013 13:24:43 +0000 (21:24 +0800)]
Minor formatting changes to justin's webpages.

Ah, the wonder that is netbeans :P

Okay, so notepad++ is pretty good to, and doesn't use 300mb of ram...

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Sat, 12 Oct 2013 12:36:31 +0000 (20:36 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoMerge pull request #57 from justinjessada/master
Jeremy Tan [Sat, 12 Oct 2013 12:36:11 +0000 (05:36 -0700)]
Merge pull request #57 from justinjessada/master

Added data download page and help page (plus dummy files)

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Sat, 12 Oct 2013 12:25:38 +0000 (20:25 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoFormatting changes
Justin Kruger [Sat, 12 Oct 2013 11:17:39 +0000 (19:17 +0800)]
Formatting changes

11 years agoMerge remote-tracking branch 'upstream/master'
Justin Kruger [Sat, 12 Oct 2013 11:13:25 +0000 (19:13 +0800)]
Merge remote-tracking branch 'upstream/master'

11 years agoAdded data download page and help page (plus test files)
Justin Kruger [Sat, 12 Oct 2013 11:12:12 +0000 (19:12 +0800)]
Added data download page and help page (plus test files)

Help page is basically complete and just links to the wiki. Data
download page is kind of working, depends how/where we're actually going
to store experiment data. Folder of dummy files in "current" is just for
testing the download functionality.

11 years agoAutomatic commit of irc logs
Sam Moore [Fri, 11 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agosimple test function
Callum [Fri, 11 Oct 2013 05:26:54 +0000 (13:26 +0800)]
simple test function

11 years agoAutomatic commit of irc logs
Sam Moore [Thu, 10 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoRefactor Actuators
Sam Moore [Thu, 10 Oct 2013 16:14:36 +0000 (00:14 +0800)]
Refactor Actuators

Done fairly similar to Sensors now. Included the LED test and a new test that just writes to a file.
`tail -f` the file and change the control to see how Actuator_Loop automagically does its job.

New features / Notes:
 - ActuatorControl is a simple step increase (not just a single value) which Actuator_Loop automatically follows
   - That required very small changes :)
 - Control_Handler no longer checks for key (since that's passed as a cookie)
   - Will want to look at preventing different users from stopping an experiment in progress (by preventing them from logging in entirely?)
   - Will probably want to look at implementing "admin" and "regular" users, or at least providing the basis for it in the server
 - Can change sensor sampling rate through api
   - May want to look at implementing an "average over time period" to reduce the load on the client
     - eg: Sensor records at a sampling rate << 1s, but only records a DataPoint (average) every second
 - Actuators have a Sanity Check function; do something similar for Sensors?
   - Will want to look at safety stuff more carefully, since at the moment things just call "Fatal"
     - This should in turn call "Cleanup" which should in turn deinitialise any active Sensors/Actuators
     - Perhaps we need "Fatal" and "Reset" to give different return codes, and then ./run.sh will restart depending on the return code

Looking at getting values plotted against values (instead of time).
  - For each time stamp on the dependent variable, take the independent variable with time stamps between it and the next, then average
    - Seems reasonable, not sure whether to do in server or client though, will write something to test the algorithm first.

Things are getting there, but still a lot to do.

I just realised I temporarily uncommented security in fastcgi.c
... It's a good thing the system still hasn't been deployed, because I can't be bothered changing it back at the moment.

11 years agoMerge branch 'master' of github:szmoore/MCTX3420
Sam Moore [Thu, 10 Oct 2013 06:41:07 +0000 (14:41 +0800)]
Merge branch 'master' of github:szmoore/MCTX3420

11 years agoAutomatic commit of irc logs
Sam Moore [Wed, 9 Oct 2013 17:00:07 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMake Piped work better
Sam Moore [Wed, 9 Oct 2013 13:31:45 +0000 (21:31 +0800)]
Make Piped work better

Really, please never use Piped, I'm just having fun with it.

11 years agoMAJOR refactoring of Sensors code
Sam Moore [Wed, 9 Oct 2013 09:34:39 +0000 (17:34 +0800)]
MAJOR refactoring of Sensors code

Will probably get in trouble for this...

Abstracted out the threaded sensor control logic from the actual initialisation/reading/cleanup of sensors.
Adding a new sensor to the program still isn't just a one line process, but it's a lot more general than before.

Added test sensors for the strain gauges, total CPU usage (because that seemed interesting)

Went a bit insane with power and added a "Piped" sensor type which lets people run external programs for the sensors :S
(As long as it prints doubles to stdout and is unbuffered it will work).

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Wed, 9 Oct 2013 05:05:53 +0000 (13:05 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoimage fix for bbb
Jeremy Tan [Wed, 9 Oct 2013 05:05:08 +0000 (13:05 +0800)]
image fix for bbb

11 years agoMake it actually compile...
Sam Moore [Wed, 9 Oct 2013 02:14:33 +0000 (10:14 +0800)]
Make it actually compile...

Whoops.

Um, the fatal error on the strain gauges occurs after a couple of seconds.
Need to think more carefully about that.

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420
Sam Moore [Wed, 9 Oct 2013 02:07:29 +0000 (10:07 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420

ARGH

11 years agoAdd flot plot to styles
Sam Moore [Wed, 9 Oct 2013 02:06:58 +0000 (10:06 +0800)]
Add flot plot to styles

Apparently it's not needed, but whatever

11 years agoVarious changes
Sam Moore [Wed, 9 Oct 2013 02:04:29 +0000 (10:04 +0800)]
Various changes

Bug fix in Sensor_CheckData (incorrect format ordering caused segfault if a bad value was found)
Added in UWA LDAP auth to parameters file (commented out)

Presumably someone else edited stream.c and didn't commit (Jeremy?)

11 years agoAutomatic commit of irc logs
Sam Moore [Tue, 8 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoAutomatic commit of irc logs
Sam Moore [Mon, 7 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge pull request #56 from jtanx/master
Jeremy Tan [Mon, 7 Oct 2013 16:03:18 +0000 (09:03 -0700)]
Merge pull request #56 from jtanx/master

update gui (update system diagram + header)

11 years agore-enable strain graph on control page
Jeremy Tan [Mon, 7 Oct 2013 10:42:06 +0000 (18:42 +0800)]
re-enable strain graph on control page

11 years agochange sbd + header
Jeremy Tan [Mon, 7 Oct 2013 08:29:02 +0000 (16:29 +0800)]
change sbd + header

11 years agoAutomatic commit of irc logs
Sam Moore [Sun, 6 Oct 2013 17:00:06 +0000 (01:00 +0800)]
Automatic commit of irc logs

11 years agoMerge branch 'master' of https://github.com/szmoore/MCTX3420.git
Jeremy Tan [Sun, 6 Oct 2013 14:37:42 +0000 (22:37 +0800)]
Merge branch 'master' of https://github.com/szmoore/MCTX3420.git

11 years agoAdd navigation menu
Jeremy Tan [Sun, 6 Oct 2013 14:00:59 +0000 (22:00 +0800)]
Add navigation menu

11 years agoMerge pull request #55 from jtanx/master
Jeremy Tan [Sun, 6 Oct 2013 11:37:35 +0000 (04:37 -0700)]
Merge pull request #55 from jtanx/master

Update gui. Add modified version of Justin's system diagram

11 years agoUpdate gui. Add modified version of Justin's system diagram
Jeremy Tan [Sun, 6 Oct 2013 11:35:41 +0000 (19:35 +0800)]
Update gui. Add modified version of Justin's system diagram

11 years agoMerge pull request #54 from Callum-/master
Callum [Sun, 6 Oct 2013 07:34:46 +0000 (00:34 -0700)]
Merge pull request #54 from Callum-/master

Dilatometer

11 years agoslight changes
Callum [Sun, 6 Oct 2013 07:32:40 +0000 (15:32 +0800)]
slight changes

UCC git Repository :: git.ucc.asn.au