FirmwareManager class

A service to manage all the connected firmware.

Firmware means any device using the Firmware-Utilities library. In our case, all such devices are Teensy boards running on the Arduino platform, connected via USB (serial).

This service relies on the BurtFirmwareSerial class defined in package:burt_network. That class takes care of connecting to, identifying, and streaming from a firmware device. This service is responsible for routing incoming UDP messages to the correct firmware device (_sendToSerial), and forwarding serial messages to the Dashboard (RoverSocket.sendWrapper).

Inheritance
  • Object
  • Service
  • FirmwareManager

Constructors

FirmwareManager()

Properties

devices List<BurtFirmwareSerial>
A list of firmware devices attached to the rover.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Closes the connection to the device.
override
init() Future<bool>
Initializes the connection to the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisconnect() Future<void>
A callback to run when the program has disconnected from the Dashboard.
inherited
sendMessage(Message message) → void
Sends a Message to the appropriate firmware device.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited