DCC++ Autopilot compilation problem

alexisahmc Jan 10, 2017

  1. alexisahmc

    alexisahmc TrainBoard Member

    29
    27
    7
    Hello everyone,
    Believe it or not, I've got everything working and DCC++ does exactly what it is supposed to do. Amen to that!
    However, I am now trying to create some automation for one train (as in one autonomous run around the track and back in the yard), but have not not been able to verify/upload the sketch. I keep getting an error that the "#include file project.h" which is called from the "eggtimer.h" is missing.
    I have tried to search for one, but no luck.
    I read that this file is self generated by the system during compilation, but I don't seem to get anywhere with this.
    Anyone of you has tried to run some variation of the autopilot sketch, or know anything about this issue?
    Cheers!
     
    Scott Eric Catalano likes this.
  2. brendanf

    brendanf TrainBoard Member

    62
    54
    8
    I've never heard of either of those files within the Arduino library.

    Where did you find the eggtimer.h file? Do you have other includes that you have added to your program? The one option I would suggest for testing purposes only would be to remove the #include eggtimer.h (just add // before #include to have the compiler ignore it) and see what happens then. It might not even be needed based on how your program works.
     
    Scott Eric Catalano likes this.
  3. alexisahmc

    alexisahmc TrainBoard Member

    29
    27
    7
    Thanks for the reply!
    Sorry, I should have attached the links below in the first posting :-(
    Please refer to the following two links:
    Brief reference to the Autopilot option in this forum thread:
    http://www.trainboard.com/highball/...ation-and-interface.84800/page-21#post-955251
    Related files to this GitHub repository:
    https://github.com/DccPlusPlus/BaseStation/tree/development/DCCpp_Uno.
     
    Scott Eric Catalano likes this.
  4. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    Strange! I don't see any references to project.h in the eggtimer.h or eggtimer.cpp files?

    Jim
     
    Last edited: Jan 11, 2017
    Scott Eric Catalano likes this.
  5. alexisahmc

    alexisahmc TrainBoard Member

    29
    27
    7
    Jim,
    You da man!!!!!!
    Somehow I have an earlier version of the eggtimer.h and not the later one that DCC++ is using. Not to mention I didn't even have the eggtimer.cpp file at all. THANKS!!!!! for looking at the obvious, (and checking the depository for the latest) which is SO OFTEN overlooked, due to the regular lack of common sense and tunnel vision. You just gave me yet another lesson. But , I am GLAD for that.
    Much obliged!
     
    Scott Eric Catalano likes this.
  6. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    Alexis,
    Glad it helped!
    Just needed a fresh pair of eyes to steer you!
    I'm very new to model railway building, but have experience of electronics and Arduinos. I too am building a DCC++ layout - a very small n-gauge goods yard. I'm currently working on the controller - Arduino Nano based with ESP8266 wifi comms.

    Good luck with your automation project, I'd like to hear how it goes, as an automated shuttle diesel bus would add interest to my layout - though that's a long way down my list of features to build!

    Jim
     
    Scott Eric Catalano likes this.
  7. alexisahmc

    alexisahmc TrainBoard Member

    29
    27
    7
    Me too in the process of starting to figure out an N scale "coffee table" layout (literally), therefore the need for automation. Just want to work out the automation routine, train detection and a couple of turnouts. It's going to be small and manageable. I've had a couple of layouts (HO) before, but I found out that the maintenance and work required for the upkeep was too much for me and were dismantled. But the hobby still is of great interest. So, this time I am going small and perhaps with increased detailing.
    I've had programming experience with the .NET environment. Also plenty of bench electronics repair to component level. And on top of that I restore/repair antique tube radios. Yes, I am old and retired. Now I am in the process tackling C++ and see were it goes.
    BTW the new autopilot sketch compiles properly :) Imagine that!
     
    Scott Eric Catalano likes this.

Share This Page