Looks a lot like TM, but without the flight code.
Signed-off-by: Keith Packard <keithp@keithp.com>
telemini-v1.0 telenano-v0.1 \
telebt-v0.0 telebt-v0.1 \
telemetrum-v0.1-sky telemetrum-v0.1-sirf \
+ telelaunch-v0.1 \
tidongle test telescience-v0.1
all: all-local all-recursive
sh $< kalman > $@
clean-local:
- rm -f altitude.h ao_kalman.h
\ No newline at end of file
+ rm -f altitude.h ao_kalman.h
void
ao_adc_get(__xdata struct ao_adc *packet)
{
+#if HAS_FLIGHT
uint8_t i = ao_adc_ring_prev(ao_sample_adc);
+#else
+ uint8_t i = ao_adc_ring_prev(ao_adc_head);
+#endif
memcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc));
}
#define HAS_MONITOR 1
#endif
+#if defined(TELELAUNCH_V_0_1)
+ #define HAS_FLIGHT 0
+ #define HAS_USB 1
+ #define HAS_BEEP 1
+ #define HAS_GPS 0
+ #define HAS_SERIAL_1 1
+ #define USE_SERIAL_STDIN 0
+ #define HAS_ADC 1
+ #define HAS_DBG 0
+ #define HAS_EEPROM 1
+ #define USE_INTERNAL_FLASH 0
+ #define DBG_ON_P1 0
+ #define DBG_ON_P0 1
+ #define IGNITE_ON_P2 1
+ #define IGNITE_ON_P0 0
+ #define PACKET_HAS_MASTER 0
+ #define PACKET_HAS_SLAVE 1
+ #define AO_LED_RED 2
+ #define AO_LED_GREEN 1
+ #define LEDS_AVAILABLE (AO_LED_RED|AO_LED_GREEN)
+ #define HAS_EXTERNAL_TEMP 1
+ #define HAS_ACCEL_REF 0
+ #define SPI_CS_ON_P1 1
+ #define SPI_CS_ON_P0 0
+ #define HAS_ACCEL 0
+ #define HAS_IGNITE 1
+ #define HAS_MONITOR 0
+#endif
+
#if DBG_ON_P1
#define DBG_CLOCK (1 << 4) /* mi0 */
ao_storage_setup();
ao_storage_erase(ao_storage_config);
ao_storage_write(ao_storage_config, &ao_config, sizeof (ao_config));
+#if HAS_FLIGHT
ao_log_write_erase(0);
+#endif
ao_storage_flush();
}
_ao_config_edit_finish();
}
-#if HAS_EEPROM
+#if HAS_EEPROM && HAS_FLIGHT
void
ao_config_log_show(void) __reentrant
{
_ao_config_edit_finish();
}
}
-#endif /* HAS_EEPROM */
+#endif /* HAS_EEPROM && HAS_FLIGHT */
#if HAS_IGNITE
void
#endif /* HAS_ACCEL */
{ "f <cal>\0Radio calib (cal = rf/(xtal/2^16))",
ao_config_radio_cal_set, ao_config_radio_cal_show },
-#if HAS_EEPROM
+#if HAS_EEPROM && HAS_FLIGHT
{ "l <size>\0Flight log size in kB",
ao_config_log_set, ao_config_log_show },
#endif
--- /dev/null
+telemetrum-v0.1-sky*
+ao_product.h
--- /dev/null
+--directory=..
--- /dev/null
+include ../Makefile.proto
--- /dev/null
+PROG = telelaunch-v0.1-$(VERSION).ihx
+
+SRC = \
+ $(TLAUNCH_BASE_SRC) \
+ $(SPI_DRIVER_SRC) \
+ $(EE_DRIVER_SRC) \
+ $(DBG_SRC)
+
+PRODUCT=TeleLaunch-v0.1
+PRODUCT_DEF=-DTELELAUNCH_V_0_1
+IDPRODUCT=0x000f