Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Main with Joystick
#1
Hi,  good job !!
I pass the test calibration with 1 PCA9685 and all the servos working.

I am starting at boot with main to work with Joystick and:

SpotMicro Motion controller      - INFO - Press START/OPTIONS to enable the servos

  I push START button, and:

SpotMicro Motion controller      - ERROR - Unknown problem while processing the queue of the motion controller
SpotMicro Motion controller      - ERROR -  - Most likely a servo is not able to get to the assigned position


I test the "Integration_tests" - test_motion.sh,  and work perfectly:

pi@spotmicroai:~/spotmicroai/integration_tests $ ./test_motion.sh
2021-02-16 20:55:32,683 - SpotMicro Test Motion            - INFO - Testing Motion...
2021-02-16 20:55:32,686 - SpotMicro Configuration          - INFO - Detected configuration for the modules: abort_controller, lcd_screen_controller, remote_controller_controller, motion_controller
2021-02-16 20:55:32,697 - SpotMicro Test Motion            - ERROR - Second PCA not found
2021-02-16 20:55:32,698 - SpotMicro Test Motion            - INFO - Use the command "i2cdetect -y 1" to list your i2c devices connected and
2021-02-16 20:55:32,699 - SpotMicro Test Motion            - INFO - write your pca9685 i2c address(es) and settings in your configuration file ~/spotmicroai.json
2021-02-16 20:55:32,700 - SpotMicro Test Motion            - INFO - There is configuration present for 1 boards
Press Enter to start the tests...
Press Enter to cut power in servos...
Press Enter to reenable power in servos...


And my "spotmicroai.json"  only have one pca9685 config:

{
        "abort_controller": [{
                "gpio_port": 17
        }],
        "lcd_screen_controller": [{
                "lcd_screen": [{
                        "address": "0x27"
                }]
        }],
        "remote_controller_controller": [{
                "remote_controller": [{
                        "device": "js0"
                }]
        }],
        "motion_controller": [{
                "boards": [{
                        "pca9685_1": [{
                                "address": "0x40",
                                "reference_clock_speed": 25000000,
                                "frequency": 50
                        }]
                }],
                "servos": [{
                        "rear_shoulder_left": [{
                                "pca9685": 1,
                                "channel": 5,
                                "min_pulse": 500,
                                "max_pulse": 2500,
                                "rest_angle": 90
                        }],
                        "rear_leg_left": [{
                                "pca9685": 1,
                                "channel": 4,
                                "min_pulse": 500,
                                "max_pulse": 2500,
                                "rest_angle": 90
                        }],
                        "rear_feet_left": [{
                                "pca9685": 1,
                                "channel": 3,
                                "min_pulse": 500,
                                "max_pulse": 2500,
                                "rest_angle": 90
                        }],

                      ........
                    .... .... ... continue


Can you help me?

Thank´s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)