![]() |
default camera code edit
Does the default code for the camera (MPLab) have some sort of setting or special function that prevents programmers from adding their own code? The camera code runs perfectly (as far as we can tell anyway), but our code that we added to the file under Default_Routine (which worked on other default codes) doesn't work now. Is there something we are supposed to change or do?
|
Re: default camera code edit
Make sure that you call the Default_Routine from the Process_Data_From_Master_uP function, it is commented out in the default camera code.
|
Re: default camera code edit
Quote:
|
Re: default camera code edit
Quote:
-Kevin |
Re: default camera code edit
Quote:
|
Re: default camera code edit
Quote:
|
Re: default camera code edit
Also make sure you aren't calling any other functions that modify PWM values after Default_Routines().
|
Re: default camera code edit
My bad. Turns out it was commented out somewhere else (or I went without sleep to long).
When I uncommented Default_Routine(), the camera started acting strange. The pwms would switch numbers back and forth such that the camera was vibrating. I checked the code to see if it changed the pwms for the camera, and didn't find anything. |
Re: default camera code edit
Trouble is, in that Default_routine function you uncommented, there are other things that control pwm01 and pwm02. So you, at the top of default_routine, just delete those two lines of code that modify pwm01 and pwm02.
|
| All times are GMT -5. The time now is 01:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi