_api.forcesensor – force sensor functions API¶
This module contains the API functions for user interaction with a force sensor brick. (Included with Spike Prime but not in the Robot Inventor kit.)
This module is imported by the mindstorms – Mindstorms branding of the user API and spike – Spike Prime branding of the user API modules so that the API can be branded appropriately in documentation (i.e. so that Mindstorms docs can tell you to import mindstorms, and Spike Prime docs can tell you to import spike).
ForceSensor Class¶
Imports¶
Function
_api.util.newSensorDisconnectedErrorFunction
utime.sleep_msFunction
util.sensors.is_typeConstant
util.constants.LPF2_FLIPPER_FORCE= 63Constant
util.constants.PORTS= {‘C’: Port(C), ‘B’: Port(B), ‘D’: Port(D), ‘E’: Port(E), ‘A’: Port(A), ‘F’: Port(F)}