Issue 82 fixed (partially, I don't like too much the vertical lines, the screen is too little for that)
This commit is contained in:
+3
-6
@@ -294,13 +294,10 @@ void menuMainView(uint8_t event)
|
|||||||
x0 = i<4 ? 128/4+2 : 128*3/4-2;
|
x0 = i<4 ? 128/4+2 : 128*3/4-2;
|
||||||
y0 = 38+(i%4)*5;
|
y0 = 38+(i%4)*5;
|
||||||
|
|
||||||
#ifdef FRANCK
|
uint16_t lim = g_model.extendedLimits ? 640*2 : 512*2;
|
||||||
uint16_t lim = calc100toRESX(val > 0 ? 100+g_model.limitData[chan].max : +100-g_model.limitData[chan].min);
|
|
||||||
int8_t len = (abs(val) * WBAR2 + lim/2) / lim;
|
int8_t len = (abs(val) * WBAR2 + lim/2) / lim;
|
||||||
#else
|
|
||||||
int8_t len = (abs(val) * WBAR2 + 512) / 1024;
|
if(len>WBAR2) len = WBAR2; // prevent bars from going over the end - comment for debugging
|
||||||
#endif
|
|
||||||
if(len>WBAR2) len = WBAR2; // prevent bars from going over the end - comment for debugging
|
|
||||||
lcd_hlineStip(x0-WBAR2, y0, WBAR2*2+1, DOTTED);
|
lcd_hlineStip(x0-WBAR2, y0, WBAR2*2+1, DOTTED);
|
||||||
lcd_vline(x0,y0-2,5);
|
lcd_vline(x0,y0-2,5);
|
||||||
if (val>0){
|
if (val>0){
|
||||||
|
|||||||
+5
-5
@@ -2128,10 +2128,10 @@ void menuProcLimits(uint8_t _event)
|
|||||||
|
|
||||||
if (sub < NUM_CHNOUT) {
|
if (sub < NUM_CHNOUT) {
|
||||||
#if defined(PPM_CENTER_ADJUSTABLE)
|
#if defined(PPM_CENTER_ADJUSTABLE)
|
||||||
lcd_outdezAtt(12*FW, 0, PPM_CENTER+limitaddress(sub)->ppmCenter+g_chans512[sub]/2, 0);
|
lcd_outdezAtt(13*FW, 0, PPM_CENTER+limitaddress(sub)->ppmCenter+g_chans512[sub]/2, 0);
|
||||||
lcd_puts(12*FW, 0, STR_US);
|
lcd_puts(13*FW, 0, STR_US);
|
||||||
#else
|
#else
|
||||||
lcd_outdezAtt(12*FW, 0, GPERC(g_chans512[sub]), PREC1);
|
lcd_outdezAtt(13*FW, 0, GPERC(g_chans512[sub]), PREC1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2165,7 +2165,7 @@ void menuProcLimits(uint8_t _event)
|
|||||||
|
|
||||||
LimitData *ld = limitaddress(k) ;
|
LimitData *ld = limitaddress(k) ;
|
||||||
|
|
||||||
#ifdef PPM_CENTER_ADJUSTABLE
|
#if defined(PPM_CENTER_ADJUSTABLE)
|
||||||
int8_t limit = ((g_model.extendedLimits && !limitaddress(k)->ppmCenter) ? 125 : 100);
|
int8_t limit = ((g_model.extendedLimits && !limitaddress(k)->ppmCenter) ? 125 : 100);
|
||||||
#else
|
#else
|
||||||
int16_t v = (ld->revert) ? -ld->offset : ld->offset;
|
int16_t v = (ld->revert) ? -ld->offset : ld->offset;
|
||||||
@@ -2187,7 +2187,7 @@ void menuProcLimits(uint8_t _event)
|
|||||||
switch(j)
|
switch(j)
|
||||||
{
|
{
|
||||||
case ITEM_LIMITS_OFFSET:
|
case ITEM_LIMITS_OFFSET:
|
||||||
#ifdef PPM_LIMITS_UNIT_US
|
#if defined(PPM_LIMITS_UNIT_US)
|
||||||
lcd_outdezAtt( 8*FW, y, ((int32_t)ld->offset*128) / 25, attr|PREC1);
|
lcd_outdezAtt( 8*FW, y, ((int32_t)ld->offset*128) / 25, attr|PREC1);
|
||||||
#else
|
#else
|
||||||
lcd_outdezAtt( 8*FW, y, ld->offset, attr|PREC1);
|
lcd_outdezAtt( 8*FW, y, ld->offset, attr|PREC1);
|
||||||
|
|||||||
Reference in New Issue
Block a user