changeset 297:44ad758c2d98 trunk

[svn] - better default values for Scope.
author nenolod
date Wed, 22 Nov 2006 21:44:54 -0800
parents 0f3ed1b6b273
children fd4dcd3fe08f
files ChangeLog src/paranormal/wave.c
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 22 21:30:18 2006 -0800
+++ b/ChangeLog	Wed Nov 22 21:44:54 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-23 05:30:18 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [646]
+  - fix handling of strings
+  
+  trunk/src/paranormal/actuators.c |    2 ++
+  1 file changed, 2 insertions(+)
+
+
 2006-11-23 04:25:17 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [644]
   - modify parser.y for warnings
--- a/src/paranormal/wave.c	Wed Nov 22 21:30:18 2006 -0800
+++ b/src/paranormal/wave.c	Wed Nov 22 21:44:54 2006 -0800
@@ -405,9 +405,9 @@
 
 static struct pn_actuator_option_desc wave_scope_opts[] =
 {
-  {"init_script", "Initialization script.", OPT_TYPE_STRING, {sval: "value=255; points=128;"} },
-  {"frame_script", "Script to run at the beginning of each frame.", OPT_TYPE_STRING, {sval: "x=0; y=0; step=width/points;"} },
-  {"sample_script", "Script to run for each sample.", OPT_TYPE_STRING, {sval: "y = value; x = x + step;" }},
+  {"init_script", "Initialization script.", OPT_TYPE_STRING, {sval: "n = 800; t = -0.05;"} },
+  {"frame_script", "Script to run at the beginning of each frame.", OPT_TYPE_STRING, {sval: "t = t + 0.05;"} },
+  {"sample_script", "Script to run for each sample.", OPT_TYPE_STRING, {sval: "d = index + value; r = t + index * 3.141952924 * 4; x = cos(r) * d; y = sin(r) * d;"} },
   {"lines", "Use lines instead of dots.", OPT_TYPE_BOOLEAN, {bval: TRUE} },
   { NULL }
 };