Controller have a generic name->index and index->info mapping for sensors and motors
cppcheck options adapted
fixed leaks and other minor problems reported by cppcheck