<commit_before>include <moreShapes.scad>;

use <backbone.scad>;
use <hip.scad>;
use <servo.scad>;
include <coxa.scad>;
include <femur.scad>;
include <tibia.scad>;

bb_length=90;
bb_height = 8;

servo_length = 23;
servo_width = 12.5;

wheel = true;  // true to show in wheel configuration, false for walking config

coxa_rot_ang = wheel ? 0 : 30;
femur_ang = wheel ? -130 : 0;
tibia_ang = wheel ? 130 : -20;

h_pos = (bb_length-20)/2;

//tibia2();
//femur();
//mirror([1,0,0]) coxa();

// wheel mode
finalAssembly(0, -130, 130);

// walking mode
translate([0, 300, 28])
	finalAssembly(30, 0, -20);

module finalAssembly(coxa_rot_angle, femur_angle, tibia_angle) {
		//full assembly example
		backbone();<commit_msg>Added mock battery and mcu<commit_after>include <moreShapes.scad>;

use <backbone.scad>;
use <hip.scad>;
use <servo.scad>;
include <coxa.scad>;
include <femur.scad>;
include <tibia.scad>;

bb_length=90;
bb_height = 8;

servo_length = 23;
servo_width = 12.5;

h_pos = (bb_length-20)/2;

//tibia2();
//femur();
//mirror([1,0,0]) coxa();

// wheel mode
finalAssembly(0, -130, 130);

// walking mode
translate([0, 300, 28])
	finalAssembly(45, 0, -20);

module finalAssembly(coxa_rot_angle, femur_angle, tibia_angle) {

		// battery - modelled on a zippy 850mah 2s lipo
		color("yellow")
			translate([-28,-15,-20])
			cube([56,30,14]);

		// APM2.5
		color("grey")
			translate([-33,-21,6])
			cube([66, 42, 10]);

		backbone();
{'fraction_non_alphanumeric': 0.1808066759388039, 'fraction_numerical': 0.07440890125173853, 'mean_word_length': 4.213768115942029, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1652028', 'n_tokens_mistral': 682, 'n_tokens_neox': 594, 'n_words': 137}