![]() |
Interface with breaker
My team captain thinks I need to interface with the breaker panel to tell if a breaker blows
Do any of you have any ways to go about this. There is a pwm slot in it, but I know neither where it goes nor what to do to get information from it |
Re: Interface with breaker
Quote:
(that pwm type connector is unsupportd at this time) The default code is already setup to send the breaker data back to he dashboard program. Take a look in user_routines.c and you'll see it towards the end of the Default_Routine. |
Re: Interface with breaker
Is it in the DDT version? What does it look like if it is because I can't really tell anything that might be it
|
Re: Interface with breaker
Quote:
The breaker code is in Process_Data_From_Master_uP() of both the 2.2 and 2.4 versions of the default code. Code:
/* Example code to check if a breaker was ever tripped. */ |
Re: Interface with breaker
My DDT code did not come with it, could I just put that in there
Also, do you know where is the manual for the breaker panel is, because think our electronics people did it their way instead of the right way and the dashboard is telling me that everything is tripped |
Re: Interface with breaker
The breaker panel telemetry parser is located in IFI's serial port driver. I've taken all of the breaker code and placed it into it's own source file. It's part of the latest build of the serial port driver I mentioned in the "Updated: Serial Port Driver Code" thread.
-Kevin |
Re: Interface with breaker
Quote:
The code will drop right into the DDT code, however, I haven't looked at the DDT closely to see if there are any potential serial port conflicts. Try it and you can tell me if it works okay. |
Re: Interface with breaker
I dumped that code in and got 2 errors from the compilation
Code:
Z:\user_routines_DDT.c:313:Error [1105] symbol 'aBreakerWasTripped' has not been defined |
Re: Interface with breaker
Quote:
|
Re: Interface with breaker
Quote:
What Kevin was referring to above is he has already extracted Breaker_Tripped() so you can easily add it to your DDT project. Go to Kevin's website and pickup his http://kevin.org/frc/frc_serial_ports_0.3.zip within that zip file Kevin has pulled the function and data structures you need into the two files:
I just checked this combination and you'll need to add: #define FALSE 0 to breaker_panel.h or include it from somewhere else where it's already defined. |
Re: Interface with breaker
What should my prototype for Breaker_Tripped() be, and is there any specific place I have to put it?
Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_DDT.c" -fo="user_routines_DDT.o" /i"c:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-Also, would i put my printf statement to tell me a breaker tripped in the if loop or the for loop? [edit] Is it Ok if I just put it right here like this? The compiler is happy Code:
/******************************************************************************* |
| All times are GMT -5. The time now is 23:58. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi