How do I generate code for a Radar Toolbox "radarTracker" object when a uint32‑to‑double type mismatch occurs in Simulink R2025b?

I am using Simulink R2025b with Radar Toolbox to generate code for a model that includes a supported “radarTracker” object . When I update the model (which triggers code generation), the update fails with a data type mismatch error.
During model update, I receive the following error:
Error: Unable to write a value of type uint32 into a variable of type double.
Code generation does not support changing types through assignment.
To investigate the cause of the type mismatch, check preceding assignments
or input type specifications.
Function 'GNNTracker.m' (#41.55492.55500), line 1188, column 25:
"trackPDs"
How can I resolve this code generation error?

 Réponse acceptée

objectDetection or radarTracker require the double precision inputs. To resolve this issue in MATLAB R2025b, please ensure that all calls use datatype "double". For example:
detection = objectDetection(t, [x; y; z], ...
'ObjectAttributes', struct('TargetIndex', double(id)));

Plus de réponses (0)

Catégories

En savoir plus sur Measurement-Level Simulations dans Centre d'aide et File Exchange

Produits

Version

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by