|
Re: Gear Tooh phase B? help?
Thank you. I made encoder_22_count because For some reason when I compiled, it said that there were MULTIPLE DEFINITIIONS for All of those variables in the Encoder.c file. All of the counters, all of the functions had multiple definitions...were declared more than once in the code, but I couldn't find out where! In using MPLAB, I looked everywhere, I did a search in all of the files..(Edit, Find in Files), and I found 16 declarations of Encoder_1_Count, and none of them were second declarations of the same variable. (same for all of the other variables). So I changed the variable names and I dont know where the original Encoder_1_Count is being used, but Im using Encoder_11_Count now, and Initialize_Encoders1() and Get_Encoder_1_Count1() now instead.
Thanks
P.S. I cant use the gear tooth sensor I found out, because im not using a regular CIM motor or gearbox. I'm using a ___ for a winch. I'm going to have to use a bunch of Limit Switches instead. How do I connect the limit switches? What is NC2, N03, and COM1? Do these all connect into a PWM cable and then into Digital In/Out on the RC? Is in Analog? Thanks for your help!
|