summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altos: Hacks to test PWM output on EasyMegaeasymega-pwm-hacksKeith Packard2015-12-25
| | | | | | | This uses the companion port chip select pins, which happen to be connected to tim4. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0Keith Packard2015-12-25
| | | | | | This is needed to configure the PWM timer correctly Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Get stm32l pwm driver workingKeith Packard2015-12-25
| | | | | | | | | | | | | Fix the CCMR1_OC1PE and CCMR2_OC3PE values. Disable clock when no PWM outputs are running. Fix the apb1enr value for the timer. Set ARR value to PWM_MAX - 1 -- ARR is off by one. Sets the GPIO pins to 40MHz bandwidth for sharper edges. Tested on EasyMega, but that code is not included as it breaks the companion protocol. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add TeleMega v2.0, including PWM driverKeith Packard2015-12-25
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-dbg: Stop using sigvecKeith Packard2015-12-23
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Remove some bogus bits from am.cssKeith Packard2015-11-14
| | | | | | Just commented out stuff which had a nested comment and was thus invalid Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Construct html index for documentationKeith Packard2015-11-13
| | | | | | This gets uploaded to keith's machine as an easy way to see what's available. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Try a different trick for asciidoc build issuesKeith Packard2015-11-13
| | | | | | | | | asciidoc creates temp files in the current directory using basename of the source filename. Doing html and pdf builds in parallel causes chaos as a result. Fix this by having the pdf target build both serially, and then have the html target just depend on the pdf target. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Split out EasyMini into a separate manualKeith Packard2015-11-13
| | | | | | | EasyMini uses a tiny fraction of the overall system software; splitting the manual out makes it a lot smaller. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Reformat html versions a bitKeith Packard2015-11-13
| | | | | | | Color more text black, including toc. Add a bit of space around the toc. Make paragraph labels bold. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Move pad beeps table to usage chapterKeith Packard2015-11-13
| | | | | | This places all of the sound information in one place. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Provide more actual links instead of just chapter namesKeith Packard2015-11-13
| | | | | | | Replace 'see chapter "foo"' with 'see <<foo>>' so that a link is created to directly go to the relevant text. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Reformat 'Using MicroPeak' sectionKeith Packard2015-11-13
| | | | | | Use labeled paragraphs to make the steps stand out. Signed-off-by: Keith Packard <keithp@keithp.com>
* Break out common pieces from TeleGPS and AltusMetrumKeith Packard2015-11-13
| | | | | | | This creates shared files for portions of the TeleGPS and AltusMetrum manual to avoid duplicating text between the two. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add product logos to booksKeith Packard2015-11-01
| | | | | | | This places the product logo on the title verso in pdf form, and above the TOC in html form. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: telemini outline pdf changed nameKeith Packard2015-11-01
| | | | | | It's now telemini-outline.pdf, just like the other outline files. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: verbose mode for a2xKeith Packard2015-11-01
|
* doc: Make pdf titles less ridiculously largeKeith Packard2015-11-01
| | | | | | Instead of having them grow at 20% per nesting level, use 10% instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Get images and tables all centered and labeledKeith Packard2015-11-01
| | | | | | | A bunch of images were using image: instead of image:: and some images and tables were missing titles. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Split revhistory to separate file for html docsKeith Packard2015-11-01
| | | | | | This avoids having the revhistory clutter the top of the document. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Place html book contents on left side of page with separate scrollbarKeith Packard2015-11-01
| | | | | | This lets the user see the toc while browsing the document Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Switch to free fonts. Publish fonts with docs.Keith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Minor makefile cleanupsKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Convert telemetry and companion docs to asciidocKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Convert AltOS doc to asciidocKeith Packard2015-11-01
| | | | | | It's still pretty stale, but at least it isn't in docbook? Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Finish converting docs to asciidoc formatKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add titles to all figuresKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add updating firmware and using am products asciidoc bitsKeith Packard2015-11-01
| | | | | | This finishes the asciidoc transition Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add asciidoc version of Altos Droid manualKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add asciidoc version of altosui chapter.Keith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Lots more conversion from docbook to asciidocKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add asciidoc telemini v1.0Keith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Start doc transition to asciidocKeith Packard2015-11-01
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Force FOP to read images from doc directoryKeith Packard2015-10-13
| | | | | | | | | | Looks like something changed and fop is now reading from the directory containing the source file. xmlto places that source in /tmp, making all relative URIs fail. Fix this by creating a fop configuration file directing it to load relative to the doc directory and then pass that through xmlto. Signed-off-by: Keith Packard <keithp@keithp.com>
* telelco: Fix pad reset to one on radio signal lossKeith Packard2015-10-13
| | | | | | | The pad number was getting reset back to one when signal was lost, causing pad one to get fired in this case even when already set to arm mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* Create directory on keithp.com when uploading devel versionKeith Packard2015-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Keep downloading when a parse error occursKeith Packard2015-10-13
| | | | | | | Eventually, we'll hit a block with no valid data and give up. Until then, keep going in case the flight computer glitched and wrote bad data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up remaining direct AltosState.state usersKeith Packard2015-10-13
| | | | | | | This value has been hidden to avoid having it written accidentally; there were a few more bits of code using it though. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump release number to 1.6.1.1Keith Packard2015-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make sure .eeprom download file is flushed on exceptionKeith Packard2015-10-13
| | | | | | | Flush and close the eeprom file even if an exception occurs to make sure that contents of the file aren't lost. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: In display thread, set new state synchronouslyKeith Packard2015-10-13
| | | | | | | | | | | | | | | | | | When replaying telemetry, received_time gets set by both the telemetry reader (when the file is initially read) and by the replay reader (as the telemetry is processed). Because these two events are separated by the time it takes to play the file, the second time is the one we want for figuring out how long since the last telemetry packet. However, if we set the global state when pulling the state out of the telemetry reader, and then the replay reader pauses for a long time, then the voice output thread sees the intermediate time value and thinks that it has been a long time since the last packet was received and reports that the rocket may have crashed. Fix this by just holding the read state until it has been passed by the replay reader and had the received_time set to current time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add minus sign and decimal point to lat/lon input fieldsKeith Packard2015-10-13
| | | | | | | Some android devices always have change-sign and decimal-point keys visible, but some do not. Make sure they're available for lat/lon input. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco: Adjust drag race UIKeith Packard2015-10-13
| | | | | | | | | Enter/leave drag race is done by rotating the box selector knob to a new 'dr' position and then holding down the firing button; this avoids a potential accidental firing if you somehow don't realize you've armed the box before selecting drag race mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Rotation off by factor of twoKeith Packard2015-10-13
| | | | | | | | | The rotation computation was off by a factor of two when converting the rates to a quaternion (the quaternion needs to be half of the actual rotation amount). This ended up presenting a tilt angle of twice what it should be. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hide 'state' member and use accessor functionKeith Packard2015-10-13
| | | | | | | | Someone was smashing the state to 'landed' when no packets had been received for a while. Found that by making it impossible for anyone outside of AltosState to change the value. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2015-09-29
|\
| * altos/telelco: Add drag race UIKeith Packard2015-08-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the unit disarmed, press and hold the fire button for five seconds to enable drag race mode. The display will show 'dr' for five seconds and beep five times to indicate that drag race mode is enabled. The decimal points in the display will all be displayed as an additional visual aid. Once every five seconds, it will beep. With drag race mode enabled, you can select a box/pad pair and press the 'fire' button to add it to the drag race group. For the current box, all members of the drag race group will have their continuity LEDs blink slowly. There will be no indication of continuity in this mode; you'll want to check that before enabling drag race mode. If you want to de-select a member of the group, just press the fire button again. Each time you push the fire button, it will beep out the pad number added or removed. Arm the box and you will not be able to add or remove members from the drag race group. Firing will simultaneously fire all members of the drag race group. To disable drag race mode, press and hold the fire button for two seconds. It will beep twice and turn off the decimal points in the display. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/telelco: Infrastructure changes for drag racingKeith Packard2015-08-29
| | | | | | | | | | | | | | This makes the lco management code support arming multiple pads and firing all of them at once. The UI code does not expose this yet. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Provide direct segment driving interface for LCD displaysKeith Packard2015-08-29
| | | | | | | | | | | | | | This exposes a simple bit-mask for setting the seven segments instead of just allowing hex-decimal values. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/telefire: No reply for ARMED. Ignore time for FIRE.Keith Packard2015-08-29
| | | | | | | | | | | | | | This will let us do drag races by letting the LCO arm multiple boxes and fire them all with a single command. Signed-off-by: Keith Packard <keithp@keithp.com>