The call to parse_pid_values() in cthd_parse::parse_new_trip_cdev (line 181) passes an uninitialised pid_params to the function. It is possible for the parse_pid_values() to be unable to parse the data and we end up with fields Kp, Ki and Kd not being initialized and so we end up with garbage values in these.
Either pid_params should be initialized before calling parse_pid_values with some sane defaults, or the fields should be set in parse_pid_values with sane defaults before the parsing. Either way, this is a corner case that probably needs some fixing.
The call to parse_pid_values() in cthd_parse::parse_new_trip_cdev (line 181) passes an uninitialised pid_params to the function. It is possible for the parse_pid_values() to be unable to parse the data and we end up with fields Kp, Ki and Kd not being initialized and so we end up with garbage values in these.
Either pid_params should be initialized before calling parse_pid_values with some sane defaults, or the fields should be set in parse_pid_values with sane defaults before the parsing. Either way, this is a corner case that probably needs some fixing.