@@ -721,7 +721,7 @@ void terminal_process_string(char *str) {
721
721
#endif
722
722
commands_printf ("Motor Current : %.1f A" , (double )(mcconf -> l_current_max ));
723
723
commands_printf ("Motor R : %.2f mOhm" , (double )(mcconf -> foc_motor_r * 1e3 ));
724
- commands_printf ("Motor L : %.2f microH " , (double )(mcconf -> foc_motor_l * 1e6 ));
724
+ commands_printf ("Motor L : %.2f uH " , (double )(mcconf -> foc_motor_l * 1e6 ));
725
725
commands_printf ("Motor Flux Linkage : %.3f mWb" , (double )(mcconf -> foc_motor_flux_linkage * 1e3 ));
726
726
commands_printf ("Temp Comp : %s" , mcconf -> foc_temp_comp ? "true" : "false" );
727
727
if (mcconf -> foc_temp_comp ) {
@@ -743,7 +743,7 @@ void terminal_process_string(char *str) {
743
743
commands_printf ("\nMOTOR 2\n" );
744
744
commands_printf ("Motor Current : %.1f A" , (double )(mcconf -> l_current_max ));
745
745
commands_printf ("Motor R : %.2f mOhm" , (double )(mcconf -> foc_motor_r * 1e3 ));
746
- commands_printf ("Motor L : %.2f microH " , (double )(mcconf -> foc_motor_l * 1e6 ));
746
+ commands_printf ("Motor L : %.2f uH " , (double )(mcconf -> foc_motor_l * 1e6 ));
747
747
commands_printf ("Motor Flux Linkage : %.3f mWb" , (double )(mcconf -> foc_motor_flux_linkage * 1e3 ));
748
748
commands_printf ("Temp Comp : %s" , mcconf -> foc_temp_comp ? "true" : "false" );
749
749
if (mcconf -> foc_sensor_mode == FOC_SENSOR_MODE_SENSORLESS ) {
@@ -1122,21 +1122,6 @@ void terminal_process_string(char *str) {
1122
1122
commands_printf ("Invalid arguments\n" );
1123
1123
}
1124
1124
}
1125
- } else if (strcmp (argv [0 ], "stats" ) == 0 ) {
1126
- commands_printf ("Speed Avg : %.1f km/h" , (double )(mc_interface_stat_speed_avg () * 3.6 ));
1127
- commands_printf ("Speed Max : %.1f km/h" , (double )(mc_interface_stat_speed_max () * 3.6 ));
1128
- commands_printf ("Power Avg : %.1f W" , (double )mc_interface_stat_power_avg ());
1129
- commands_printf ("Power Max : %.1f W" , (double )mc_interface_stat_power_max ());
1130
- commands_printf ("Current Avg: %.1f A" , (double )mc_interface_stat_current_avg ());
1131
- commands_printf ("Current Max: %.1f A" , (double )mc_interface_stat_current_max ());
1132
- commands_printf ("T FET Avg : %.1f degC" , (double )mc_interface_stat_temp_mosfet_avg ());
1133
- commands_printf ("T FET Max : %.1f degC" , (double )mc_interface_stat_temp_mosfet_max ());
1134
- commands_printf ("T MOTOR Avg: %.1f degC" , (double )mc_interface_stat_temp_motor_avg ());
1135
- commands_printf ("T MOTOR Max: %.1f degC" , (double )mc_interface_stat_temp_motor_max ());
1136
- commands_printf ("Count Time : %.1f s\n" , (double )mc_interface_stat_count_time ());
1137
- } else if (strcmp (argv [0 ], "stats_reset" ) == 0 ) {
1138
- mc_interface_stat_reset ();
1139
- commands_printf ("OK\n" );
1140
1125
}
1141
1126
1142
1127
// The help command
@@ -1285,12 +1270,6 @@ void terminal_process_string(char *str) {
1285
1270
commands_printf ("update_pid_pos_offset [angle_now] [store]" );
1286
1271
commands_printf (" Update position PID offset." );
1287
1272
1288
- commands_printf ("stats" );
1289
- commands_printf (" Print setup statistics." );
1290
-
1291
- commands_printf ("stats_reset" );
1292
- commands_printf (" Reset setup statistics." );
1293
-
1294
1273
for (int i = 0 ;i < callback_write ;i ++ ) {
1295
1274
if (callbacks [i ].cbf == 0 ) {
1296
1275
continue ;
0 commit comments