mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
fix test_imu_aspirin
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
<target name="test_imu_aspirin" board="lisa_m_1.0"/>
|
||||
<target name="test_rc_spektrum" board="lisa_m_1.0"/>
|
||||
<target name="test_baro" board="lisa_m_1.0"/>
|
||||
<target name="test_imu_aspirin" board="lisa_m_1.0"/>
|
||||
<!--<target name="test_imu" board="lisa_m_1.0"/>
|
||||
<target name="test_rc_ppm" board="lisa_m_1.0"/>
|
||||
<target name="test_adc" board="lisa_m_1.0"/>
|
||||
|
||||
@@ -51,7 +51,7 @@ static inline void on_mag_event(void);
|
||||
int main( void ) {
|
||||
main_init();
|
||||
while(1) {
|
||||
if (sys_time_periodic())
|
||||
if (sys_time_check_and_ack_timer(0))
|
||||
main_periodic_task();
|
||||
main_event_task();
|
||||
}
|
||||
@@ -61,9 +61,10 @@ int main( void ) {
|
||||
static inline void main_init( void ) {
|
||||
|
||||
mcu_init();
|
||||
sys_time_init();
|
||||
imu_init();
|
||||
|
||||
sys_time_register_timer((1./PERIODIC_FREQUENCY), NULL);
|
||||
|
||||
imu_init();
|
||||
|
||||
mcu_int_enable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user