Skip to content

Basic odometry #36

@davidjsherman

Description

@davidjsherman

Odometry on the Thymio II will always be an approximation. However the odometry calculation in thymio_motion.aesl (see formula) has proven to be useful, especially in Scratch integration. The formula used, from [Lucas 2000], is inexpensive and appropriate for the Thymio II.

A simple addition to the firmware could perform this systematically on a variable odo[3] containing x, y, theta. If necessary a further value could be reserved for calibration.

This should be more accurate than the Aesl code it would replace (lines 167–174), in particular by avoiding precision and rounding errors.

An optimized version of this code, updated at 100 Hz, could be added to motor_new_analog.

Users would write to the odo variable to set a known initial position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions