Quote:
|
Originally Posted by 1075master
as a person who doesn't know alot about programming i figured this would be a great help. i was simply goofing a round and trying to see if i could make a joystick control. the easiest way i found was to do exactly what they did and make a text box and write the actual code. a drive we are experimenting with this year uses a potentiometer to measure direction. the way it is programmed is that it will take the joystick value and the potentiometer value and as they get closer and closer to the same the motor moves slower and slower. i tried to figure this out with corechart but i could not...
|
The "LimitMix" example:
pwm01 = pwm03 = Limit_Mix(2000 + PWM_in1 + PWM_in3 - 127) LEFT WHEELS
pwm02 = pwm04 = Limit_Mix(2000 + PWM_in3 - PWM_in1 + 127) RIGHT WHEELS
is included in the examples folder as a similar example and is entirely programmed in CoreChart ( no text boxes or C ) to show how this can be done.
Note too that the "default routine" supplied by IFI is also included and can be included to removed from the "Main" routine.
We will update CoreChartFR with more examples so check for new versions on the site:
http://www.elabtronics.com/CoreChartFR.htm