@@ -194,7 +194,7 @@ void main_window::adjust_ui_for_product(uint8_t product)
194
194
bool decay_mode_visible = false ;
195
195
bool agc_mode_visible = false ;
196
196
bool last_motor_driver_error_visible = false ;
197
- bool hpsc_visible = false ;
197
+ bool hp_visible = false ;
198
198
199
199
switch (product)
200
200
{
@@ -275,15 +275,15 @@ void main_window::adjust_ui_for_product(uint8_t product)
275
275
{ " 1/256 step" , TIC_STEP_MODE_MICROSTEP256 } });
276
276
277
277
set_combo_items (decay_mode_value,
278
- { { " Slow" , TIC_HPSC_DECMOD_SLOW },
279
- { " Slow / mixed" , TIC_HPSC_DECMOD_SLOW_MIXED },
280
- { " Fast" , TIC_HPSC_DECMOD_FAST },
281
- { " Mixed" , TIC_HPSC_DECMOD_MIXED },
282
- { " Slow / auto-mixed" , TIC_HPSC_DECMOD_SLOW_AUTO_MIXED },
283
- { " Auto-mixed" , TIC_HPSC_DECMOD_AUTO_MIXED }});
278
+ { { " Slow" , TIC_HP_DECMOD_SLOW },
279
+ { " Slow / mixed" , TIC_HP_DECMOD_SLOW_MIXED },
280
+ { " Fast" , TIC_HP_DECMOD_FAST },
281
+ { " Mixed" , TIC_HP_DECMOD_MIXED },
282
+ { " Slow / auto-mixed" , TIC_HP_DECMOD_SLOW_AUTO_MIXED },
283
+ { " Auto-mixed" , TIC_HP_DECMOD_AUTO_MIXED }});
284
284
decay_mode_visible = true ;
285
285
last_motor_driver_error_visible = true ;
286
- hpsc_visible = true ;
286
+ hp_visible = true ;
287
287
break ;
288
288
}
289
289
@@ -302,7 +302,7 @@ void main_window::adjust_ui_for_product(uint8_t product)
302
302
last_motor_driver_error_label->setVisible (last_motor_driver_error_visible);
303
303
last_motor_driver_error_value->setVisible (last_motor_driver_error_visible);
304
304
305
- hpsc_motor_widget ->setVisible (hpsc_visible );
305
+ hp_motor_widget ->setVisible (hp_visible );
306
306
307
307
update_current_limit_table (product);
308
308
}
@@ -618,9 +618,9 @@ void main_window::set_last_motor_driver_error(const char * str)
618
618
last_motor_driver_error_value->setToolTip (" " );
619
619
}
620
620
621
- void main_window::set_last_hpsc_driver_errors (uint8_t errors)
621
+ void main_window::set_last_hp_driver_errors (uint8_t errors)
622
622
{
623
- const char * name = tic_look_up_hpsc_driver_error_name_ui (errors);
623
+ const char * name = tic_look_up_hp_driver_error_name_ui (errors);
624
624
QString toolTip = " 0x" + QString::number (errors, 16 );
625
625
last_motor_driver_error_value->setText (name);
626
626
last_motor_driver_error_value->setToolTip (toolTip);
@@ -1067,24 +1067,24 @@ void main_window::set_agc_frequency_limit(uint8_t limit)
1067
1067
set_combo (agc_frequency_limit_value, limit);
1068
1068
}
1069
1069
1070
- void main_window::set_hpsc_tdecay (uint8_t time)
1070
+ void main_window::set_hp_tdecay (uint8_t time)
1071
1071
{
1072
- set_spin_box (hpsc_tdecay_value , time);
1072
+ set_spin_box (hp_tdecay_value , time);
1073
1073
}
1074
1074
1075
- void main_window::set_hpsc_tblank (uint8_t time)
1075
+ void main_window::set_hp_tblank (uint8_t time)
1076
1076
{
1077
- set_spin_box (hpsc_tblank_value , time);
1077
+ set_spin_box (hp_tblank_value , time);
1078
1078
}
1079
1079
1080
- void main_window::set_hpsc_abt (bool adaptive)
1080
+ void main_window::set_hp_abt (bool adaptive)
1081
1081
{
1082
- set_check_box (hpsc_abt_check , adaptive);
1082
+ set_check_box (hp_abt_check , adaptive);
1083
1083
}
1084
1084
1085
- void main_window::set_hpsc_toff (uint8_t time)
1085
+ void main_window::set_hp_toff (uint8_t time)
1086
1086
{
1087
- set_spin_box (hpsc_toff_value , time);
1087
+ set_spin_box (hp_toff_value , time);
1088
1088
}
1089
1089
1090
1090
void main_window::set_soft_error_response (uint8_t soft_error_response)
@@ -1929,28 +1929,28 @@ void main_window::on_agc_frequency_limit_value_currentIndexChanged(int index)
1929
1929
controller->handle_agc_frequency_limit_input (limit);
1930
1930
}
1931
1931
1932
- void main_window::on_hpsc_tdecay_value_valueChanged (int value)
1932
+ void main_window::on_hp_tdecay_value_valueChanged (int value)
1933
1933
{
1934
1934
if (suppress_events) { return ; }
1935
- controller->handle_hpsc_tdecay_input (value);
1935
+ controller->handle_hp_tdecay_input (value);
1936
1936
}
1937
1937
1938
- void main_window::on_hpsc_toff_value_valueChanged (int value)
1938
+ void main_window::on_hp_toff_value_valueChanged (int value)
1939
1939
{
1940
1940
if (suppress_events) { return ; }
1941
- controller->handle_hpsc_toff_input (value);
1941
+ controller->handle_hp_toff_input (value);
1942
1942
}
1943
1943
1944
- void main_window::on_hpsc_tblank_value_valueChanged (int value)
1944
+ void main_window::on_hp_tblank_value_valueChanged (int value)
1945
1945
{
1946
1946
if (suppress_events) { return ; }
1947
- controller->handle_hpsc_tblank_input (value);
1947
+ controller->handle_hp_tblank_input (value);
1948
1948
}
1949
1949
1950
- void main_window::on_hpsc_abt_check_stateChanged (int state)
1950
+ void main_window::on_hp_abt_check_stateChanged (int state)
1951
1951
{
1952
1952
if (suppress_events) { return ; }
1953
- controller->handle_hpsc_abt_input (state == Qt::Checked);
1953
+ controller->handle_hp_abt_input (state == Qt::Checked);
1954
1954
}
1955
1955
1956
1956
void main_window::on_soft_error_response_radio_group_buttonToggled (int id, bool checked)
@@ -3410,17 +3410,17 @@ QLayout * main_window::setup_motor_settings_layout()
3410
3410
row++;
3411
3411
}
3412
3412
3413
- layout->addWidget (setup_hpsc_motor_widget (), row++, 0 , 1 , 3 );
3413
+ layout->addWidget (setup_hp_motor_widget (), row++, 0 , 1 , 3 );
3414
3414
3415
3415
layout->setColumnStretch (2 , 1 );
3416
3416
layout->setRowStretch (row, 1 );
3417
3417
3418
3418
return layout;
3419
3419
}
3420
3420
3421
- QWidget * main_window::setup_hpsc_motor_widget ()
3421
+ QWidget * main_window::setup_hp_motor_widget ()
3422
3422
{
3423
- hpsc_motor_widget = new QWidget ();
3423
+ hp_motor_widget = new QWidget ();
3424
3424
QGridLayout * layout = new QGridLayout ();
3425
3425
layout->setContentsMargins (0 , 0 , 0 , 0 );
3426
3426
@@ -3434,65 +3434,65 @@ QWidget * main_window::setup_hpsc_motor_widget()
3434
3434
int row = 0 ;
3435
3435
3436
3436
{
3437
- hpsc_toff_value = new time_spin_box ();
3438
- hpsc_toff_value ->setObjectName (" hpsc_toff_value " );
3439
- hpsc_toff_value ->setMinimumWidth (minimum_time_box_width);
3440
- hpsc_toff_value ->set_decimals (1 );
3437
+ hp_toff_value = new time_spin_box ();
3438
+ hp_toff_value ->setObjectName (" hp_toff_value " );
3439
+ hp_toff_value ->setMinimumWidth (minimum_time_box_width);
3440
+ hp_toff_value ->set_decimals (1 );
3441
3441
QMap <int , int > mapping;
3442
3442
for (int i = 0 ; i < 0x100 ; i++) { mapping.insert (i, (i + 1 ) * 500 ); }
3443
- hpsc_toff_value ->set_mapping (mapping);
3444
- hpsc_toff_value ->setSuffix (" \u00b5 s" );
3445
- hpsc_toff_label = new QLabel ();
3446
- hpsc_toff_label ->setBuddy (hpsc_toff_value );
3447
- layout->addWidget (hpsc_toff_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3448
- layout->addWidget (hpsc_toff_value , row, 1 , Qt::AlignLeft);
3443
+ hp_toff_value ->set_mapping (mapping);
3444
+ hp_toff_value ->setSuffix (" \u00b5 s" );
3445
+ hp_toff_label = new QLabel ();
3446
+ hp_toff_label ->setBuddy (hp_toff_value );
3447
+ layout->addWidget (hp_toff_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3448
+ layout->addWidget (hp_toff_value , row, 1 , Qt::AlignLeft);
3449
3449
row++;
3450
3450
}
3451
3451
3452
3452
{
3453
- hpsc_tblank_value = new time_spin_box ();
3454
- hpsc_tblank_value ->setObjectName (" hpsc_tblank_value " );
3455
- hpsc_tblank_value ->setMinimumWidth (minimum_time_box_width);
3456
- hpsc_tblank_value ->set_decimals (2 );
3453
+ hp_tblank_value = new time_spin_box ();
3454
+ hp_tblank_value ->setObjectName (" hp_tblank_value " );
3455
+ hp_tblank_value ->setMinimumWidth (minimum_time_box_width);
3456
+ hp_tblank_value ->set_decimals (2 );
3457
3457
QMap<int , int > mapping;
3458
3458
for (int i = 0x32 ; i < 0x100 ; i++) { mapping.insert (i, i * 20 ); }
3459
- hpsc_tblank_value ->set_mapping (mapping);
3460
- hpsc_tblank_value ->setSuffix (" \u00b5 s" );
3461
- hpsc_tblank_label = new QLabel ();
3462
- hpsc_tblank_label ->setBuddy (hpsc_tblank_value );
3463
- layout->addWidget (hpsc_tblank_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3464
- layout->addWidget (hpsc_tblank_value , row, 1 , Qt::AlignLeft);
3459
+ hp_tblank_value ->set_mapping (mapping);
3460
+ hp_tblank_value ->setSuffix (" \u00b5 s" );
3461
+ hp_tblank_label = new QLabel ();
3462
+ hp_tblank_label ->setBuddy (hp_tblank_value );
3463
+ layout->addWidget (hp_tblank_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3464
+ layout->addWidget (hp_tblank_value , row, 1 , Qt::AlignLeft);
3465
3465
row++;
3466
3466
}
3467
3467
3468
3468
{
3469
- hpsc_abt_check = new QCheckBox ();
3470
- hpsc_abt_check ->setObjectName (" hpsc_abt_check " );
3471
- layout->addWidget (hpsc_abt_check , row, 0 , 1 , 2 , Qt::AlignLeft);
3469
+ hp_abt_check = new QCheckBox ();
3470
+ hp_abt_check ->setObjectName (" hp_abt_check " );
3471
+ layout->addWidget (hp_abt_check , row, 0 , 1 , 2 , Qt::AlignLeft);
3472
3472
row++;
3473
3473
}
3474
3474
3475
3475
{
3476
- hpsc_tdecay_value = new time_spin_box ();
3477
- hpsc_tdecay_value ->setObjectName (" hpsc_tdecay_value " );
3478
- hpsc_tdecay_value ->setMinimumWidth (minimum_time_box_width);
3479
- hpsc_tdecay_value ->set_decimals (1 );
3476
+ hp_tdecay_value = new time_spin_box ();
3477
+ hp_tdecay_value ->setObjectName (" hp_tdecay_value " );
3478
+ hp_tdecay_value ->setMinimumWidth (minimum_time_box_width);
3479
+ hp_tdecay_value ->set_decimals (1 );
3480
3480
QMap<int , int > mapping;
3481
3481
for (int i = 0 ; i < 0x100 ; i++) { mapping.insert (i, i * 500 ); }
3482
- hpsc_tdecay_value ->set_mapping (mapping);
3483
- hpsc_tdecay_value ->setSuffix (" \u00b5 s" );
3484
- hpsc_tdecay_label = new QLabel ();
3485
- hpsc_tdecay_label ->setBuddy (hpsc_tdecay_value );
3486
- layout->addWidget (hpsc_tdecay_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3487
- layout->addWidget (hpsc_tdecay_value , row, 1 , Qt::AlignLeft);
3482
+ hp_tdecay_value ->set_mapping (mapping);
3483
+ hp_tdecay_value ->setSuffix (" \u00b5 s" );
3484
+ hp_tdecay_label = new QLabel ();
3485
+ hp_tdecay_label ->setBuddy (hp_tdecay_value );
3486
+ layout->addWidget (hp_tdecay_label , row, 0 , FIELD_LABEL_ALIGNMENT);
3487
+ layout->addWidget (hp_tdecay_value , row, 1 , Qt::AlignLeft);
3488
3488
row++;
3489
3489
}
3490
3490
3491
3491
layout->setColumnStretch (2 , 1 );
3492
3492
layout->setRowStretch (row, 1 );
3493
3493
3494
- hpsc_motor_widget ->setLayout (layout);
3495
- return hpsc_motor_widget ;
3494
+ hp_motor_widget ->setLayout (layout);
3495
+ return hp_motor_widget ;
3496
3496
}
3497
3497
3498
3498
QWidget * main_window::setup_motor_settings_box ()
@@ -3970,10 +3970,10 @@ void main_window::retranslate()
3970
3970
agc_bottom_current_limit_label->setText (tr (" AGC bottom current limit:" ));
3971
3971
agc_current_boost_steps_label->setText (tr (" AGC current boost steps:" ));
3972
3972
agc_frequency_limit_label->setText (tr (" AGC frequency limit:" ));
3973
- hpsc_toff_label ->setText (tr (" Fixed off time:" ));
3974
- hpsc_tblank_label ->setText (tr (" Current trip blanking time:" ));
3975
- hpsc_abt_check ->setText (tr (" Enable adaptive blanking time" ));
3976
- hpsc_tdecay_label ->setText (tr (" Mixed decay transition time:" ));
3973
+ hp_toff_label ->setText (tr (" Fixed off time:" ));
3974
+ hp_tblank_label ->setText (tr (" Current trip blanking time:" ));
3975
+ hp_abt_check ->setText (tr (" Enable adaptive blanking time" ));
3976
+ hp_tdecay_label ->setText (tr (" Mixed decay transition time:" ));
3977
3977
3978
3978
// // advanced settings page
3979
3979
0 commit comments