*** Q1.0 EMag/XMag Software ***

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Miscue
    Super Moderator

    • Oct 2000
    • 7105

    #106
    Originally posted by nippinout


    Miscue, even if people saw your code, only a very small fraction of 1% would know what the heck they were looking at.


    I kept that in mind when people asked for my code...

    Original:
    ldi r18, 30 ; 30ms solenoid dwell time
    rcall saveSolenoidDwell

    "Programmer" Bob Edition:
    ldi r18, 2 ; B0b !$ @ l33t 4aX0r!!! f33r m3h!
    rcall saveSolenoidDwell

    Comment

    • Wynken
      Engineer 00
      • Feb 2003
      • 124

      #107
      Dude, Programmer Bob's edition kicks yours' square in the rear. His dwell is like a 15th of yours!

      Bad joke on my part. Anyway, I got to play around with your code on BlackVCG's setup. I like it. Keep up the good work.

      PS The "blah" menu should stay for release, the geek in me loves it.

      *edited for stars*
      Down with Righty!

      Comment

      • Miscue
        Super Moderator

        • Oct 2000
        • 7105

        #108
        Originally posted by Wynken
        Dude, Programmer Bob's edition kicks yours' square in the rear. His dwell is like a 15th of yours!

        Bad joke on my part. Anyway, I got to play around with your code on BlackVCG's setup. I like it. Keep up the good work.

        PS The "blah" menu should stay for release, the geek in me loves it.

        *edited for stars*
        Hehe, that's just a place holder I haven't removed. Maybe I'll keep it... "What's this 'BLAH 4' menu? Is it a feature?" "It's a secret. It will help you win. Trust me."

        Glad you approve!

        Comment

        • Wynken
          Engineer 00
          • Feb 2003
          • 124

          #109
          Originally posted by Miscue


          Hehe, that's just a place holder I haven't removed. Maybe I'll keep it... "What's this 'BLAH 4' menu? Is it a feature?" "It's a secret. It will help you win. Trust me."

          Glad you approve!
          Yeah, just have an on/off setting underneath that does absolutely nothing, but can be toggled. That'd drive 'em crazy.

          I've got a quick question: Are you doing it all in assembly? Is there a decent C compiler for the controller? That'd be cool if there was.
          Down with Righty!

          Comment

          • Miscue
            Super Moderator

            • Oct 2000
            • 7105

            #110
            Originally posted by Wynken


            Yeah, just have an on/off setting underneath that does absolutely nothing, but can be toggled. That'd drive 'em crazy.

            I've got a quick question: Are you doing it all in assembly? Is there a decent C compiler for the controller? That'd be cool if there was.
            Yeah, all in assembly. They have various compilers, but I didn't look at them closely... so don't know much about them. There's a C one, and a BASIC one I think... but they will make your program unnecessarily large - could be drastic difference I'd imagine. The more power a high-level language instruction has... the more programming space you wipe out. If you write it in assembly, you can be clever with how you do things to make things small... whereas the compilers available won't be able to produce machine code that is as clever/small.

            Comment

            • Wynken
              Engineer 00
              • Feb 2003
              • 124

              #111
              Originally posted by Miscue


              Yeah, all in assembly. They have various compilers, but I didn't look at them closely... so don't know much about them. There's a C one, and a BASIC one I think... but they will make your program unnecessarily large - could be drastic difference I'd imagine. The more power a high-level language instruction has... the more programming space you wipe out. If you write it in assembly, you can be clever with how you do things to make things small... whereas the compilers available won't be able to produce machine code that is as clever/small.
              It would be pretty cool though, to write the gun software in BASIC.

              Code:
              IF TRIGGER_PULL=1 THEN
                FIRE_GUN
              END IF
              And... the chip is full. *but the code is readable*
              Last edited by Wynken; 10-22-2003, 10:50 AM.
              Down with Righty!

              Comment

              • hitech
                Not a shedder of vortices
                • Nov 2001
                • 4775

                #112
                Originally posted by Miscue
                I have had about a half-dozen requests for my source code...
                Sorry about that. I didn't think there were that manu computer geeks here.

                I assume the emag board does not detect the voltage of the battery (that you have access to in the code anyway)? If it did, you could compare it to the voltage curve for a NiMH battery and estimate remaining charge.


                Hey Hitech your starting to sound like me! - AGD
                Hitech is the man.... :eek: - Blennidae
                The only Hitech Lubricant

                Comment

                • Miscue
                  Super Moderator

                  • Oct 2000
                  • 7105

                  #113
                  Originally posted by hitech


                  Sorry about that. I didn't think there were that manu computer geeks here.

                  I assume the emag board does not detect the voltage of the battery (that you have access to in the code anyway)? If it did, you could compare it to the voltage curve for a NiMH battery and estimate remaining charge.
                  No worries! I just provided an answer to a FAQ is all.

                  No... all you get is low voltage detection. Can't tell anything else about the battery.

                  Comment

                  • Miscue
                    Super Moderator

                    • Oct 2000
                    • 7105

                    #114
                    Originally posted by Wynken


                    It would be pretty cool though, to write the gun software in BASIC.

                    Code:
                    IF TRIGGER_PULL=1 THEN
                      FIRE_GUN
                    END IF
                    And... the chip is full. *but the code is readable*
                    Haha... that is code for full-auto, and not semi.

                    Semi =

                    IF TRIGGER_PULL=1 AND HAS_RELEASED_TRIGGER=1 THEN
                    FIRE_GUN
                    END IF

                    Subtle difference.

                    Comment

                    • JT2002
                      Registered User
                      • Jun 2002
                      • 1863

                      #115
                      now we can reprogram our boards for FA

                      Comment

                      • hitech
                        Not a shedder of vortices
                        • Nov 2001
                        • 4775

                        #116
                        Originally posted by Miscue

                        IF TRIGGER_PULL=1 AND HAS_RELEASED_TRIGGER=1 THEN
                        FIRE_GUN
                        END IF
                        Wouldn't that make the gun fire when the trigger is released?


                        Hey Hitech your starting to sound like me! - AGD
                        Hitech is the man.... :eek: - Blennidae
                        The only Hitech Lubricant

                        Comment

                        • Miscue
                          Super Moderator

                          • Oct 2000
                          • 7105

                          #117
                          No... you have to detect when the trigger is let go. If it's been let go you set a flag to 1 or whatever. Otherwise, it's full auto. Like I hinted before... tampering of one instruction = FA... I wasn't kidding.

                          So... a 'new' trigger pull is when the trigger has been let go since last pulled... and the trigger is currently pulled again.

                          Comment

                          • hitech
                            Not a shedder of vortices
                            • Nov 2001
                            • 4775

                            #118
                            Originally posted by Miscue
                            So... a 'new' trigger pull is when the trigger has been let go since last pulled... and the trigger is currently pulled again.
                            What about the first trigger pull?







                            BTW, I'm just messing with you.


                            Hey Hitech your starting to sound like me! - AGD
                            Hitech is the man.... :eek: - Blennidae
                            The only Hitech Lubricant

                            Comment

                            • FutureMagOwner
                              Registered User
                              • Dec 2001
                              • 3354

                              #119
                              personally i would like to see:

                              shot buffering

                              adjustable bps to wicked high numbers (like 20+ for no reason in particular lol)

                              now i know others wouldnt want this but id would think it would be cool if you could some how do it so when you switch the selector on the side (manual electronic etc) that when you flip it to e it turns it on then when you put it on manual it turns off some how. (i dont like hybrid so i dont care about that but if its possible to do the other 2 then you should be able to do that)
                              maybe some kinda switch it hits when you flip it one way or when you turn it it completes the connection powering the gun.

                              a game timer i accualy would use this in a tournament so i want it.

                              shot counters i dont care about so id rather save room or just have a record max bps you achieved.

                              the chrono mode idea also sounds like something i would definintly like.

                              i would also like a safety mode of some sort besides the manual one because the one in the frame locks up and is hard to undo most of the time.

                              just some basic things i would want lol

                              Comment

                              • hitech
                                Not a shedder of vortices
                                • Nov 2001
                                • 4775

                                #120
                                A resetable shot counter is usefull when you are trying to keep track of how much paint you shoot per game or how many shots you get per fill. Just a thought.

                                Doing my part...


                                Hey Hitech your starting to sound like me! - AGD
                                Hitech is the man.... :eek: - Blennidae
                                The only Hitech Lubricant

                                Comment

                                Working...