And further proof the TSDZ2 has a cadence sensor from these lines in one of the OSF codes.yes please.
My reply is in the context of a general crank motor which may be a Bosch (which I believe uses field weakening too) or others that may have a cadence sensor. The TSDZ2 does not have a cadence sensor.
TSDZ2-Smart-EBike-1/src/controller/ebike_app.c at master · emmebrusa/TSDZ2-Smart-EBike-1
TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays - emmebrusa/TSDZ2-Smart-EBike-1
github.com
See a few references to a cadence sensor there?
That's an entire function called "calc_cadence" using variables from a cadence sensor.