Project

General

Profile

Revision 0c873a67

ID0c873a678934d3644224359dbebdfcb750af3f9a
Parent c5d6b0e8
Child 453e1532

Added by Matthew Sebek about 10 years ago

Fixed up all the buggy code.

View differences:

arduino/InterruptSingleChannel/receiver.h
12 12
extern "C"{
13 13
#endif
14 14

  
15
  int receiver_init();
15
  #define THR_INDEX 0
16
  #define AIL_INDEX 1
17

  
18
  // To check if new value available, check the
19
  // value contained in this, using the correct
20
  // index.
21
  volatile char rc_available[2];
16 22

  
17
  void receiver_on_interrupt(int int_pin);
23
  // if this is true, we are connected.
24
  volatile char rc_connected;
25

  
26
  int receiver_init();
18 27

  
19
  // Gets the angle without a dead zone
20
  // Returns a value between 0 and 255, with no
21
  //   movement being 128.
28
  // Zero for throttle position, 1 for ail pos
29
  // returns an angle strictly between 0 and 180,
30
  // with 90 being the center position.
31
  int receiver_get_angle(int int_pin);
22 32

  
23 33
#ifdef __cplusplus
24 34
} // extern "C"

Also available in: Unified diff