IMU data stream, returns raw 3-axis magnetometer and 3-axis accelerometer data
and optionally computes derived values
Note, a proper calculation of Heading requires magnetometer calibration,
tilt compensation (which we can do here from the accelerometer), and magnetic
declination adjustment (which is lat-long and time-dependent).
Magnetometer calibration and declination adjustments need to be done outside this class.
Returns a photo as a JPEG image from Frame.
Note: The camera sensor on Frame is rotated 90 degrees clockwise, so raw images are rotated, but by default
RxPhoto will correct this by rotating -90 degrees.
If you want to save the cost of copyRotate here you can specify upright=false in the constructor
since some ML packages allow for specifying the orientation of the image when passing it in.
Pairs with frame.camera.read_raw(), that is, jpeg header and footer
are not sent from Frame - only the content, using non-final and final message types
Jpeg header and footer are added in here on the client, so a quality level
must be provided to select the correct header. Returns a Stream with exactly one jpeg as bytes, then is Done
A message containing the msgCode and a collection of camera settings suitable for requesting
the frameside app enable auto exposure and gain with the specified settings
A message containing the msgCode and a collection of camera settings suitable for requesting
the frameside app to take a photo with the specified settings
A message containing only the msgCode and a single optional byte
suitable for signalling the frameside app to take some action
(e.g. toggle streaming, take a photo with default parameters etc.)
A message containing the msgCode and a collection of camera settings suitable for requesting
the frameside app enable manual exposure and gain with the specified settings
The base class for all Tx (transmit phone to Frame) messages that can be sent using sendMessage()
which performs splitting across multiple MTU-sized packets
an assembled automatically frameside by the data handler.
A message containing the msgCode and a String of plain text,
plus optional top-left corner position coordinates for the
text to be printed in the Frame display (Lua/1-based, i.e. 1,1 to 640,400)
plus an optional palette offset (1..15, 0/'VOID' is invalid), plus optional character spacing