Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
read_and_interpret_the_pressure_sensor [11-10-2016 15:49]
5.199.151.152
read_and_interpret_the_pressure_sensor [11-10-2016 15:53]
5.199.151.152
Line 3: Line 3:
 Interpreting the pressure of is one of the three features of a Pillo controller. The sensor translates the pressure on the Pillo into decimal numbers between 0 and 1. In order to retrieve the pressure value of a Pillo you need to use the [[api_overview|GetPressure]] function and read it out from a variable. Interpreting the pressure of is one of the three features of a Pillo controller. The sensor translates the pressure on the Pillo into decimal numbers between 0 and 1. In order to retrieve the pressure value of a Pillo you need to use the [[api_overview|GetPressure]] function and read it out from a variable.
  
 +Parameters:
 +<​code>​
 +GetPressure(PilloID)
 +</​code>​
 +**PilloID**:​ the ID of the player to get the pressure of.
  
 ---- ----
Line 17: Line 22:
 { {
  public PilloID pilloID1;  public PilloID pilloID1;
- 
  private float pressureP1;  private float pressureP1;