summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Send computed accel/vel/pres values over the radio0.3Keith Packard2009-05-17
| | | | | | | | These computed values reflect what the flight computer is actually refering to for state changes, and will be useful in debugging the flight software as well as provide a filtered view of the data. Signed-off-by: Keith Packard <keithp@keithp.com>
* Handle disappearing serial devicesKeith Packard2009-05-17
| | | | | | | Put up a dialog when the serial open fails, and shut down monitoring when the serial device disappears while running. Signed-off-by: Keith Packard <keithp@keithp.com>
* While on the pad, zero out velocity every secondKeith Packard2009-05-17
| | | | | | | | | | | | | We integrate acceleration to get velocity, but that means sitting on the pad for a long time can add substantial error to the velocity value. Each second, take the velocity value from a full second ago and subtract that out of the current velocity. Once we detect boost, this will stop, which means that as long as we detect boost within a second, we won't have subtracted out any "real" velocity. This keeps the pad velocity hovering around zero, which is pretty useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* Clear table, reset log on disconnectKeith Packard2009-05-17
|
* Add pad lat/lon, max accel, max heightKeith Packard2009-05-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up GPS displayKeith Packard2009-05-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Make aoview window tallerKeith Packard2009-05-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add lots more aoview UI bitsKeith Packard2009-05-17
| | | | | | Logs data to files, displays current state in window. Signed-off-by: Keith Packard <keithp@keithp.com>
* When logging starts up, right the whole ring to the log.Keith Packard2009-05-16
| | | | | | This preserves the data pre boost-detect for later analysis. Signed-off-by: Keith Packard <keithp@keithp.com>
* Abandon use of accelerometer for apogee detect.Keith Packard2009-05-16
| | | | | | | | | Integrating the accelerometer data to compute velocity worked for one rocket flight, but additional testing shows that it doesn't work in other airframes. Until we figure out how this should work, we'll rely on the altimeter to detect apogee. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add preliminary aoview codesn4-flight2sn4-flight1Keith Packard2009-05-16
| | | | | | | | AoView connects with TeleDongle to present telemetry information in a reasonable form. Right now, it just displays information to stdout, but it does have fancy dialogs for finding the USB devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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
|