Kernel provides PWM_IN and PWM_OUT pins to assist with triggering the camera's shutter as well as outputting exposure feedback for PPK corrections. The location of the PWM_IN and PWM_OUT pins depends on which cables or breakout boards you're using with Kernel, so please refer to that hardware documentation for more information.
On the Pixhawk we recommend setting up relay triggering. To do this we suggest the following hardware setup:
Note that on the Pixhawk, there are 3 pin rails, labeled as "-" = ground, "+" = power, "S" = signal. You want to connect the Kernel PWM pins to the S signal pins.
Sending a relay (voltage) spike of 3.3 volts for 1/10s is the best way to trigger the Kernel camera. The camera has less chance to miss a trigger because it's looking for any voltage spike for at least 1/10s duration.
CAM_FEEDBACK_PIN = 53
CAM_FEEDBACK_POL = 1
CAM_RELAY_ON = 1
CAM_SERVO_OFF = 1000
CAM_SERVO_ON = 2000
CAM_DURATION = 1
CAM_TRIGG_TYPE = 1
CH7_OPT = 9
RELAY_DEFAULT = 0
RELAY_PIN = 54