]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
pxmc_test modified to work with Petr Kovacik's version of PXMC.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 8 Mar 2007 08:06:00 +0000 (08:06 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 8 Mar 2007 08:06:00 +0000 (08:06 +0000)
darcs-hash:20070308080651-f2ef6-31396e564d403d484c51154431d5ed8179acbee5.gz

common/app/pxmc_test/pxmc_test.c

index 690a7ee27e347fb339c16e166376d45adb20fc00..6e5d86d10282ae890188b31c63c1e8bef1feeec1 100644 (file)
@@ -199,13 +199,17 @@ int main()
  sti();
  
 /*  pxmc_initialize(); */
- /*pxmc_axis_mode(pxmc_main_list.pxml_arr[0], 4);*/
+/*  pxmc_axis_mode(pxmc_main_list.pxml_arr[0], 4); */
+
+ /* Petr Kovacik's version needs the following initialization. FIXME */
+ pxmc_set_pwm_tpu();
+ pxmc_add_pservice_and_mode(4); /*Macro -  mod=4 tj. all motors are DC*/
+
  
  printf("ready\n");
  
  do{ 
      cmd_processor_run(&cmd_io_rs232_line, cmd_list_default);
-     
  }while(1);
  
 };