TeamRobotmad / BadgeBot

Demonstration application for small robot based on EMFCamp 2024 badge with HexDrive Hexpansion and 2 motors.
3 stars 0 forks source link

Badge version 1.9.0 software compatibility #57

Closed Robotmad closed 4 months ago

Robotmad commented 4 months ago

hexdrive.py was broken by changes the core badge team made to version 1.9.0 as part of making the ls gpio pins usable. This version detects which version of the badge software it is running on and uses code selectively to be forwards/backwards compatbile. Users will need to upgrade their HexDrive while their badge is still on v1.8.0 before upgrading to the latest badge software.

Motors now only use 1 PWM channel per motor instead of 2 - hence with a suitable App you will be able to use up to 8 motors (on 4 HexDrives) per badge.

When initialising HexDrive EEPROM you now select from 4 options: a) 2 Motors b) 4 Servos c) 1 Motor and 2 Servos d) Unknown (what all versions have been until now) This is stored as a different PID, so that in future the HexDrive application can only take the resources required for its combination of Servos and Motors.

The BadgeBot app only offers the functions (Motor Moves and/or Servo Test) according to the hardware version fitted.

ButtonUpEvent only subscribed to when in RECEIVE_INSTR mode with focus.