Model Object

The Model object in MechaWare firmware is analogous to the Filter object in non-MechaWare firmware. In its simplest form, it contains the control algorithm for a single Axis / Motor, while it can be extended to more complicated control loops. The Model object is a container for Block objects. It is not created directly, but is accessed by calling MechaWare::Model().

Instance Methods

  Model Constructor for the Model object.
  Block Used to access a particular Block in a Model.
  Read Makes the Model object update its data from the controller's memory.
  Write Writes current model object data to the controller's memory.
  GetBlockIndex Used to determine the block index of a particular Block in a Model.
  GetBlockCount Returns the number of Blocks in a Model.
  Index Returns the number of Blocks in a Model.