I found an entry in the documentation for a function called pulseIn(). From the description there, it seems this is the function that will fulfill my needs to read a servo PWM signal from an RC receiver. However, when I try to compile, it fails with the following error:
error: 'pulsein' was not declared in this scope
Here is a snippet from my code:
pinMode(ELEVATOR_PIN, INPUT);
elevator = pulseIn(ELEVATOR_PIN, HIGH);
Is there a library I need to #include? Is the function not yet implemented?
Note: I am using the command line toolchain.