Ballistic pendulum 3 Texas Instruments SensorTag Read the y-component of the accelerometer (Texas Instruments SensorTag like the CC2650 or the CC1350) put to the ballistic pendulum and determine the bullet speed and energy. Suspension length of the pendulum is determined by its period of oscillations. Ba3 accYRaw t count tmax accY max min m M L speed energy position_max position_min min_position t_first demi_T start_t to_measure start_position t_cut re im fft count_measure frequency V2 quotient out position sum 0A 1000 accYRaw accYRaw 0.000598755 accY accY start_position to_measure position_max position_min min_position accY position_min position_max position_min accY position_max to_measure min to_measure max accYRaw count L demi_T count tmax max min m M L speed 0 tmax count t speed m energy t min_position 1 t_first max min m M frequency V2 t start_position t_cut t_first demi_T start_t to_measure re im t start_t t start_t start_position re im fft t_cut count_measure fft 2 quotient out count_measure 2 quotient out position position 1 sum sum count_measure 0.1 frequency m M L t accY speed energy V2 start_t start_position t_cut to_measure fft frequency out t accY t_cut to_measure