@@ -578,15 +578,15 @@ pub_popup_hwinfo(struct public *pub, int popup)
578578 nk_label (ctx , "HW revision" , NK_TEXT_LEFT );
579579
580580 nk_edit_string_zero_terminated (ctx , NK_EDIT_SELECTABLE ,
581- lp -> hw .revision , 79 , nk_filter_default );
581+ lp -> hw .hardware , 79 , nk_filter_default );
582582
583583 nk_spacer (ctx );
584584
585585 nk_spacer (ctx );
586- nk_label (ctx , "PMC firmware " , NK_TEXT_LEFT );
586+ nk_label (ctx , "FW revision " , NK_TEXT_LEFT );
587587
588588 nk_edit_string_zero_terminated (ctx , NK_EDIT_SELECTABLE ,
589- lp -> hw .identify , 79 , nk_filter_default );
589+ lp -> hw .revision , 79 , nk_filter_default );
590590
591591 nk_spacer (ctx );
592592
@@ -673,7 +673,7 @@ pub_popup_about(struct public *pub, int popup)
673673#include "../src/hgdef.h"
674674
675675 nk_spacer (ctx );
676- nk_label (ctx , "Identify : " _HG_IDENTIFY , NK_TEXT_LEFT );
676+ nk_label (ctx , "Revision : " _HG_REV , NK_TEXT_LEFT );
677677 nk_spacer (ctx );
678678
679679 nk_spacer (ctx );
@@ -4646,6 +4646,12 @@ page_lu_forced(struct public *pub)
46464646 nk_layout_row_dynamic (ctx , 0 , 1 );
46474647 nk_spacer (ctx );
46484648
4649+ reg_enum_toggle (pub , "pm.config_LU_FORCED" , "FORCED control" );
4650+ reg_enum_toggle (pub , "pm.config_LU_FREEWHEEL" , "Allow FREEWHEELING" );
4651+
4652+ nk_layout_row_dynamic (ctx , 0 , 1 );
4653+ nk_spacer (ctx );
4654+
46494655 reg_float (pub , "pm.forced_hold_D" , "FORCED hold current" );
46504656 reg_float (pub , "pm.forced_weak_D" , "FORCED weak current" );
46514657 reg_float_um (pub , "pm.forced_maximal" , "Maximal forward speed" , 1 );
@@ -4714,6 +4720,11 @@ page_lu_flux(struct public *pub)
47144720 nk_layout_row_dynamic (ctx , 0 , 1 );
47154721 nk_spacer (ctx );
47164722
4723+ reg_enum_combo (pub , "pm.config_LU_ESTIMATE" , "SENSORLESS estimate" , 1 );
4724+
4725+ nk_layout_row_dynamic (ctx , 0 , 1 );
4726+ nk_spacer (ctx );
4727+
47174728 reg_float (pub , "pm.detach_threshold" , "DETACHED voltage threshold" );
47184729 reg_float (pub , "pm.detach_trip_tol" , "DETACHED trip tolerance" );
47194730 reg_float (pub , "pm.detach_gain_SF" , "DETACHED speed loop gain" );
@@ -5160,6 +5171,11 @@ page_lu_eabi(struct public *pub)
51605171 nk_spacer (ctx );
51615172 }
51625173
5174+ reg_enum_combo (pub , "pm.config_EABI_FRONTEND" , "EABI frontend" , 0 );
5175+
5176+ nk_layout_row_dynamic (ctx , 0 , 1 );
5177+ nk_spacer (ctx );
5178+
51635179 reg_float (pub , "pm.eabi_F0" , "EABI adjustment position" );
51645180 reg_float (pub , "pm.eabi_const_EP" , "EABI pulse resolution" );
51655181 reg_float (pub , "pm.eabi_const_Zs" , "Gear teeth number S" );
@@ -5324,6 +5340,11 @@ page_lu_sincos(struct public *pub)
53245340 nk_spacer (ctx );
53255341 }
53265342
5343+ reg_enum_combo (pub , "pm.config_SINCOS_FRONTEND" , "SINCOS frontend" , 0 );
5344+
5345+ nk_layout_row_dynamic (ctx , 0 , 1 );
5346+ nk_spacer (ctx );
5347+
53275348 reg_float (pub , "pm.sincos_const_Zs" , "Gear teeth number S" );
53285349 reg_float (pub , "pm.sincos_const_Zq" , "Gear teeth number Q" );
53295350 reg_float (pub , "pm.sincos_gain_PF" , "SINCOS position gain" );
@@ -5517,7 +5538,8 @@ page_lp_current(struct public *pub)
55175538 nk_layout_row_dynamic (ctx , 0 , 1 );
55185539 nk_spacer (ctx );
55195540
5520- reg_float (pub , "pm.i_maximal_on_HFI" , "Maximal current on HFI" );
5541+ reg_enum_toggle (pub , "pm.config_CC_BRAKE_STOP" , "DRIVE brake (no reverse)" );
5542+ reg_enum_toggle (pub , "pm.config_CC_SPEED_TRACK" , "DRIVE speed tracking" );
55215543
55225544 nk_layout_row_dynamic (ctx , 0 , 1 );
55235545 nk_spacer (ctx );
@@ -5691,6 +5713,11 @@ page_lp_location(struct public *pub)
56915713 nk_spacer (ctx );
56925714 }
56935715
5716+ reg_enum_combo (pub , "pm.config_LU_LOCATION" , "Servo LOCATION source" , 1 );
5717+
5718+ nk_layout_row_dynamic (ctx , 0 , 1 );
5719+ nk_spacer (ctx );
5720+
56945721 reg = link_reg_lookup (lp , "pm.const_ld_Sm" );
56955722 if (reg != NULL && reg -> fval > 0.f ) { um_def = 2 ; }
56965723
0 commit comments