Add FOCSTrot V3/V4 to firmware package - #907
Conversation
|
this commit is missing the new hwconf source files, so this cannot work on its own - looks like you forgot this commit: b038876 (origin/FOCSTrot_V3_V4) Add FOCSTrot V3 and V4 hardware support |
I had adjusted FOCSTrot V3/V4 voltage and current limits.(12119ac) |
|
Two problems here: I suggest you close this PR and open a fresh one. Might be easier. |
|
Oh I'm sorry, I just see that branch release_7_00 already includes your original FOCstrot V3 and V4 commit, in that case you don't need to submit it again of course. My mistake. But I would still keep the minimum voltage at 18.0V for both controllers unless they cannot safely boot at 18 Volts. |
Due to the hardware limitations of the device, it cannot power on at 18V. We have already conducted tests and confirmed this behavior. |
|
Update on the latest commits:
Both |
lukash
left a comment
There was a problem hiding this comment.
Not my repo but I'd personally ask to remove the unnecessary merge commit and the back and forth adding and removing the (AI-looking) comment. I'd suggest having one commit migrating the IMU macros to the new style and another commit adding the 700 khz speed line.
But Benjamin might be fine with the way it is. IMU-wise LGTM functionally.
| // Run the IMU I2C bus at 700 kHz instead of 400 kHz (raises sample rate limit to 1200 Hz). | ||
| // Requires adequate SDA/SCL pullups (2.2-4.7 kOhm recommended); verify signal integrity on hardware. | ||
| #define LSM6DS3_SPEED_700KHZ | ||
| #define IMU_BUS_SPEED_HZ 700000 |
There was a problem hiding this comment.
Nitpick (no need to address if you don't want to): Move the IMU_BUS_SPEED_HZ line below IMU_COM for consistency with the other hwconf files.
|
@bmyyqzs are you also involved in ADV500 development? Do you know what are the pullups there? I'm assuming the same as ADV200 but wanted to confirm. I'm sitting on a commit enabling 700 kHz there too, waiting for a response from Tony. And do you know what is FOCSTrot V2 controller? Not part of the repo but it is shipping in the new Gosmilos it seems. |
Yes, I was involved in the ADV500 development. I can confirm that the IMU I²C pull-up resistors are the same as on the ADV200. They are 1 kΩ. |
FWIW the new Gosmilos are shipping with a firmware that has "FOCSTrot V2" as HWNAME. This doesn't exist in upstream. Occasionally people ask me questions about firmware for their boards or they ask for my custom Onewheel firmware build for their board (https://github.com/lukash/bldc/releases/, it's got some extra Onewheel-related improvements which weren't mainlined yet or can't be mainlined), I can't do anything for them if they have a firmware that's not in the tree. Also, to make a point about the unnecessary merge commit in this PR, if I wanted to add support for FOCStrot V3/V4 in my 7.00-based release, I can't do it easily as I can't cherry-pick the merge commit (and I refuse to spend the extra work dealing with non-clean commits on principle). |
Set IMU_BUS_SPEED_HZ to 700000 for the LSM6DS3 bus.
Thanks for the feedback. I cleaned up the branch history and force-pushed the PR branch. The unnecessary merge commit has been removed, and the IMU-related follow-up commits have been folded into a single clean commit. The PR now has only these three commits:
|
This adds FOCSTrot V3.0 and FOCSTrot V4.0 to package_firmware.py so they are included in the generated firmware archive used by VESC Tool Download Latest.
Validation performed:
Note: this Windows environment does not have make / arm-none-eabi-gcc installed, so full firmware compilation should be verified in the maintainer build environment.
After merge, please regenerate and publish res_fw_7.00.rcc so these firmwares appear in VESC Tool via Download Latest.