Mike
24-01-2006, 21:32
Since it seems our '06 controller isn't working (long story) I'm trying to work on the camera with our Edubot controller.
I downloaded Kevin Watson's camera code (streamlined version) and opened it up in MPLab. I followed the directions in "Using_Last_Years_FRC.txt" (Change device/libraries/etc.) I then compiled and uploaded the file to my controller.
I have the camera connected correctly. Pan is pwm01, tilt is pwm02, power is on pwm03 and serial is connected via rs232->ttl adapter on the TTL port.
However, when I turn the controller on I get a blinking red light of death (BRLOD) on "Program State"
I threw in a couple printf's to see if I could diagnose the point of failure. I put printf's in at
Line 178 (after the #endif of #ifdef TERMINAL_SERIAL_PORT_2)
Line 180 (after Putdata(&txdata); and before User_Proc_Is_Ready())
Before Tracking_Info_Terminal();
After Tracking_Info_Terminal();
After Camera_Handler();
After Servo_Track();
None of these print out, so it seems that something may be failing in or before the serial port initialization.
Does anyone have any idea of what's wrong, because I sure don't :(
I downloaded Kevin Watson's camera code (streamlined version) and opened it up in MPLab. I followed the directions in "Using_Last_Years_FRC.txt" (Change device/libraries/etc.) I then compiled and uploaded the file to my controller.
I have the camera connected correctly. Pan is pwm01, tilt is pwm02, power is on pwm03 and serial is connected via rs232->ttl adapter on the TTL port.
However, when I turn the controller on I get a blinking red light of death (BRLOD) on "Program State"
I threw in a couple printf's to see if I could diagnose the point of failure. I put printf's in at
Line 178 (after the #endif of #ifdef TERMINAL_SERIAL_PORT_2)
Line 180 (after Putdata(&txdata); and before User_Proc_Is_Ready())
Before Tracking_Info_Terminal();
After Tracking_Info_Terminal();
After Camera_Handler();
After Servo_Track();
None of these print out, so it seems that something may be failing in or before the serial port initialization.
Does anyone have any idea of what's wrong, because I sure don't :(