Michael Hope
8130dd353f
Switched to 'high speed mode' as the UART divisor wasn't very accurate
...
at 38400 baud.
2013-12-28 19:26:54 +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
94424fd1a4
Added an 'Initial' state to tell rebooted versus shutdown.
2013-12-28 18:35:25 +01:00
Michael Hope
241770ced5
Fixed the breakage after linting.
2013-12-27 21:38:31 +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
2ad3d8da98
Changed Servos from static to an instance to match the other classes.
2013-12-27 20:16:04 +01:00
Michael Hope
de381a0d97
Sped up the reset command.
...
Added a remote-flash command that copies to blue and flashes.
2013-12-27 20:15:13 +01:00
Michael Hope
cbb20793c4
Switched to a 'fill' model. Pulled the send up to common code.
2013-12-18 23:58:39 +00:00
Michael Hope
cff60a194e
Add a minimal bit array just for pending events.
...
Switch message sending to setting deferred events that are checked
when the TX buffer is empty.
2013-12-18 23:52:02 +00:00
Michael Hope
80fe17b7e2
Updated the Makefile to program from blue.
2013-12-18 23:50:17 +00:00
Michael Hope
6397e1939b
Show the PWM inputs as signed.
2013-12-26 21:47:42 +01:00
Michael Hope
5f7428944c
Added definitions for the servo limits.
...
Initialise servos to middle.
Minor rework to the ISR to set the OCRs earlier.
2013-12-26 21:46: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
4d2c2acf80
Fix how escaped characters are modified.
...
Turn on receive interrupts. Receive works!
Add a Python hack to test two way comms on the link.
Fix the red and green pin definitions.
2013-12-20 21:46:38 +01:00
Michael Hope
4ec2551835
Changed the XOR value so a escape doesn't become a null.
...
Added (untested) receive support to Link.
Added simple message dispatch.
Added a ping/pong handler for testing.
2013-12-20 21:16:01 +01:00
Michael Hope
34928e2772
Add the transmit part of the serial link.
...
Expand the heartbeat to include time and state.
2013-12-17 21:47:44 +01:00
Michael Hope
ff22d9982b
Reworking the roverif to be more suited to the ATMEGA.
2013-12-17 20:48:07 +01:00
Michael Hope
4b61ec36e3
Imported the AVR STL 1.1 libraries.
...
Stubbed out more of STL.
2013-12-17 20:47:35 +01:00
Michael Hope
7869860944
Hack around the lack of initializer_list on the AVR.
2013-12-16 21:22:34 +01:00
Michael Hope
02a22b48bf
Hack around so the roverif builds on the ATMEGA.
2013-12-16 21:20:15 +01:00
Michael Hope
117306c873
Fixed up the tests.
...
Added tests for the Debug log routines.
2013-07-04 21:20:45 +02:00
Michael Hope
b0368f7af0
Added debug routines.
...
Split the board specific code into a HAL API.
Added a POSIX HAL and hacked everything over to it.
2013-07-04 20:56:38 +02:00
Michael Hope
6fc685bc2a
Added debug routines.
...
Split the board specific code into a HAL API.
Added a POSIX HAL and hacked everything over to it.
2013-07-04 20:55:01 +02:00
Michael Hope
76ad8d6c7c
Created a stub of a HACKING file.
2013-07-01 21:29:22 +02:00
Michael Hope
546b64970a
Changed back to the CopterControl.
...
Tidied up the GPIO mode comments in blink.c.
2013-06-30 21:11:35 +02:00
Michael Hope
7075882e6a
Put the blink example under experiments and bind back into the top
...
level Makefile.
2013-06-26 21:20:29 +02:00
Michael Hope
da8f0db61c
Tidy up the OpenOCD file by using the defaults where possible.
2013-06-26 21:19:30 +02:00
Michael Hope
b082de4efc
Split the linker script out into platform specific versions.
...
Added a cloned script for the bare H103.
2013-06-26 21:09:37 +02:00
Michael Hope
5ab31746d8
Update the blink example to work on the H103.
2013-06-26 21:08:04 +02:00
Michael Hope
9d6ff6eff4
Added an OpenOCD config.
2013-06-26 20:16:50 +02:00
Michael Hope
9c58df87ed
Added the supervisor that monitors the inputs and arming state.
2012-07-28 22:14:02 +12:00
Michael Hope
33d5785e77
Change Timer to a class as it is.
2012-07-28 22:13:29 +12:00
Michael Hope
211d2ab84c
Added a analogue switch with hysteresis.
2012-07-28 22:12:35 +12:00
Michael Hope
71d2dcb231
Promoted the blinker and added tests.
2012-07-28 19:21:37 +12:00
Michael Hope
9cf69f7866
Split the rover out into multiple less embarrising files.
2012-07-27 21:49:05 +12:00
Michael Hope
c5de2a1945
Renamed src to the rover interface. Switched to autotools for the makefile.
2012-07-27 20:45:45 +12:00
Michael Hope
f056c2cac6
Pushed the USB transmission into a helper class.
2012-07-25 21:04:45 +12:00
Michael Hope
88f059dde3
Switched to a function based dispatch.
2012-07-25 21:04:17 +12:00
Michael Hope
3a00f09a0b
Added a ring buffer.
2012-07-25 21:02:27 +12:00
Michael Hope
61f730830c
Made the timer names less magic. Added comments.
2012-07-22 19:23:12 +12:00
Michael Hope
f0583b4431
Follow up in the main code from the COBS changes.
2012-07-22 19:15:30 +12:00
Michael Hope
1b585f0c35
Flesh out the decoder and add tests.
2012-07-22 19:10:13 +12:00
Michael Hope
47ab08b42c
Added timer caputre for the remote inputs.
2012-07-21 21:14:42 +12:00
Michael Hope
460838e62f
Added a COBS encoder and basic protocol.
2012-07-21 21:13:57 +12:00
Michael Hope
a22c7f9273
Added a gitignore.
2012-07-21 21:12:57 +12:00
Michael Hope
353206f268
Added basic PWM capture support and printing.
2012-07-18 21:21:01 +12:00
Michael Hope
c2845e9da0
Added a Doxygen file and some basic comments.
2012-07-17 22:23:25 +12:00
Michael Hope
89cc4c7c35
Added a heartbeat over USB.
2012-07-17 22:22:11 +12:00
Michael Hope
16621425e9
Push the timer ticks into the switcher as well. Fire from the
...
libmaple callback.
2012-07-17 21:50:33 +12:00
Michael Hope
d9fd7adcb0
Move libmaple under external.
2012-07-17 21:49:35 +12:00