Files
ardupilot/libraries/AP_VideoTX
Peter Barker 4456a028bf AP_VideoTX: remove VTX_OPTIONS parameter width conversion
This was meant to convert VTX_OPTIONS from int8 to int16, and is present
in the 4.3.0 release, so anybody running 4.3.0 or later has already had
it applied.

It should be noted that it never actually did anything.  0658f06030
widened _options from AP_Int8 to AP_Int16 and added the conversion in
the same commit, but passed the new width rather than the old one:

    _options.convert_parameter_width(AP_PARAM_INT16);

The argument to convert_parameter_width() is the type the value was
stored as *before* the widening, so this should have been
AP_PARAM_INT8.  AP_Param::scan() matches on the type in the parameter
header, so a value written as an int8 is never found by a scan for an
int16 and the conversion always returned false without touching
anything.  A user upgrading across the widening lost their VTX_OPTIONS
regardless.

So this removes dead code, and the migration floor is not really what
makes it safe to do so.
2026-09-01 20:49:36 +10:00
..