Hi-,Recently I tried to add IR sensors to APM board for obstacle avoidance. I am using an APM1 board, and an expansion port on the IMU shield board to receive analog-in data from an IR sensor. A…Continue
"Hi! I try to implement my IR sensors on my code and wondered where you put those lines in Attitude.pde :
if(obstacle)target_angle += 3000; // increase roll angle by 30 deg if obstacle detected, to keep away from the obstacle
Did you create a new…"
"Hi Chris, I have solved the problem by replacing AP_AnalogSource_ADC with class AP_AnalogSource_Arduino when defining object SharpIR_analog_source. Now the IR sensor works fine. But isn't the AP_AnalogSource_ADC class for APM1?"
Hi-,Recently I tried to add IR sensors to APM board for obstacle avoidance. I am using an APM1 board, and an expansion port on the IMU shield board to receive analog-in data from an IR sensor. A Maxsonar is hook up too.Then I used the visual micro debugger to read out the variable values. I found that SharpIR_dist kept being 20 without any change, which means the IR sensor is never working. Any help? Thanks in advance.The codes I added in the program are as below:In the ArduCopter.pde:#define…See More
palo sestak has told me where these objects are defined. Many thanks to him. Thank you all well.
Actually in your original assumptation, what you described is a trajectory tracking problem, i.e., tracking a desired attitude with a speed of 10…"
I read the discussion and comments here. I also read the PID libraries. But I have difficulities to find these functions or objects:wrap_180, constrain, ahrs.roll_sensor, roll_rate_d_filter.applyBecause I failed to set up Eclipse on my…"
I noticed that for the quadrotor configuration, pin 1-4 output 490hz pwm signals, pin 5-6 output 50hz pwm, while pin 7-8 don't output any signal (always low). If I want to add one more channel to output 490 hz pwm, what changes…"