summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Discard usb output before connection. Handle USB reset.0.2Keith Packard2009-05-13
| | | | | | | | | | | | Discarding output before USB is plugged in allows threads that send output and do other things to work without a USB connection. Unfortuantely, there doesn't appear to be any way to detect when the USB link is disconnected, which means that once USB is enabled, future writes will continue to block. USB reset causes the USB interrupts to all be reconfigured back to power-on state. Signed-off-by: Keith Packard <keithp@keithp.com>
* Enable radio monitor by default in teleterra, teledongle and tidongleKeith Packard2009-05-13
| | | | | | | These ground loads want to monitor the radio constantly, and not require use of the 'm' command before listening. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove monitor/rssi functions from telemetrum loadKeith Packard2009-05-13
| | | | | | | Telemetrum is now a flight-only load, use teleterra or teledongle for ground boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* Split out ao_state_names to separate fileKeith Packard2009-05-13
| | | | | | Allows state names to be used in programs without monitoring enabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* Indicate RSSI with a blinking LEDKeith Packard2009-05-13
| | | | | | Blink the red LED at a rate proportional to the RSSI value. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make ao_flight_test show AGL altitude and positive acceleration under boostKeith Packard2009-05-13
| | | | | | This makes the output more readable Signed-off-by: Keith Packard <keithp@keithp.com>
* Make ao_flight_test able to read raw logging dataKeith Packard2009-05-13
| | | | | | | Protect ao_flight_test reading functions so that a simple 'script' output can be fed to the program and have it work correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* Print only RSSI when packet CRC is invalidKeith Packard2009-05-13
| | | | | | | Packets with invalid CRC usually contain bogus data, so don't print that, just print out the RSSI which may contain useful data. Signed-off-by: Keith Packard <keithp@keithp.com>
* Accelerometer-based velocity values are invalid after apogeeKeith Packard2009-05-13
| | | | | | | | | Because the orientation of the flight computer relative to the ground is unknown after apogee, the accelerometer data cannot be integrated to compute velocity. Main deploy is now based purely on barometric altitude and landing detection no longer checks for a low velocity value. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add velocity check for boost detect via accelerometerKeith Packard2009-05-13
| | | | | | | | Bumping the rocket can cause a brief period of high acceleration, which may cause a mistaken boost detection. Require both a high acceleration and reasonable velocity to trigger boost phase. Signed-off-by: Keith Packard <keithp@keithp.com>
* Typo in callsignKeith Packard2009-05-13
|
* Use recorded accelerometer baseline data in ao_flight_testKeith Packard2009-05-10
| | | | | | | | With the flight computer recording a long-term average value for the accelerometer in the flight record, use that to prime the flight test code when running a log file through the simulator. Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't re-initialize the landing range data at each apogee detect sampleKeith Packard2009-05-10
| | | | | | | The landing range values are used only after apogee detect, so we need only initialize them on the transition from apogee to drogue. Signed-off-by: Keith Packard <keithp@keithp.com>
* Initialize ao_min_vel with |ao_flight_vel|Keith Packard2009-05-10
| | | | | | | | As ao_min_vel is stored as an absolute value, it's important to preserve that invariant, even though we don't expect ao_flight_vel to be negative at coast. Signed-off-by: Keith Packard <keithp@keithp.com>
* Decrease telemetry rate on the pad to 1/sec instead of 20/secKeith Packard2009-05-10
| | | | | | | | Transmitting telemetry through the radio consumes a significant amount of battery; reducing the rate to 1/sec will reduce power usage while waiting for launch. Signed-off-by: Keith Packard <keithp@keithp.com>
* Increase the initial accel/baro average to 1000 samplesKeith Packard2009-05-10
| | | | | | | To get an accurate baseline of the launchpad state, take a longer average of the two sensors as the unit boots up. Signed-off-by: Keith Packard <keithp@keithp.com>
* Record average accelerometer value in flight start log recordKeith Packard2009-05-10
| | | | | | | | | The average accelerometer value cannot be extracted from the log as the record starts after that is computed. As that drives much of the accelerometer-based state transition logic, it is an important value to have, so we log it as part of the flight start record now. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add version command to show product informationKeith Packard2009-05-09
|
* Pad callsign with nulsKeith Packard2009-05-09
|
* USB spec limits bulk endpoints to 64 byte payload max.Keith Packard2009-05-01
| | | | | For full-speed devices, bulk endpoints may use 8, 16, 32 or 64 bytes, but no more.
* Use 'char' instead of 'uint8_t' for character dataKeith Packard2009-04-29
| | | | | String and character constants are of char type, so using uint8_t causes promotion to 16-bit types when comparing the two.
* Eliminate incorrect cast in printf string argumentKeith Packard2009-04-29
| | | | | | char * is a pointer to a string in the default address space, not a generic pointer to a string. As such, the compiler (at least 2.9.0) mis-compiles this if the cast is included.
* Correct radio frequency shown in config display.Keith Packard2009-04-29
| | | | Radio frequency base is 434.550, not 435.550
* Reset landing interval tests at apogeeKeith Packard2009-04-29
| | | | | | This moves all of the interval management into the landing test code and out of the main loop. The interval is reset at apogee to make sure the sensors produce a stable reading for at least 20 seconds
* clean up host programs, tooBdale Garbee2009-04-26
|
* Was missing v_batt in adc dump command0.1Keith Packard2009-04-26
|
* Add manual ignition and igniter test commandsKeith Packard2009-04-26
|
* Clean up commands a bitKeith Packard2009-04-26
|
* Clear more files on make cleanKeith Packard2009-04-26
|
* Label binaries with product and serial infoKeith Packard2009-04-26
|
* Make sure full log is written and flushed on landing.Keith Packard2009-04-26
| | | | | | The final state change to landing is recorded in the logging thread, so have that turn off logging once it has recorded that state. Then make it go to sleep.
* Clean up monitor output a bitKeith Packard2009-04-26
|
* Add configuration supportKeith Packard2009-04-26
| | | | | | | | | | | Current config variables: Main deploy altitude above launch (in meters) Acceleration zero g calibration (manual or automatic) Radio channel (freq = 435.550MHz + channel * 100kHz) Callsign (max 8 characters) Supporting this involved shuffling code around so that the non-telemetrum builds could include only the stuff they needed.
* Allow for slower ADC operation. Add power saving code.Keith Packard2009-04-25
| | | | | | This tries to make the flight computer use less power by disabling USB in flight mode, lowering the telemetry rate after ascent. It also disables the RDF beacon during ascent and re-enables it once descent has started.
* Allow ADC to be disabledKeith Packard2009-04-25
|
* Place CPU in P0 state while idleKeith Packard2009-04-25
|
* Add RDF beacon and callsign to telemetryKeith Packard2009-04-25
|
* Add radio code to emit a 1kHz toneKeith Packard2009-04-25
|
* Allow the USB system to be disabled/enabled at run-timeKeith Packard2009-04-25
|
* Make LED usage depend on target deviceKeith Packard2009-04-25
|
* Make some functions reentrant to save DSEG spaceKeith Packard2009-04-25
|
* Add monitor task to flight softwareKeith Packard2009-04-24
| | | | Allows the use of telemetrum in teledongle mode.
* Report difference from ground to max altitude at landingKeith Packard2009-04-24
|
* Display data with units while running simulationKeith Packard2009-04-24
|
* Enabling apogee detect via speed: < 200m/s && < max_speed - 50m/sKeith Packard2009-04-24
| | | | | | | | | This change ensures that we actually got going fairly fast, and then slowed down a bunch before enabling apogee detect. Otherwise, we'll detect apogee right off the pad as we're not going very fast at that point... This also adds the 'f' command to show the current flight status on the USB port.
* configure igniter ports, set values to measured onesKeith Packard2009-04-24
|
* Move ao_led_init to end of file to be consistent with other filesKeith Packard2009-04-24
|
* Define ao_state_names in ao.h so other people can shareKeith Packard2009-04-24
|
* Bump NUM_CMDS to 10Keith Packard2009-04-24
|
* Move beep_init to end of file to be consistent with other filesKeith Packard2009-04-24
|