> You already did, its in the library! > I'd personal use either the byte-version or maybe a degree-version > (which needs a offset and factor for each servo).
As you can see, I can't remember my own library very well. Since I don't use it. It was just fun to write, and it will be fun to upgrade/ fix. I don't think degree's would be useful since all servo's are different. > Again, what does 'dedicated' relate to? "dedicated" means that the slave PIC is dedicated to running servos. It is a way to show that it is different from the regular servo usage on your main PIC (which is not dedicated to running servos only). >This should be a project: a ready-to-run application. It is a ready-to-run application. Just compile and write to your slave PIC. > I guess decoding is possible with interrupt on change. Yep, that's the plan! Matt. On Oct 15, 1:21 pm, Joep Suijs <[email protected]> wrote: > Hi Matt, > > > servo_move() tells the servo where to go. yes this is the major API. > > I would have called it 'set'... And I would have swapped the > parameters: set servo 3 to 50, not 'set 50 for servo 3'. First object, > then data. > > > Your PIC could be a slave device (rc_servo_slave.jal) which is plugged > > into your radio receiver to receive pulses. Someday I'll make a lib > > for that :) > > Ah... That's what you mean with master. > Since most users will use the master library, maybe just name this > servo and one day, create a servo_decoder or something... I guess > decoding is possible with interrupt on change. > > > I was thinking about using percent, but it lowers resolution and adds > > code. I could make a servo_move_percent(). > > You already did, its in the library! > I'd personal use either the byte-version or maybe a degree-version > (which needs a offset and factor for each servo). > > > What's wrong with the filename servo_rc_master_dedicated? > > I was wrong on this one - I thought it was an i2c slave setup. It is > an interface to a specific slave type 'servo_rc' and in this context > 'master' means 'i2c master'. What does 'dedicated' stand for? > > > servo_rc_master_dedicated is the library used in the master PIC to > > control a dedicated PIC slave device. > > 16f877a_servo_rc_master_dedicated_master_i2c.jal > > Again, what does 'dedicated' relate to? > > > servo_rc_master_dedicated could also contain a serial example. > > Maybe name this servo_rc_serial_master? > > > Currently there are procedures named servo_rc_is_ready_i2c(). Later > > there may be servo_rc_is_ready_serial() > > Please create a separate lib for this, see above. > > > The other part of it is > > 16f877a_servo_rc_master_dedicated_slave_i2c.jal. This will be your > > slave PIC. > > This should be a project: a ready-to-run application. > > Joep -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
