(2020-04-08, 02:29 PM)DvdB Wrote: The motor.ino sketch is working on the arduino and the arduino is connected to the raspberry by serial and it is communicating.
We can choose in Pypilot between the compass and the gps.
The Pypilot gives the following information:
SignalK Server: Connected
Servo Flags: DRIVER_TIMEOUT
Autopilot Errors: no motor controller!
Just to clarify: you say 'and it is communicating' but if you get NO MOTOR CONTROLLER it probably is not. Just check the lights on the Arduino: if Rx is blinking and Tx is not, it is not communicating and you might solve this by setting DIV_BOARD in motor.ino to 1.
You should connect the rudder servo pwm input to the D9 output on the arduino, and make sure D6 is high, thereby selecting RC style. In the motor.ino code this mode is referred to as pwm_style=1. You might want to check https://www.youtube.com/watch?v=kpq53e97...tu.be&t=81
As for the propulsion motor, there is no standard provision for that. PyPilot is primarily for steering.
Groeten,
-