Using expansion analog pins

how do I do it, how I use AN6,AN7
example needed!

best

Itay

@itayguy,
What do you need to know? You need to be more specific.
Do you want to use those two analog pins for measuring an analog voltage or signal? To do so will require you to modify the Arudcopter firmware with this Ardupilot IDE: ardupilot.com/downloads/?did=45
Regards,
TCIII Admin

of course I need to change the arducopter firmware,
I would like to know how to do it,
tried to add
pot1_analog_source = hal.analogin->channel(AN6);
pot2_analog_source = hal.analogin->channel(AN7);

and then use
pot1_analog_source->set_pin(AN6);
pot1_analog_source->read_average();

pot2_analog_source->set_pin(AN7);
pot2_analog_source->read_average();