It senses the current and we can measure it from the sense resistor as shown in the diagram.
And no, its not a homework, its a project that myself and my team are working on in school but just don't understand the signals going through each part of the circuit