This value in first row is calculated from Startup Angle & Cadence Signals (P1)
No idea why.
How does it look compared to BESST ?
JavaScript:
function calculateStartPulse(angle, signalsPerRotation) {
if (angle === null || angle === undefined || signalsPerRotation === null || signalsPerRotation === undefined || signalsPerRotation <= 0 || angle < 0) {
console.warn(`Cannot calculate Start Pulse: Invalid input (Angle: ${angle}, Signals: ${signalsPerRotation})`);
return START_PULSE_MIN; // Return minimum valid value as default/fallback
}
// Calculate pulses per degree
const pulsesPerDegree = signalsPerRotation / 360.0;
// Calculate required pulses for the angle
let calculatedPulses = Math.round(angle * pulsesPerDegree);
// Clamp the result within the valid range (1-24)
calculatedPulses = Math.max(START_PULSE_MIN, Math.min(START_PULSE_MAX, calculatedPulses));
return calculatedPulses;
}
No idea why.
How does it look compared to BESST ?






