The Queue of Events

From Hydrover
Revision as of 15:35, 21 June 2017 by Andrea (talk | contribs) (Structure of an Event)
Jump to: navigation, search

Introduction

The queue of events is the queue where the system send events such as: input change, user action, encoder or transducer match, and from where the user's program get events to process and react to.

Structure of an Event

An event is defined in the library as an array of values:

[.opcode, .p0, .p1, .p2, .p3]

where:

  • .opcode is used to uniquely identify the event
  • .p0, .p1, .p2, .p3 contains informations specific to that event

Events' Library Functions

Processing Events