Package ch.hevs.kart

Class KartRegisters.V2.Control.DCMotor.Prescaler

Enclosing class:

public static final class KartRegisters.V2.Control.DCMotor.Prescaler extends Object

The Drive PWM clock prescaler as 16 bit unsigned integer (UINT16, 0..65535).

Value the FPGA main clock frequency is divided before used as base clock of the PWM step frequency. Default value is 0x1F = 31 (~20kHz).

  • Field Details

  • Constructor Details

    • Prescaler

      public Prescaler()
  • Method Details

    • FROM_HZ

      public static int FROM_HZ(double frequency)