Skip to content

PrintFloat

Note

This function only exists in REV02 and above.

Description

Prints a float value to the console.

Parameters

mode

The print mode of the message.

message

The label to call the float.

fvalue

The float value to print.

Return Value

None.

Syntax

RSDK.PrintFloat(int32 mode, const char *message, float fvalue);
Dev::PrintFloat(PrintModes mode, const char *message, float fvalue);

Example

RSDK.PrintFloat(PRINT_NORMAL, "distance", distanceFromGoal);
Dev::PrintFloat(Dev::PRINT_NORMAL, "distance", distanceFromGoal);