paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] IR_RollOfIrs and IR_PitchOfIrs


From: Widyawardana Adiprawita
Subject: [Paparazzi-devel] IR_RollOfIrs and IR_PitchOfIrs
Date: Sun, 4 Dec 2005 06:27:17 -0800 (PST)

Dear All,

Sorry if this is a silly question,

I'm looking at the following code at the infrared.c

...........
void ir_update(void) {
#ifndef SIMUL
  int16_t x1_mean = buf_ir1.sum/buf_ir1.av_nb_sample;
  int16_t x2_mean = buf_ir2.sum/buf_ir2.av_nb_sample;
  ir_roll = IR_RollOfIrs(x1_mean, x2_mean) -
IR_ADC_ROLL_NEUTRAL;
  ir_pitch = IR_PitchOfIrs(x1_mean, x2_mean) -
IR_ADC_PITCH_NEUTRAL;
#else
  extern volatile int16_t simul_ir_roll,
simul_ir_pitch;
  ir_roll = simul_ir_roll - IR_ADC_ROLL_NEUTRAL; 
  ir_pitch = simul_ir_pitch - IR_ADC_PITCH_NEUTRAL;  
#endif
}
..........

My problem is : where is the implementation of
IR_RollOfIrs and IR_PitchOfIrs ?

Thank You

-doni-


                
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]