PlayUAV / PlayuavOSD

A Graphical OSD for FPV
http://en.playuav.com
GNU General Public License v3.0
67 stars 60 forks source link

Update osdproc.c #25

Closed vierfuffzig closed 8 years ago

vierfuffzig commented 8 years ago

uncommented rssiMAX / MIN limitations to make percentage scaling for pwm rssi over rc channel work

ghost commented 8 years ago

Thanks. I think it would be better if we add a judgement statement to see if the RSSI comes from MAVLINK, then decide if we trim the rssiMAX/MIN. Like this:

            //Trim the rssiMAX/MIN if RSSI come from the MAVLINK
            if(eeprom_buffer.params.RSSI_type == 0){
                if (rssiMin < 0)
                    rssiMin = 0;
                if (rssiMax > 255)
                    rssiMax = 255;
            }

I am glad to hear your opinions.

vierfuffzig commented 8 years ago

cool,submitted as above.

ghost commented 8 years ago

thanks, merged.