How can I tune the Servo component refresh rate ?
Posted: Tue May 21, 2013 2:57 pm
Hello,
In the RC world, we have now ESC that can accept higher PPM refresh rate than simple servo motor ( 50Hz ).
High end ESC can accept 400Hz input.
How and where can I tune this refresh rate in the custom component ?
I looked into the custom code utility but I don't understand anything.
I think it is about this peace of code but I don't know how the %a, %b and %c value are defined ?
Subsidiary question, how do you call those things ? Arguments right ?
#define MX_SERVO_CCPR1H %a / 2
#define MX_SERVO_CCPR1L %b / 2
#define MX_SERVO_T1CON %c
Thank you for your help.
In the RC world, we have now ESC that can accept higher PPM refresh rate than simple servo motor ( 50Hz ).
High end ESC can accept 400Hz input.
How and where can I tune this refresh rate in the custom component ?
I looked into the custom code utility but I don't understand anything.
I think it is about this peace of code but I don't know how the %a, %b and %c value are defined ?
Subsidiary question, how do you call those things ? Arguments right ?
#define MX_SERVO_CCPR1H %a / 2
#define MX_SERVO_CCPR1L %b / 2
#define MX_SERVO_T1CON %c
Thank you for your help.