Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/document/RobotConfigStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ import { InToM, LbsToKg } from "../util/UnitConversions";
import { IStateStore } from "./DocumentModel";
import { SavedRobotConfig } from "./DocumentSpecTypes";

const DEFAULT_FRAME_SIZE = InToM(28);
const DEFAULT_BUMPER = DEFAULT_FRAME_SIZE + 2 * InToM(2.5 + 0.75); // 28x28 bot with 2.5" noodle and 0.75" backing
const DEFAULT_WHEELBASE = DEFAULT_FRAME_SIZE - 2 * InToM(2.625); //SDS Mk4i contact patch is 2.625 in from frame edge

export const ROBOT_CONFIG_DEFAULTS = {
mass: LbsToKg(150),
rotationalInertia: 6,
motorMaxVelocity: MotorCurves.KrakenX60.motorMaxVelocity * 0.8,
motorMaxTorque: maxTorqueCurrentLimited(MotorCurves.KrakenX60.kt, 60),
gearing: 6.75, // SDS L2 mk4/mk4i
wheelRadius: InToM(2),
bumperWidth: InToM(28 + 2.75 + 2.75), // 28x28 bot with 2.75" bumpers
bumperLength: InToM(28 + 2.75 + 2.75),
wheelbase: InToM(28 - 2.625 - 2.625), //SDS Mk4i contact patch is 2.625 in from frame edge
trackWidth: InToM(28 - 2.625 - 2.625),
bumperWidth: DEFAULT_BUMPER,
bumperLength: DEFAULT_BUMPER,
wheelbase: DEFAULT_WHEELBASE,
trackWidth: DEFAULT_WHEELBASE,
};
export const RobotConfigStore = types
.model("RobotConfigStore", {
Expand Down