Table des matières

TNY-360 Documentation

Diagnostic

Diagnostic module of the TNY-360 API (code 0x13).

This module contains actions related to diagnostic checks, component health monitoring, etc.


List of actions

Here's a list of all the actions available in the diagnostic module:

0x14 - 0x00

diagnostic.isEnabled

Returns if the robot is currently in diagnostic mode.


No arguments


Return Values

  • enabledbool

    -

    Whether diagnostic mode is enabled.

0x14 - 0x01

diagnostic.RebootInDiagnosticMode

Reboots the robot in diagnostic mode.


No arguments


No return values

0x14 - 0x02

diagnostic.checkLED

Checks the status of the LED module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x03

diagnostic.checkI2C

Checks the status of the I2C module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x04

diagnostic.checkSpeaker

Checks the status of the Speaker module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x05

diagnostic.checkMicrophone

Checks the status of the Microphone module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x06

diagnostic.checkCamera

Checks the status of the Camera module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x07

diagnostic.checkLaser

Checks the status of the Laser module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x08

diagnostic.checkIMU

Checks the status of the IMU module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x09

diagnostic.checkPower

Checks the status of the Power module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x0A

diagnostic.checkMotorDriver

Checks the status of the Motor Driver module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x0B

diagnostic.checkAnalogReader

Checks the status of the Analog Reader module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x0C

diagnostic.checkControlLoop

Checks the status of the Control Loop module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

0x14 - 0x0D

diagnostic.checkDecisionLoop

Checks the status of the Decision Loop module.


No arguments


Return Values

  • resultuint8_t

    -

    0 in case of success, error id otherwise.

List of types

Here's a list of all the types used in the diagnostic module:

No custom types found in the actions of the "diagnostic" module.