Commit graph

12 commits

Author SHA1 Message Date
Michael Hope bd796af05b Added more checks around the tick resolution.
Changed to match the new crystal.
Upped the baud rate to 57600.  12 MHz divides well to most rates...
2014-02-02 15:04:14 +01:00
Michael Hope b07a2f29a7 Enable interrupts before running.
Add an encoded version of the CPU frequency as a reference.
Set the centre to 150 now that the CPU frequency is correct.
2014-01-07 22:34:54 +01:00
Michael Hope 93f6b12759 Set the servos based on what is in control. 2014-01-05 16:21:28 +01:00
Michael Hope 4bef38a92a Dropped the configuration from PWMIn. Instead, use the whole of PORTB.
Added a counter that bumps when channel 0 changes.
2013-12-30 19:00:53 +01:00
Michael Hope 8dd0762b75 Made the input positions a bit less magic numberie. 2013-12-29 21:20:57 +01:00
Michael Hope 7a69136569 Change to an easier to understand 'Missing'. 2013-12-29 18:47:32 +01:00
Michael Hope bc13ffacc3 Merge branch 'master' of ssh://juju.net.nz/~/git/nppilot
Conflicts:
	roverif/pwmin.cc
2013-12-28 19:32:44 +01:00
Michael Hope 1454c8bf7b Use the whole of PORTB for the PWM inputs.
Enable the pullups to stop noise turning into a PWM count.
Add a constant for invalid input.
2013-12-28 19:25:56 +01:00
Michael Hope adb805860e Updated everything to the Google style (yay cpplint!).
Deleted the unused code.
2013-12-27 21:35:37 +01:00
Michael Hope 6786609570 Add the PWM input system.
Switch to zero based to make the ranges easier.
Switch to a lower prescaler to give better fidelity.  Servo output is
now broken.
Send the input message on a timer.
2013-12-21 21:48:45 +01:00
Michael Hope 02a22b48bf Hack around so the roverif builds on the ATMEGA. 2013-12-16 21:20:15 +01:00
Michael Hope 9cf69f7866 Split the rover out into multiple less embarrising files. 2012-07-27 21:49:05 +12:00