Sensing

Read onboard sensors every loop – call feelix.run(); to update motor state and sensor values:

  • Anglefeelix.angle (float, radians)

  • Angle in degrees feelix.angleDeg (float, degrees)

  • Velocityfeelix.velocity (float, rad/s)

  • Rotation directionfeelix.rotation_dir (enum Direction : int8_t)

    enum Direction : int8_t {
        CW      = 1,  // clockwise
        CCW     = -1, // counterclockwise
        UNKNOWN = 0   // invalid or not yet known
    };
  • Temperaturefeelix.temperature (float, °C)

  • Current timefeelix.current_time (long, ms since program start)

    • Reset with feelix.start_time = millis();

Last updated

Was this helpful?