]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/control.c
Debug PWM output
[~andy/csm213a-hw] / hw2 / control.c
index ad97c75b887cdc47c265abede86b0b0024197793..743c0a32ce78f54bbc2b7246127c1cd22ccdb08c 100644 (file)
@@ -58,9 +58,10 @@ int main(int argc, char **argv)
        body.world.seconds  = ts.tv_sec;
        body.world.nanosec  = ts.tv_nsec;
        body.start.seconds  = ts.tv_sec;
-       body.start.nanosec  = ts.tv_nsec;
-       body.period.seconds = 1;
-       body.period.nanosec = 0;
+       body.start.nanosec  = 0; //ts.tv_nsec;
+       body.period.seconds = 0;
+       body.period.nanosec =  100000000;
+       //                        [ ][ ]
 
        // Transmit message
        FILE *fd = fopen(opt_tty, "a+");