2018.07.26

Dependencies:   EthernetInterface TextLCD USBDevice USBHost mbed

Committer:
sayzyas
Date:
Thu Jul 26 00:26:07 2018 +0000
Revision:
1:fdf87a1a724b
Parent:
0:19075177391c
2018.07.26

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sayzyas 0:19075177391c 1 #include "mbed.h"
sayzyas 0:19075177391c 2 #include "rtos.h"
sayzyas 0:19075177391c 3 #include "common.h"
sayzyas 0:19075177391c 4 #include "com_func.h"
sayzyas 0:19075177391c 5
sayzyas 0:19075177391c 6
sayzyas 0:19075177391c 7
sayzyas 0:19075177391c 8 void dspSetValue2Console(Serial* pc, setValue_t * setValue){
sayzyas 0:19075177391c 9 pc->printf("WinchDram motor Fwd rote current th: %04d %\r\n", setValue->wchCtrl.drm_mtr_ithd_f);
sayzyas 0:19075177391c 10 pc->printf("WinchDram motor Rvs rote current th: %04d %\r\n", setValue->wchCtrl.drm_mtr_ithd_r);
sayzyas 0:19075177391c 11 pc->printf("WinchM2 motor Fwd rote current th: %04d %\r\n", setValue->wchCtrl.no2_mtr_ithd_f);
sayzyas 0:19075177391c 12 pc->printf("WinchM2 motor Rvs rote current th: %04d %\r\n", setValue->wchCtrl.no2_mtr_ithd_r);
sayzyas 0:19075177391c 13 pc->printf("WinchDram motor Fwd HighSpeed ratio: %03d %\r\n", setValue->wchCtrl.drm_mtr_hspd_f);
sayzyas 0:19075177391c 14 pc->printf("WinchDram motor Rvs HighSpeed ratio: %03d %\r\n", setValue->wchCtrl.drm_mtr_hspd_r);
sayzyas 0:19075177391c 15 pc->printf("WinchM2 motor Fwd HighSpeed ratio: %03d %\r\n", setValue->wchCtrl.no2_mtr_hspd_f);
sayzyas 0:19075177391c 16 pc->printf("WinchM2 motor Rvs HighSpeed ratio: %03d %\r\n", setValue->wchCtrl.no2_mtr_hspd_r);
sayzyas 0:19075177391c 17 pc->printf("Winch Dram diameter x 100: %04d \r\n", setValue->wchCtrl.dram_dmtr_x100);
sayzyas 0:19075177391c 18 pc->printf("Winch C-Cable diamter x 10000: %04d \r\n", setValue->wchCtrl.adj_val_x10000);
sayzyas 0:19075177391c 19 pc->printf("Winch Resolver resolution: %03d bit\r\n", setValue->wchCtrl.res_resolution);
sayzyas 0:19075177391c 20
sayzyas 0:19075177391c 21 pc->printf("RF tfm motor Fwd rote current th: %04d %\r\n", setValue->tfmCtrl.rf_mtr_ithd_f);
sayzyas 0:19075177391c 22 pc->printf("RF tfm motor RVS rote current th: %04d %\r\n", setValue->tfmCtrl.rf_mtr_ithd_r);
sayzyas 0:19075177391c 23 pc->printf("LB tfm motor FWD rote current th: %04d %\r\n", setValue->tfmCtrl.lb_mtr_ithd_f);
sayzyas 0:19075177391c 24 pc->printf("LB tfm motor RVS rote current th: %04d %\r\n", setValue->tfmCtrl.lb_mtr_ithd_r);
sayzyas 0:19075177391c 25 pc->printf("RF tfm motor FWD Speed ratio: %03d %\r\n", setValue->tfmCtrl.rf_mtr_hspd_f);
sayzyas 0:19075177391c 26 pc->printf("RF tfm motor RVS Speed ratio: %03d %\r\n", setValue->tfmCtrl.rf_mtr_hspd_r);
sayzyas 0:19075177391c 27 pc->printf("LB tfm motor FWD Speed ratio: %03d %\r\n", setValue->tfmCtrl.lb_mtr_hspd_f);
sayzyas 0:19075177391c 28 pc->printf("LB tfm motor RVS Speed ratio: %03d %\r\n", setValue->tfmCtrl.lb_mtr_hspd_r);
sayzyas 0:19075177391c 29
sayzyas 0:19075177391c 30 pc->printf("R-Crawler Fwd rotation current th: %04d %\r\n", setValue->crwCtrl.rf_mtr_ithd_f);
sayzyas 0:19075177391c 31 pc->printf("R-Crawler Rvs rotation current th: %04d %\r\n", setValue->crwCtrl.rf_mtr_ithd_r);
sayzyas 0:19075177391c 32 pc->printf("L-Crawler Fwd rotation current th: %04d %\r\n", setValue->crwCtrl.lb_mtr_ithd_f);
sayzyas 0:19075177391c 33 pc->printf("L-Crawler Rvs rotation current th: %04d %\r\n", setValue->crwCtrl.lb_mtr_ithd_r);
sayzyas 0:19075177391c 34 pc->printf("R-Crawler Fwd rotation Speed ratio: %03d %\r\n", setValue->crwCtrl.rf_mtr_hspd_f);
sayzyas 0:19075177391c 35 pc->printf("R-Crawler Rvs rotation Speed ratio: %03d %\r\n", setValue->crwCtrl.rf_mtr_hspd_r);
sayzyas 0:19075177391c 36 pc->printf("L-Crawler Fwd rotation Speed ratio: %03d\r\n", setValue->crwCtrl.lb_mtr_hspd_f);
sayzyas 0:19075177391c 37 pc->printf("L-Crawler Rvs rotation Speed ratio: %03d\r\n", setValue->crwCtrl.lb_mtr_hspd_r);
sayzyas 0:19075177391c 38
sayzyas 0:19075177391c 39 pc->printf( "\r\n" );
sayzyas 0:19075177391c 40 }