HMC5883 Compass icon HMC5883 Compass Reads HMC5883 3-axis compass via I2C and updates EZ-Script variables on demand; polled control offers periodic heading data, for connected sensors. Try it →
 

Setnavigationstatustostopcancel

SetNavigationStatusToStopCancel()

Description

Instruct the navigator in NMS Level #1 to stop/cancel navigating. The variable $NavigationStatus will also update to StoppedCancelled.

*Note: the NMS Level #1 robot skill must support this function. Verify with its manual that this feature is supported. There should also be an option in the respective robot skill for support pausing with close distances.

Example NMS Level #1 controls are:

Example

// Stop navigating if the ping sensor detects an object less than 100 distance
if (Ping.get(d0, d0) < 100)
  Navigation.SetNavigationStatusToStopCancel();