ARM7 based quadrocopter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
427B

  1. #ifndef RC_PPM_H_
  2. #define RC_PPM_H_
  3. #define MAX_CHANNELS 8
  4. #define RC_CAL_START 0
  5. #define RC_CAL_END 1
  6. #define RC_CAL_LOAD 2
  7. #define RC_CAL_SAVE 3
  8. struct rc_values {
  9. int16_t chan[MAX_CHANNELS];
  10. };
  11. uint32_t rcontrol_getvalues(struct rc_values *rc);
  12. uint32_t rcontrol_getswitches(struct rc_values *rc);
  13. void rcontrol_calibrate(uint32_t mode);
  14. void rcontrol_print_cal(void);
  15. void at91_tc1_init(void);
  16. #endif /*RC_PPM_H_*/